acpidb.c (167814) | acpidb.c (193531) |
---|---|
1/*- 2 * Copyright (c) 2000-2002 Mitsuru IWASAKI <iwasaki@FreeBSD.org> 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * | 1/*- 2 * Copyright (c) 2000-2002 Mitsuru IWASAKI <iwasaki@FreeBSD.org> 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * $FreeBSD: head/usr.sbin/acpi/acpidb/acpidb.c 167814 2007-03-22 18:16:43Z jkim $ | 26 * $FreeBSD: head/usr.sbin/acpi/acpidb/acpidb.c 193531 2009-06-05 18:50:45Z jkim $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/queue.h> 31#include <sys/mman.h> 32#include <sys/stat.h> 33#include <sys/stdint.h> 34#include <sys/types.h> 35 36#include <assert.h> 37#include <ctype.h> 38#include <err.h> 39#include <fcntl.h> 40#include <limits.h> 41#include <stdio.h> 42#include <stdlib.h> 43#include <unistd.h> 44 | 27 */ 28 29#include <sys/param.h> 30#include <sys/queue.h> 31#include <sys/mman.h> 32#include <sys/stat.h> 33#include <sys/stdint.h> 34#include <sys/types.h> 35 36#include <assert.h> 37#include <ctype.h> 38#include <err.h> 39#include <fcntl.h> 40#include <limits.h> 41#include <stdio.h> 42#include <stdlib.h> 43#include <unistd.h> 44 |
45#include 46#include <contrib/dev/acpica/acnamesp.h> 47#include <contrib/dev/acpica/acdebug.h> | 45#include <contrib/dev/acpica/include/acpi.h> 46#include <contrib/dev/acpica/tools/acpiexec/aecommon.h> |
48 49/* 50 * Dummy DSDT Table Header 51 */ 52 53ACPI_TABLE_HEADER dummy_dsdt_table = { 54 "DSDT", 123, 1, 123, "OEMID", "OEMTBLID", 1, "CRID", 1 55}; --- 29 unchanged lines hidden (view full) --- 85static ACPI_INTEGER aml_simulate_prompt(char *msg, ACPI_INTEGER def_val); 86static void aml_simulation_regload(const char *dumpfile); 87static void aml_simulation_regdump(const char *dumpfile); 88 89/* Stubs to simplify linkage to the ACPI CA core subsystem. */ 90ACPI_STATUS 91AeLocalGetRootPointer(void) 92{ | 47 48/* 49 * Dummy DSDT Table Header 50 */ 51 52ACPI_TABLE_HEADER dummy_dsdt_table = { 53 "DSDT", 123, 1, 123, "OEMID", "OEMTBLID", 1, "CRID", 1 54}; --- 29 unchanged lines hidden (view full) --- 84static ACPI_INTEGER aml_simulate_prompt(char *msg, ACPI_INTEGER def_val); 85static void aml_simulation_regload(const char *dumpfile); 86static void aml_simulation_regdump(const char *dumpfile); 87 88/* Stubs to simplify linkage to the ACPI CA core subsystem. */ 89ACPI_STATUS 90AeLocalGetRootPointer(void) 91{ |
93 return AE_ERROR; | 92 93 return (AE_ERROR); |
94} 95 | 94} 95 |
96void 97AeTableOverride(ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable) 98{ 99} 100 |
|
96static void 97aml_simulation_init(void) 98{ 99 100 aml_simulation_initialized = 1; 101 TAILQ_INIT(&RegionContentList); 102 aml_simulation_regload("region.ini"); 103} --- 395 unchanged lines hidden --- | 101static void 102aml_simulation_init(void) 103{ 104 105 aml_simulation_initialized = 1; 106 TAILQ_INIT(&RegionContentList); 107 aml_simulation_regload("region.ini"); 108} --- 395 unchanged lines hidden --- |