Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/acpica/acpivar.h
Show First 20 Lines • Show All 230 Lines • ▼ Show 20 Lines | |||||
#define ACPI_Q_TIMER (1 << 1) | #define ACPI_Q_TIMER (1 << 1) | ||||
#define ACPI_Q_MADT_IRQ0 (1 << 2) | #define ACPI_Q_MADT_IRQ0 (1 << 2) | ||||
/* | /* | ||||
* Plug and play information for device matching. Matching table format | * Plug and play information for device matching. Matching table format | ||||
* is compatible with ids parameter of ACPI_ID_PROBE bus method. | * is compatible with ids parameter of ACPI_ID_PROBE bus method. | ||||
* | * | ||||
* XXX: While ACPI_ID_PROBE matches against _HID and all _CIDs, current | * XXX: While ACPI_ID_PROBE matches against _HID and all _CIDs, current | ||||
* acpi_pnpinfo_str() exports only _HID and first _CID. That means second | * acpi_pnpinfo() exports only _HID and first _CID. That means second | ||||
* and further _CIDs should be added to both acpi_pnpinfo_str() and | * and further _CIDs should be added to both acpi_pnpinfo() and | ||||
* ACPICOMPAT_PNP_INFO if device matching against them is required. | * ACPICOMPAT_PNP_INFO if device matching against them is required. | ||||
*/ | */ | ||||
#define ACPICOMPAT_PNP_INFO(t, busname) \ | #define ACPICOMPAT_PNP_INFO(t, busname) \ | ||||
MODULE_PNP_INFO("Z:_HID", busname, t##hid, t, nitems(t)-1); \ | MODULE_PNP_INFO("Z:_HID", busname, t##hid, t, nitems(t)-1); \ | ||||
MODULE_PNP_INFO("Z:_CID", busname, t##cid, t, nitems(t)-1); | MODULE_PNP_INFO("Z:_CID", busname, t##cid, t, nitems(t)-1); | ||||
#define ACPI_PNP_INFO(t) ACPICOMPAT_PNP_INFO(t, acpi) | #define ACPI_PNP_INFO(t) ACPICOMPAT_PNP_INFO(t, acpi) | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 236 Lines • ▼ Show 20 Lines | |||||
int acpi_disabled(char *subsys); | int acpi_disabled(char *subsys); | ||||
int acpi_machdep_init(device_t dev); | int acpi_machdep_init(device_t dev); | ||||
void acpi_install_wakeup_handler(struct acpi_softc *sc); | void acpi_install_wakeup_handler(struct acpi_softc *sc); | ||||
int acpi_sleep_machdep(struct acpi_softc *sc, int state); | int acpi_sleep_machdep(struct acpi_softc *sc, int state); | ||||
int acpi_wakeup_machdep(struct acpi_softc *sc, int state, | int acpi_wakeup_machdep(struct acpi_softc *sc, int state, | ||||
int sleep_result, int intr_enabled); | int sleep_result, int intr_enabled); | ||||
int acpi_table_quirks(int *quirks); | int acpi_table_quirks(int *quirks); | ||||
int acpi_machdep_quirks(int *quirks); | int acpi_machdep_quirks(int *quirks); | ||||
int acpi_pnpinfo_str(ACPI_HANDLE handle, char *buf, size_t buflen); | int acpi_pnpinfo(ACPI_HANDLE handle, struct sbuf *sb); | ||||
uint32_t hpet_get_uid(device_t dev); | uint32_t hpet_get_uid(device_t dev); | ||||
/* Battery Abstraction. */ | /* Battery Abstraction. */ | ||||
struct acpi_battinfo; | struct acpi_battinfo; | ||||
int acpi_battery_register(device_t dev); | int acpi_battery_register(device_t dev); | ||||
int acpi_battery_remove(device_t dev); | int acpi_battery_remove(device_t dev); | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |