1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00

Use General definition for general notify.

This commit is contained in:
Takanori Watanabe 2005-05-19 09:13:26 +00:00
parent 6f21c8127a
commit b4b4c81522
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146373

View File

@ -52,8 +52,6 @@ ACPI_MODULE_NAME("AC_ADAPTER")
/* Number of times to retry initialization before giving up. */
#define ACPI_ACAD_RETRY_MAX 6
#define ACPI_DEVICE_CHECK_PNP 0x00
#define ACPI_DEVICE_CHECK_EXISTENCE 0x01
#define ACPI_POWERSOURCE_STAT_CHANGE 0x80
struct acpi_acad_softc {
@ -122,8 +120,8 @@ acpi_acad_notify_handler(ACPI_HANDLE h, UINT32 notify, void *context)
dev = (device_t)context;
switch (notify) {
case ACPI_DEVICE_CHECK_PNP:
case ACPI_DEVICE_CHECK_EXISTENCE:
case ACPI_NOTIFY_BUS_CHECK:
case ACPI_NOTIFY_DEVICE_CHECK:
case ACPI_POWERSOURCE_STAT_CHANGE:
/* Temporarily. It is better to notify policy manager */
AcpiOsQueueForExecution(OSD_PRIORITY_LO, acpi_acad_get_status, context);