Allow the acpi_ibm module to be built with ACPI_DEBUG.

This commit is contained in:
Scott Long 2004-12-13 03:22:11 +00:00
parent d0a9f61fea
commit 82d4da0f73
3 changed files with 7 additions and 0 deletions

View File

@ -38,6 +38,9 @@
#include <sys/sysctl.h>
#include <machine/clock.h>
#define _COMPONENT ACPI_IBM
ACPI_MODULE_NAME("IBM")
#define IBM_RTC_MISCKEY 0x65
#define IBM_RTC_BRIGHTNESS 0x6c
#define IBM_RTC_MASK_BRI 0x7
@ -252,6 +255,8 @@ acpi_ibm_attach(device_t dev)
static int
acpi_ibm_detach(device_t dev)
{
ACPI_FUNCTION_TRACE((char *)(uintptr_t) __func__);
struct acpi_ibm_softc *sc = device_get_softc(dev);
acpi_SetInteger(acpi_get_handle(dev), IBM_NAME_ENABLE, 0);
acpi_ibm_enable_mask(dev, sc->ibm_initialmask);

View File

@ -152,6 +152,7 @@ extern struct mtx acpi_mutex;
#define ACPI_THERMAL 0x01000000
#define ACPI_TIMER 0x02000000
#define ACPI_ASUS 0x04000000
#define ACPI_IBM 0x08000000
/*
* Constants for different interrupt models used with acpi_SetIntrModel().

View File

@ -4,5 +4,6 @@
KMOD= acpi_ibm
CFLAGS+= -I/sys/contrib/dev/acpica
SRCS= acpi_ibm.c opt_acpi.h device_if.h bus_if.h acpi_if.h
SRCS+= opt_ddb.h
.include <bsd.kmod.mk>