MFi386 by jhb: add acpi_SetDefaultIntrModel();

This commit is contained in:
peter 2003-09-22 22:12:46 +00:00
parent 59e5f21ece
commit 9ef9c77080
2 changed files with 14 additions and 0 deletions

View File

@ -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;
}

View File

@ -103,4 +103,6 @@
#define COMPILER_DEPENDENT_INT64 long
#define COMPILER_DEPENDENT_UINT64 unsigned long
void acpi_SetDefaultIntrModel(int model);
#endif /* __ACPICA_MACHDEP_H__ */