diff options
author | jhb <jhb@FreeBSD.org> | 2009-09-23 15:42:35 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-09-23 15:42:35 +0000 |
commit | 3f9fa059d728aa84a279591b28ace3f492381d74 (patch) | |
tree | 819cd5a8387fa2c662b3e881f117275815b84f54 /sys/amd64/include/acpica_machdep.h | |
parent | db540265723b7c60fa06a887e9443e08f2bc2fc0 (diff) | |
download | FreeBSD-src-3f9fa059d728aa84a279591b28ace3f492381d74.zip FreeBSD-src-3f9fa059d728aa84a279591b28ace3f492381d74.tar.gz |
Extract the code to find and map the MADT ACPI table during early kernel
startup and genericize it so it can be reused to map other tables as well:
- Add a routine to walk a list of ACPI subtables such as those used in the
APIC and SRAT tables in the MI acpi(4) driver.
- Move the routines for mapping and unmapping an ACPI table as well as
mapping the RSDT or XSDT and searching for a table with a given signature
out into acpica_machdep.c for both amd64 and i386.
Diffstat (limited to 'sys/amd64/include/acpica_machdep.h')
-rw-r--r-- | sys/amd64/include/acpica_machdep.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/amd64/include/acpica_machdep.h b/sys/amd64/include/acpica_machdep.h index 76cc69e..9943af7 100644 --- a/sys/amd64/include/acpica_machdep.h +++ b/sys/amd64/include/acpica_machdep.h @@ -77,5 +77,8 @@ extern int acpi_release_global_lock(uint32_t *lock); void acpi_SetDefaultIntrModel(int model); void acpi_cpu_c1(void); +void *acpi_map_table(vm_paddr_t pa, const char *sig); +void acpi_unmap_table(void *table); +vm_paddr_t acpi_find_table(const char *sig); #endif /* __ACPICA_MACHDEP_H__ */ |