#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/notifier.h>
#include <linux/platform_device.h>
#include <linux/jiffies.h>
#include <linux/stddef.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
Go to the source code of this file.
#define ACPI_DOCK_DRIVER_DESCRIPTION "ACPI Dock Station Driver" |
#define DOCK_DOCKING 0x00000001 |
#define DOCK_IS_ATA 0x00000020 |
#define DOCK_IS_BAT 0x00000040 |
#define DOCK_IS_DOCK 0x00000010 |
#define DOCK_UNDOCKING 0x00000002 |
ACPI_MODULE_NAME |
( |
"dock" |
| ) |
|
is_dock_device - see if a device is on a dock station : acpi handle of the device
If this device is either the dock station itself, or is a device dependent on the dock station, then it is a dock device
Definition at line 260 of file dock.c.
MODULE_AUTHOR |
( |
"Kristen Carlson Accardi" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
acpi |
, |
|
|
dock_device_ids |
|
|
) |
| |
module_exit |
( |
dock_exit |
| ) |
|
module_param |
( |
immediate_undock |
, |
|
|
bool |
, |
|
|
0644 |
|
|
) |
| |
register_dock_notifier - add yourself to the dock notifier list : the callers notifier block
If a driver wishes to be notified about dock events, they can use this function to put a notifier block on the dock notifier list. this notifier call chain will be called after a dock event, but before hotplugging any new devices.
Definition at line 559 of file dock.c.
register_hotplug_dock_device - register a hotplug function : the handle of the device : handlers to call after docking : device specific data
If a driver would like to perform a hotplug operation after a dock event, they can register an acpi_notifiy_handler to be called by the dock driver after _DCK is executed.
Definition at line 592 of file dock.c.
subsys_initcall |
( |
dock_init |
| ) |
|
unregister_dock_notifier - remove yourself from the dock notifier list : the callers notifier block
Definition at line 572 of file dock.c.
unregister_hotplug_dock_device - remove yourself from the hotplug list : the acpi handle of the device
Definition at line 629 of file dock.c.