diff options
author | peter <peter@FreeBSD.org> | 2003-09-22 22:12:46 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2003-09-22 22:12:46 +0000 |
commit | 4e3647008b468cbc9816a8d0df92ee868203f341 (patch) | |
tree | 06bef79906b3c1948edc70141193e2d5fa06670c /sys/amd64/acpica/acpi_machdep.c | |
parent | 724da5f1117ddad235c7b38cbbe904a81c90bec2 (diff) | |
download | FreeBSD-src-4e3647008b468cbc9816a8d0df92ee868203f341.zip FreeBSD-src-4e3647008b468cbc9816a8d0df92ee868203f341.tar.gz |
MFi386 by jhb: add acpi_SetDefaultIntrModel();
Diffstat (limited to 'sys/amd64/acpica/acpi_machdep.c')
-rw-r--r-- | sys/amd64/acpica/acpi_machdep.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/amd64/acpica/acpi_machdep.c b/sys/amd64/acpica/acpi_machdep.c index 1893449..dee828a 100644 --- a/sys/amd64/acpica/acpi_machdep.c +++ b/sys/amd64/acpica/acpi_machdep.c @@ -33,6 +33,8 @@ __FBSDID("$FreeBSD$"); #include "acpi.h" #include <dev/acpica/acpivar.h> +static int intr_model = ACPI_INTR_PIC; + int acpi_machdep_init(device_t dev) { @@ -43,5 +45,15 @@ acpi_machdep_init(device_t dev) acpi_install_wakeup_handler(sc); + if (intr_model != ACPI_INTR_PIC) + acpi_SetIntrModel(intr_model); + return (0); } + +void +acpi_SetDefaultIntrModel(int model) +{ + + intr_model = model; +} |