summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/acpica_osd.h
diff options
context:
space:
mode:
authoriwasaki <iwasaki@FreeBSD.org>2000-08-29 20:30:54 +0000
committeriwasaki <iwasaki@FreeBSD.org>2000-08-29 20:30:54 +0000
commita8d8728b12d7dd28175710de3a5d2467698b0bf9 (patch)
tree5b8971f3594809db906d81c367e075f00e77be3d /sys/i386/include/acpica_osd.h
parentbf91a5cf437757e5720c378ba89a45dbe6f838ac (diff)
downloadFreeBSD-src-a8d8728b12d7dd28175710de3a5d2467698b0bf9.zip
FreeBSD-src-a8d8728b12d7dd28175710de3a5d2467698b0bf9.tar.gz
A lot of changes on acpi driver code.
- The "Osd*" stuff went away from acpi driver code, use the bus_space functions directly instead. - Fix minor english bugs. acpi_registers_input -> acpi_register_input acpi_registers_output -> acpi_register_output - Remove all magic numbers for the sleeping states. We now have #defines for these. - NULL is treated the same as the return from aml_get_rootname in aml_find_from_namespace(). Suggested by: msmith Thanks mike!
Diffstat (limited to 'sys/i386/include/acpica_osd.h')
-rw-r--r--sys/i386/include/acpica_osd.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/include/acpica_osd.h b/sys/i386/include/acpica_osd.h
index 1d1364f..acc67af 100644
--- a/sys/i386/include/acpica_osd.h
+++ b/sys/i386/include/acpica_osd.h
@@ -37,6 +37,8 @@
#include <vm/pmap.h>
#include <pci/pcivar.h>
+#define ACPI_BUS_SPACE_IO I386_BUS_SPACE_IO
+
/*
* ACPICA compatibility
*/
@@ -55,7 +57,7 @@ OsdInX(ACPI_IO_ADDRESS InPort, int bytes)
bus_space_handle_t bsh;
UINT32 retval;
- bst = I386_BUS_SPACE_IO;
+ bst = ACPI_BUS_SPACE_IO;
bsh = InPort;
switch (bytes) {
case 1:
@@ -107,7 +109,7 @@ OsdOutX(ACPI_IO_ADDRESS OutPort, UINT32 Value, int bytes)
bus_space_tag_t bst;
bus_space_handle_t bsh;
- bst = I386_BUS_SPACE_IO;
+ bst = ACPI_BUS_SPACE_IO;
bsh = OutPort;
switch (bytes) {
case 1:
OpenPOWER on IntegriCloud