#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/input.h>
#include <linux/slab.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
Go to the source code of this file.
#define ACPI_BUTTON_CLASS "button" |
#define ACPI_BUTTON_DEVICE_NAME_LID "Lid Switch" |
#define ACPI_BUTTON_DEVICE_NAME_POWER "Power Button" |
#define ACPI_BUTTON_DEVICE_NAME_SLEEP "Sleep Button" |
#define ACPI_BUTTON_FILE_INFO "info" |
#define ACPI_BUTTON_FILE_STATE "state" |
#define ACPI_BUTTON_HID_LID "PNP0C0D" |
#define ACPI_BUTTON_HID_POWER "PNP0C0C" |
#define ACPI_BUTTON_HID_SLEEP "PNP0C0E" |
#define ACPI_BUTTON_NOTIFY_STATUS 0x80 |
#define ACPI_BUTTON_SUBCLASS_LID "lid" |
#define ACPI_BUTTON_SUBCLASS_POWER "power" |
#define ACPI_BUTTON_SUBCLASS_SLEEP "sleep" |
#define ACPI_BUTTON_TYPE_LID 0x05 |
#define ACPI_BUTTON_TYPE_POWER 0x01 |
#define ACPI_BUTTON_TYPE_SLEEP 0x03 |
#define ACPI_BUTTON_TYPE_UNKNOWN 0x00 |
ACPI_MODULE_NAME |
( |
"button" |
| ) |
|
module_acpi_driver |
( |
acpi_button_driver |
| ) |
|
MODULE_AUTHOR |
( |
"Paul Diefenbaugh" |
| ) |
|
MODULE_DESCRIPTION |
( |
"ACPI Button Driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
acpi |
, |
|
|
button_device_ids |
|
|
) |
| |