acpi_machdep.c (241856) | acpi_machdep.c (241885) |
---|---|
1/*- 2 * Copyright (c) 2001 Mitsuru IWASAKI 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 Mitsuru IWASAKI 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/i386/acpica/acpi_machdep.c 241856 2012-10-22 03:41:14Z eadler $"); | 28__FBSDID("$FreeBSD: head/sys/i386/acpica/acpi_machdep.c 241885 2012-10-22 13:06:09Z eadler $"); |
29 30#include <sys/param.h> 31#include <sys/bus.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/sysctl.h> 35 36#include <vm/vm.h> --- 226 unchanged lines hidden (view full) --- 263 ACPI_PHYSICAL_ADDRESS rsdp_ptr; 264 ACPI_TABLE_RSDP *rsdp; 265 ACPI_TABLE_RSDT *rsdt; 266 ACPI_TABLE_XSDT *xsdt; 267 ACPI_TABLE_HEADER *table; 268 vm_paddr_t addr; 269 int i, count; 270 | 29 30#include <sys/param.h> 31#include <sys/bus.h> 32#include <sys/kernel.h> 33#include <sys/module.h> 34#include <sys/sysctl.h> 35 36#include <vm/vm.h> --- 226 unchanged lines hidden (view full) --- 263 ACPI_PHYSICAL_ADDRESS rsdp_ptr; 264 ACPI_TABLE_RSDP *rsdp; 265 ACPI_TABLE_RSDT *rsdt; 266 ACPI_TABLE_XSDT *xsdt; 267 ACPI_TABLE_HEADER *table; 268 vm_paddr_t addr; 269 int i, count; 270 |
271 if (resource_disabled("acpi", 0)) 272 return (0); 273 |
|
271 /* 272 * Map in the RSDP. Since ACPI uses AcpiOsMapMemory() which in turn 273 * calls pmap_mapbios() to find the RSDP, we assume that we can use 274 * pmap_mapbios() to map the RSDP. 275 */ 276 if ((rsdp_ptr = AcpiOsGetRootPointer()) == 0) 277 return (0); 278 rsdp = pmap_mapbios(rsdp_ptr, sizeof(ACPI_TABLE_RSDP)); --- 114 unchanged lines hidden --- | 274 /* 275 * Map in the RSDP. Since ACPI uses AcpiOsMapMemory() which in turn 276 * calls pmap_mapbios() to find the RSDP, we assume that we can use 277 * pmap_mapbios() to map the RSDP. 278 */ 279 if ((rsdp_ptr = AcpiOsGetRootPointer()) == 0) 280 return (0); 281 rsdp = pmap_mapbios(rsdp_ptr, sizeof(ACPI_TABLE_RSDP)); --- 114 unchanged lines hidden --- |