acpidb.c (252276) | acpidb.c (272444) |
---|---|
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 252276 2013-06-26 23:52:10Z jkim $ | 26 * $FreeBSD: head/usr.sbin/acpi/acpidb/acpidb.c 272444 2014-10-02 19:11:18Z 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> --- 5 unchanged lines hidden (view full) --- 40#include <limits.h> 41#include <stdio.h> 42#include <stdlib.h> 43#include <unistd.h> 44 45#include <contrib/dev/acpica/include/acpi.h> 46#include <contrib/dev/acpica/include/accommon.h> 47#include <contrib/dev/acpica/include/acdebug.h> | 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> --- 5 unchanged lines hidden (view full) --- 40#include <limits.h> 41#include <stdio.h> 42#include <stdlib.h> 43#include <unistd.h> 44 45#include <contrib/dev/acpica/include/acpi.h> 46#include <contrib/dev/acpica/include/accommon.h> 47#include <contrib/dev/acpica/include/acdebug.h> |
48#include <contrib/dev/acpica/include/amlresrc.h> |
|
48 49/* 50 * Dummy DSDT Table Header 51 */ 52 53static ACPI_TABLE_HEADER dummy_dsdt_table = { 54 "DSDT", 123, 1, 123, "OEMID", "OEMTBLID", 1, "CRID", 1 55}; --- 28 unchanged lines hidden (view full) --- 84 UINT8 *valuep); 85static int aml_simulate_regcontent_write(int regtype, 86 ACPI_PHYSICAL_ADDRESS addr, 87 UINT8 *valuep); 88static UINT64 aml_simulate_prompt(char *msg, UINT64 def_val); 89static void aml_simulation_regload(const char *dumpfile); 90static void aml_simulation_regdump(const char *dumpfile); 91 | 49 50/* 51 * Dummy DSDT Table Header 52 */ 53 54static ACPI_TABLE_HEADER dummy_dsdt_table = { 55 "DSDT", 123, 1, 123, "OEMID", "OEMTBLID", 1, "CRID", 1 56}; --- 28 unchanged lines hidden (view full) --- 85 UINT8 *valuep); 86static int aml_simulate_regcontent_write(int regtype, 87 ACPI_PHYSICAL_ADDRESS addr, 88 UINT8 *valuep); 89static UINT64 aml_simulate_prompt(char *msg, UINT64 def_val); 90static void aml_simulation_regload(const char *dumpfile); 91static void aml_simulation_regdump(const char *dumpfile); 92 |
92/* Stubs to simplify linkage to the ACPI CA core subsystem. */ | 93/* Stubs to simplify linkage to the ACPICA core subsystem. */ |
93ACPI_PHYSICAL_ADDRESS | 94ACPI_PHYSICAL_ADDRESS |
94AeLocalGetRootPointer(void) | 95AcpiOsGetRootPointer(void) |
95{ 96 97 return (0); 98} 99 100void 101AeTableOverride(ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable) 102{ 103} 104 | 96{ 97 98 return (0); 99} 100 101void 102AeTableOverride(ACPI_TABLE_HEADER *ExistingTable, ACPI_TABLE_HEADER **NewTable) 103{ 104} 105 |
106void 107MpSaveGpioInfo(ACPI_PARSE_OBJECT *Op, AML_RESOURCE *Resource, 108 UINT32 PinCount, UINT16 *PinList, char *DeviceName) 109{ 110} 111 112void 113MpSaveSerialInfo(ACPI_PARSE_OBJECT *Op, AML_RESOURCE *Resource, 114 char *DeviceName) 115{ 116} 117 |
|
105static void 106aml_simulation_init(void) 107{ 108 109 aml_simulation_initialized = 1; 110 TAILQ_INIT(&RegionContentList); 111 aml_simulation_regload("region.ini"); 112} --- 396 unchanged lines hidden --- | 118static void 119aml_simulation_init(void) 120{ 121 122 aml_simulation_initialized = 1; 123 TAILQ_INIT(&RegionContentList); 124 aml_simulation_regload("region.ini"); 125} --- 396 unchanged lines hidden --- |