summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-12-13 03:22:11 +0000
committerscottl <scottl@FreeBSD.org>2004-12-13 03:22:11 +0000
commit1048e6f4a67f2cbee222c65f6a6131ef6bc22586 (patch)
tree99d27c4d3912e7df1a8351ab9c8ea7fdf6e0d7e5 /sys/dev
parent532abd191c9bc0c73b816d6a61b5a8e964f11a66 (diff)
downloadFreeBSD-src-1048e6f4a67f2cbee222c65f6a6131ef6bc22586.zip
FreeBSD-src-1048e6f4a67f2cbee222c65f6a6131ef6bc22586.tar.gz
Allow the acpi_ibm module to be built with ACPI_DEBUG.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi_support/acpi_ibm.c5
-rw-r--r--sys/dev/acpica/acpivar.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/acpi_support/acpi_ibm.c b/sys/dev/acpi_support/acpi_ibm.c
index 97e5f30..e679efb 100644
--- a/sys/dev/acpi_support/acpi_ibm.c
+++ b/sys/dev/acpi_support/acpi_ibm.c
@@ -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 @@ fail:
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);
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index 88d041c..41f3fdf 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -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().
OpenPOWER on IntegriCloud