From 53a70792e9096e1fa022cf319d27bf15d6e708e1 Mon Sep 17 00:00:00 2001 From: njl Date: Wed, 30 Jun 2004 04:42:29 +0000 Subject: Add machdep quirks functions. On i386, this disables acpi on systems with BIOS dates earlier than Jan 1, 1999. Add prototypes and quirks flags. --- sys/dev/acpica/acpivar.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/dev/acpica') diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h index b3da307..41c424c4f 100644 --- a/sys/dev/acpica/acpivar.h +++ b/sys/dev/acpica/acpivar.h @@ -141,6 +141,10 @@ struct acpi_prw_data { #define ACPI_INTR_APIC 1 #define ACPI_INTR_SAPIC 2 +/* Quirk flags. */ +#define ACPI_Q_OK 0 +#define ACPI_Q_BROKEN (1 << 0) /* Disable ACPI completely. */ + /* * Note that the low ivar values are reserved to provide * interface compatibility with ISA drivers which can also @@ -321,6 +325,8 @@ int acpi_disabled(char *subsys); int acpi_machdep_init(device_t dev); void acpi_install_wakeup_handler(struct acpi_softc *sc); int acpi_sleep_machdep(struct acpi_softc *sc, int state); +int acpi_table_quirks(int *quirks); +int acpi_machdep_quirks(int *quirks); /* Battery Abstraction. */ struct acpi_battinfo; -- cgit v1.1