mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
ACPI: consolidate ACPI_*_COMPONENT definitions in acpi_drivers.h
Move all the component definitions for drivers to a single shared place, include/acpi/acpi_drivers.h. Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
14a63ba821
commit
89595b8f28
16 changed files with 15 additions and 17 deletions
|
@ -37,7 +37,6 @@
|
||||||
#include <acpi/acpi_bus.h>
|
#include <acpi/acpi_bus.h>
|
||||||
#include <acpi/acpi_drivers.h>
|
#include <acpi/acpi_drivers.h>
|
||||||
|
|
||||||
#define ACPI_AC_COMPONENT 0x00020000
|
|
||||||
#define ACPI_AC_CLASS "ac_adapter"
|
#define ACPI_AC_CLASS "ac_adapter"
|
||||||
#define ACPI_AC_DEVICE_NAME "AC Adapter"
|
#define ACPI_AC_DEVICE_NAME "AC Adapter"
|
||||||
#define ACPI_AC_FILE_STATE "state"
|
#define ACPI_AC_FILE_STATE "state"
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
#include <linux/memory_hotplug.h>
|
#include <linux/memory_hotplug.h>
|
||||||
#include <acpi/acpi_drivers.h>
|
#include <acpi/acpi_drivers.h>
|
||||||
|
|
||||||
#define ACPI_MEMORY_DEVICE_COMPONENT 0x08000000UL
|
|
||||||
#define ACPI_MEMORY_DEVICE_CLASS "memory"
|
#define ACPI_MEMORY_DEVICE_CLASS "memory"
|
||||||
#define ACPI_MEMORY_DEVICE_HID "PNP0C80"
|
#define ACPI_MEMORY_DEVICE_HID "PNP0C80"
|
||||||
#define ACPI_MEMORY_DEVICE_NAME "Hotplug Mem Device"
|
#define ACPI_MEMORY_DEVICE_NAME "Hotplug Mem Device"
|
||||||
|
|
|
@ -46,7 +46,6 @@
|
||||||
|
|
||||||
#define ACPI_BATTERY_VALUE_UNKNOWN 0xFFFFFFFF
|
#define ACPI_BATTERY_VALUE_UNKNOWN 0xFFFFFFFF
|
||||||
|
|
||||||
#define ACPI_BATTERY_COMPONENT 0x00040000
|
|
||||||
#define ACPI_BATTERY_CLASS "battery"
|
#define ACPI_BATTERY_CLASS "battery"
|
||||||
#define ACPI_BATTERY_DEVICE_NAME "Battery"
|
#define ACPI_BATTERY_DEVICE_NAME "Battery"
|
||||||
#define ACPI_BATTERY_NOTIFY_STATUS 0x80
|
#define ACPI_BATTERY_NOTIFY_STATUS 0x80
|
||||||
|
|
|
@ -33,7 +33,6 @@
|
||||||
#include <acpi/acpi_bus.h>
|
#include <acpi/acpi_bus.h>
|
||||||
#include <acpi/acpi_drivers.h>
|
#include <acpi/acpi_drivers.h>
|
||||||
|
|
||||||
#define ACPI_BUTTON_COMPONENT 0x00080000
|
|
||||||
#define ACPI_BUTTON_CLASS "button"
|
#define ACPI_BUTTON_CLASS "button"
|
||||||
#define ACPI_BUTTON_FILE_INFO "info"
|
#define ACPI_BUTTON_FILE_INFO "info"
|
||||||
#define ACPI_BUTTON_FILE_STATE "state"
|
#define ACPI_BUTTON_FILE_STATE "state"
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
ACPI_MODULE_NAME("cm_sbs");
|
ACPI_MODULE_NAME("cm_sbs");
|
||||||
#define ACPI_AC_CLASS "ac_adapter"
|
#define ACPI_AC_CLASS "ac_adapter"
|
||||||
#define ACPI_BATTERY_CLASS "battery"
|
#define ACPI_BATTERY_CLASS "battery"
|
||||||
#define ACPI_SBS_COMPONENT 0x00080000
|
|
||||||
#define _COMPONENT ACPI_SBS_COMPONENT
|
#define _COMPONENT ACPI_SBS_COMPONENT
|
||||||
static struct proc_dir_entry *acpi_ac_dir;
|
static struct proc_dir_entry *acpi_ac_dir;
|
||||||
static struct proc_dir_entry *acpi_battery_dir;
|
static struct proc_dir_entry *acpi_battery_dir;
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
#define INSTALL_NOTIFY_HANDLER 1
|
#define INSTALL_NOTIFY_HANDLER 1
|
||||||
#define UNINSTALL_NOTIFY_HANDLER 2
|
#define UNINSTALL_NOTIFY_HANDLER 2
|
||||||
|
|
||||||
#define ACPI_CONTAINER_COMPONENT 0x01000000
|
|
||||||
#define _COMPONENT ACPI_CONTAINER_COMPONENT
|
#define _COMPONENT ACPI_CONTAINER_COMPONENT
|
||||||
ACPI_MODULE_NAME("container");
|
ACPI_MODULE_NAME("container");
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,6 @@
|
||||||
#include <acpi/acpi_bus.h>
|
#include <acpi/acpi_bus.h>
|
||||||
#include <acpi/acpi_drivers.h>
|
#include <acpi/acpi_drivers.h>
|
||||||
|
|
||||||
#define ACPI_FAN_COMPONENT 0x00200000
|
|
||||||
#define ACPI_FAN_CLASS "fan"
|
#define ACPI_FAN_CLASS "fan"
|
||||||
#define ACPI_FAN_FILE_STATE "state"
|
#define ACPI_FAN_FILE_STATE "state"
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,6 @@
|
||||||
|
|
||||||
#define _COMPONENT ACPI_POWER_COMPONENT
|
#define _COMPONENT ACPI_POWER_COMPONENT
|
||||||
ACPI_MODULE_NAME("power");
|
ACPI_MODULE_NAME("power");
|
||||||
#define ACPI_POWER_COMPONENT 0x00800000
|
|
||||||
#define ACPI_POWER_CLASS "power_resource"
|
#define ACPI_POWER_CLASS "power_resource"
|
||||||
#define ACPI_POWER_DEVICE_NAME "Power Resource"
|
#define ACPI_POWER_DEVICE_NAME "Power Resource"
|
||||||
#define ACPI_POWER_FILE_INFO "info"
|
#define ACPI_POWER_FILE_INFO "info"
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
#include <acpi/acpi_drivers.h>
|
#include <acpi/acpi_drivers.h>
|
||||||
#include <acpi/processor.h>
|
#include <acpi/processor.h>
|
||||||
|
|
||||||
#define ACPI_PROCESSOR_COMPONENT 0x01000000
|
|
||||||
#define ACPI_PROCESSOR_CLASS "processor"
|
#define ACPI_PROCESSOR_CLASS "processor"
|
||||||
#define ACPI_PROCESSOR_DEVICE_NAME "Processor"
|
#define ACPI_PROCESSOR_DEVICE_NAME "Processor"
|
||||||
#define ACPI_PROCESSOR_FILE_INFO "info"
|
#define ACPI_PROCESSOR_FILE_INFO "info"
|
||||||
|
|
|
@ -59,7 +59,6 @@
|
||||||
#include <acpi/processor.h>
|
#include <acpi/processor.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
|
||||||
#define ACPI_PROCESSOR_COMPONENT 0x01000000
|
|
||||||
#define ACPI_PROCESSOR_CLASS "processor"
|
#define ACPI_PROCESSOR_CLASS "processor"
|
||||||
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
|
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
|
||||||
ACPI_MODULE_NAME("processor_idle");
|
ACPI_MODULE_NAME("processor_idle");
|
||||||
|
|
|
@ -44,9 +44,9 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <acpi/acpi_bus.h>
|
#include <acpi/acpi_bus.h>
|
||||||
|
#include <acpi/acpi_drivers.h>
|
||||||
#include <acpi/processor.h>
|
#include <acpi/processor.h>
|
||||||
|
|
||||||
#define ACPI_PROCESSOR_COMPONENT 0x01000000
|
|
||||||
#define ACPI_PROCESSOR_CLASS "processor"
|
#define ACPI_PROCESSOR_CLASS "processor"
|
||||||
#define ACPI_PROCESSOR_FILE_PERFORMANCE "performance"
|
#define ACPI_PROCESSOR_FILE_PERFORMANCE "performance"
|
||||||
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
|
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
#include <acpi/processor.h>
|
#include <acpi/processor.h>
|
||||||
#include <acpi/acpi_drivers.h>
|
#include <acpi/acpi_drivers.h>
|
||||||
|
|
||||||
#define ACPI_PROCESSOR_COMPONENT 0x01000000
|
|
||||||
#define ACPI_PROCESSOR_CLASS "processor"
|
#define ACPI_PROCESSOR_CLASS "processor"
|
||||||
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
|
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
|
||||||
ACPI_MODULE_NAME("processor_thermal");
|
ACPI_MODULE_NAME("processor_thermal");
|
||||||
|
|
|
@ -38,9 +38,9 @@
|
||||||
#include <asm/uaccess.h>
|
#include <asm/uaccess.h>
|
||||||
|
|
||||||
#include <acpi/acpi_bus.h>
|
#include <acpi/acpi_bus.h>
|
||||||
|
#include <acpi/acpi_drivers.h>
|
||||||
#include <acpi/processor.h>
|
#include <acpi/processor.h>
|
||||||
|
|
||||||
#define ACPI_PROCESSOR_COMPONENT 0x01000000
|
|
||||||
#define ACPI_PROCESSOR_CLASS "processor"
|
#define ACPI_PROCESSOR_CLASS "processor"
|
||||||
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
|
#define _COMPONENT ACPI_PROCESSOR_COMPONENT
|
||||||
ACPI_MODULE_NAME("processor_throttling");
|
ACPI_MODULE_NAME("processor_throttling");
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
#include <acpi/acpi_bus.h>
|
#include <acpi/acpi_bus.h>
|
||||||
#include <acpi/acpi_drivers.h>
|
#include <acpi/acpi_drivers.h>
|
||||||
|
|
||||||
#define ACPI_THERMAL_COMPONENT 0x04000000
|
|
||||||
#define ACPI_THERMAL_CLASS "thermal_zone"
|
#define ACPI_THERMAL_CLASS "thermal_zone"
|
||||||
#define ACPI_THERMAL_DEVICE_NAME "Thermal Zone"
|
#define ACPI_THERMAL_DEVICE_NAME "Thermal Zone"
|
||||||
#define ACPI_THERMAL_FILE_STATE "state"
|
#define ACPI_THERMAL_FILE_STATE "state"
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
#include <acpi/acpi_bus.h>
|
#include <acpi/acpi_bus.h>
|
||||||
#include <acpi/acpi_drivers.h>
|
#include <acpi/acpi_drivers.h>
|
||||||
|
|
||||||
#define ACPI_VIDEO_COMPONENT 0x08000000
|
|
||||||
#define ACPI_VIDEO_CLASS "video"
|
#define ACPI_VIDEO_CLASS "video"
|
||||||
#define ACPI_VIDEO_BUS_NAME "Video Bus"
|
#define ACPI_VIDEO_BUS_NAME "Video Bus"
|
||||||
#define ACPI_VIDEO_DEVICE_NAME "Video Device"
|
#define ACPI_VIDEO_DEVICE_NAME "Video Device"
|
||||||
|
|
|
@ -32,7 +32,19 @@
|
||||||
#define ACPI_MAX_STRING 80
|
#define ACPI_MAX_STRING 80
|
||||||
|
|
||||||
#define ACPI_BUS_COMPONENT 0x00010000
|
#define ACPI_BUS_COMPONENT 0x00010000
|
||||||
|
#define ACPI_AC_COMPONENT 0x00020000
|
||||||
|
#define ACPI_BATTERY_COMPONENT 0x00040000
|
||||||
|
#define ACPI_BUTTON_COMPONENT 0x00080000
|
||||||
|
#define ACPI_SBS_COMPONENT 0x00080000
|
||||||
|
#define ACPI_FAN_COMPONENT 0x00200000
|
||||||
|
#define ACPI_PCI_COMPONENT 0x00400000
|
||||||
|
#define ACPI_POWER_COMPONENT 0x00800000
|
||||||
|
#define ACPI_CONTAINER_COMPONENT 0x01000000
|
||||||
|
#define ACPI_PROCESSOR_COMPONENT 0x01000000
|
||||||
#define ACPI_SYSTEM_COMPONENT 0x02000000
|
#define ACPI_SYSTEM_COMPONENT 0x02000000
|
||||||
|
#define ACPI_THERMAL_COMPONENT 0x04000000
|
||||||
|
#define ACPI_MEMORY_DEVICE_COMPONENT 0x08000000
|
||||||
|
#define ACPI_VIDEO_COMPONENT 0x08000000
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* _HID definitions
|
* _HID definitions
|
||||||
|
@ -54,7 +66,6 @@
|
||||||
PCI
|
PCI
|
||||||
-------------------------------------------------------------------------- */
|
-------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#define ACPI_PCI_COMPONENT 0x00400000
|
|
||||||
|
|
||||||
/* ACPI PCI Interrupt Link (pci_link.c) */
|
/* ACPI PCI Interrupt Link (pci_link.c) */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue