'\" t .\" Title: __pci_enable_wake .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "__PCI_ENABLE_WAKE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" __pci_enable_wake \- enable PCI device as wakeup event source .SH "SYNOPSIS" .HP \w'int\ __pci_enable_wake('u .BI "int __pci_enable_wake(struct\ pci_dev\ *\ " "dev" ", pci_power_t\ " "state" ", bool\ " "runtime" ", bool\ " "enable" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 PCI device affected .RE .PP \fIstate\fR .RS 4 PCI state from which device will issue wakeup events .RE .PP \fIruntime\fR .RS 4 True if the events are to be generated at run time .RE .PP \fIenable\fR .RS 4 True to enable event generation; false to disable .RE .SH "DESCRIPTION" .PP This enables the device as a wakeup event source, or disables it\&. When such events involves platform\-specific hooks, those hooks are called automatically by this routine\&. .PP Devices with legacy power management (no standard PCI PM capabilities) always require such platform hooks\&. .PP RETURN VALUE: 0 is returned on success \-EINVAL is returned if device is not supposed to wake up the system Error code depending on the platform is returned if both the platform and the native mechanism fail to enable the generation of wake\-up events .SH "COPYRIGHT" .br