.\" 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_SET_POWER_STATE" "" "06 October 2005" "" ""
.SH NAME
pci_set_power_state \- Set the power state of a PCI device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int pci_set_power_state (struct pci_dev * \fIdev\fB, int \fIstate\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
PCI device to be suspended
.TP
\fB\fIstate\fB\fR
Power state we're entering
.SH "DESCRIPTION"
.PP
Transition a device to a new power state, using the Power Management
Capabilities in the device's config space.
.SH "RETURN VALUE"
.PP
-EINVAL if trying to enter a lower state than we're already in.
0 if we're already in the requested state.
-EIO if device does not support PCI PM.
0 if we can successfully change the power state.