.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "PCI_ENABLE_WAKE" "" "06 October 2005" "" ""
.SH NAME
pci_enable_wake \- enable device to generate PME# when suspended
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int pci_enable_wake (struct pci_dev * \fIdev\fB, u32 \fIstate\fB, int \fIenable\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
- PCI device to operate on
.TP
\fB\fIstate\fB\fR
- Current state of device.
.TP
\fB\fIenable\fB\fR
- Flag to enable or disable generation
.SH "DESCRIPTION"
.PP
Set the bits in the device's PM Capabilities to generate PME# when
the system is suspended.
.PP
-EIO is returned if device doesn't have PM Capabilities.
-EINVAL is returned if device supports it, but can't generate wake events.
0 if operation is successful.