1. NAME

pci_set_power_state - Set the power state of a PCI device

2. SYNOPSIS

int pci_set_power_state(struct pci_dev *  dev , pci_power_t  state );

3. ARGUMENTS

dev
    PCI device to handle.

state
    PCI power state (D0, D1, D2, D3hot) to put the device into.

4. DESCRIPTION

Transition a device to a new power state, using the platform firmware and/or the deviceAqs PCI PM registers.

5. RETURN VALUE

-EINVAL if the requested state is invalid. -EIO if device does not support PCI PM or its PM capabilities register has a wrong version, or device doesnAqt support the requested state. 0 if device already is in the requested state. 0 if deviceAqs power state has been successfully changed.

6. COPYRIGHT