|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/usb.h>#include <linux/device.h>#include <linux/errno.h>#include <linux/kernel.h>#include <linux/acpi.h>#include <linux/pci.h>#include <acpi/acpi_bus.h>#include "usb.h"Go to the source code of this file.
Functions | |
| bool | usb_acpi_power_manageable (struct usb_device *hdev, int index) |
| EXPORT_SYMBOL_GPL (usb_acpi_power_manageable) | |
| int | usb_acpi_set_power_state (struct usb_device *hdev, int index, bool enable) |
| EXPORT_SYMBOL_GPL (usb_acpi_set_power_state) | |
| int | usb_acpi_register (void) |
| void | usb_acpi_unregister (void) |
| EXPORT_SYMBOL_GPL | ( | usb_acpi_power_manageable | ) |
| EXPORT_SYMBOL_GPL | ( | usb_acpi_set_power_state | ) |
usb_acpi_power_manageable - check whether usb port has acpi power resource. : USB device belonging to the usb hub : port index based zero
Return true if the port has acpi power resource and false if no.
Definition at line 30 of file usb-acpi.c.
Definition at line 219 of file usb-acpi.c.
usb_acpi_set_power_state - control usb port's power via acpi power resource : USB device belonging to the usb hub : port index based zero : power state expected to be set
Notice to use usb_acpi_power_manageable() to check whether the usb port has acpi power resource before invoking this function.
Returns 0 on success, else negative errno.
Definition at line 56 of file usb-acpi.c.
Definition at line 224 of file usb-acpi.c.
1.8.2