summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpica/acpivar.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2001-08-30 00:45:42 +0000
committermsmith <msmith@FreeBSD.org>2001-08-30 00:45:42 +0000
commit8f6b46742a2928fb3653970352d68e9871699267 (patch)
tree56cc1b6dba36ce683cb6f65dab690a9a89031659 /sys/dev/acpica/acpivar.h
parent97500794a52271a3feeff5e4124d0ac175173ddc (diff)
downloadFreeBSD-src-8f6b46742a2928fb3653970352d68e9871699267.zip
FreeBSD-src-8f6b46742a2928fb3653970352d68e9871699267.tar.gz
Note that now that some ISA devices will attach to ACPI, we need to
keep the ivar indexes that ISA uses free.
Diffstat (limited to 'sys/dev/acpica/acpivar.h')
-rw-r--r--sys/dev/acpica/acpivar.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index 42cfec7..34997fc 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -123,6 +123,11 @@ acpi_AllocObjectList(int nobj) {
return(l);
}
+/*
+ * Note that the low ivar values are reserved to provide
+ * interface compatibility with ISA drivers which can also
+ * attach to ACPI.
+ */
#define ACPI_IVAR_HANDLE 0x100
#define ACPI_IVAR_MAGIC 0x101
#define ACPI_IVAR_PRIVATE 0x102
@@ -168,7 +173,7 @@ static __inline int
acpi_set_private(device_t dev, void *p) {
return(BUS_WRITE_IVAR(device_get_parent(dev), dev, ACPI_IVAR_PRIVATE, (uintptr_t)p));
}
-
+
static __inline ACPI_OBJECT_TYPE
acpi_get_type(device_t dev) {
ACPI_HANDLE h;
OpenPOWER on IntegriCloud