Print this page
acpica-unix2-20130823
PANKOVs restructure
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/uts/intel/sys/acpi/acapps.h
+++ new/usr/src/common/acpica/include/acapps.h
1 1 /******************************************************************************
2 2 *
3 3 * Module Name: acapps - common include for ACPI applications/tools
4 4 *
5 5 *****************************************************************************/
6 6
7 7 /*
8 - * Copyright (C) 2000 - 2011, Intel Corp.
8 + * Copyright (C) 2000 - 2013, Intel Corp.
9 9 * All rights reserved.
10 10 *
11 11 * Redistribution and use in source and binary forms, with or without
12 12 * modification, are permitted provided that the following conditions
13 13 * are met:
14 14 * 1. Redistributions of source code must retain the above copyright
15 15 * notice, this list of conditions, and the following disclaimer,
16 16 * without modification.
17 17 * 2. Redistributions in binary form must reproduce at minimum a disclaimer
18 18 * substantially similar to the "NO WARRANTY" disclaimer below
19 19 * ("Disclaimer") and any redistribution must be conditioned upon
20 20 * including a substantially similar Disclaimer requirement for further
21 21 * binary redistribution.
22 22 * 3. Neither the names of the above-listed copyright holders nor the names
23 23 * of any contributors may be used to endorse or promote products derived
24 24 * from this software without specific prior written permission.
25 25 *
26 26 * Alternatively, this software may be distributed under the terms of the
27 27 * GNU General Public License ("GPL") version 2 as published by the Free
28 28 * Software Foundation.
29 29 *
30 30 * NO WARRANTY
31 31 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32 32 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33 33 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
34 34 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
35 35 * HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 36 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
37 37 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
38 38 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
39 39 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
40 40 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41 41 * POSSIBILITY OF SUCH DAMAGES.
42 42 */
43 43
44 44 #ifndef _ACAPPS
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
45 45 #define _ACAPPS
46 46
47 47
48 48 #ifdef _MSC_VER /* disable some level-4 warnings */
49 49 #pragma warning(disable:4100) /* warning C4100: unreferenced formal parameter */
50 50 #endif
51 51
52 52 /* Common info for tool signons */
53 53
54 54 #define ACPICA_NAME "Intel ACPI Component Architecture"
55 -#define ACPICA_COPYRIGHT "Copyright (c) 2000 - 2011 Intel Corporation"
55 +#define ACPICA_COPYRIGHT "Copyright (c) 2000 - 2013 Intel Corporation"
56 56
57 57 #if ACPI_MACHINE_WIDTH == 64
58 58 #define ACPI_WIDTH "-64"
59 59
60 60 #elif ACPI_MACHINE_WIDTH == 32
61 61 #define ACPI_WIDTH "-32"
62 62
63 63 #else
64 64 #error unknown ACPI_MACHINE_WIDTH
65 65 #define ACPI_WIDTH "-??"
66 66
67 67 #endif
68 68
69 69 /* Macros for signons and file headers */
70 70
71 71 #define ACPI_COMMON_SIGNON(UtilityName) \
72 72 "\n%s\n%s version %8.8X%s [%s]\n%s\n\n", \
73 73 ACPICA_NAME, \
↓ open down ↓ |
8 lines elided |
↑ open up ↑ |
74 74 UtilityName, ((UINT32) ACPI_CA_VERSION), ACPI_WIDTH, __DATE__, \
75 75 ACPICA_COPYRIGHT
76 76
77 77 #define ACPI_COMMON_HEADER(UtilityName, Prefix) \
78 78 "%s%s\n%s%s version %8.8X%s [%s]\n%s%s\n%s\n", \
79 79 Prefix, ACPICA_NAME, \
80 80 Prefix, UtilityName, ((UINT32) ACPI_CA_VERSION), ACPI_WIDTH, __DATE__, \
81 81 Prefix, ACPICA_COPYRIGHT, \
82 82 Prefix
83 83
84 +/* Macros for usage messages */
85 +
86 +#define ACPI_USAGE_HEADER(Usage) \
87 + printf ("Usage: %s\nOptions:\n", Usage);
88 +
89 +#define ACPI_OPTION(Name, Description) \
90 + printf (" %-18s%s\n", Name, Description);
91 +
92 +
84 93 #define FILE_SUFFIX_DISASSEMBLY "dsl"
85 94 #define ACPI_TABLE_FILE_SUFFIX ".dat"
86 95
87 96
88 97 /*
89 98 * getopt
90 99 */
91 100 int
92 101 AcpiGetopt(
93 102 int argc,
94 103 char **argv,
95 104 char *opts);
96 105
106 +int
107 +AcpiGetoptArgument (
108 + int argc,
109 + char **argv);
110 +
97 111 extern int AcpiGbl_Optind;
98 112 extern int AcpiGbl_Opterr;
113 +extern int AcpiGbl_SubOptChar;
99 114 extern char *AcpiGbl_Optarg;
100 115
101 116
117 +#ifndef ACPI_DUMP_APP
102 118 /*
103 119 * adisasm
104 120 */
105 121 ACPI_STATUS
106 122 AdAmlDisassemble (
107 123 BOOLEAN OutToFile,
108 124 char *Filename,
109 125 char *Prefix,
110 126 char **OutFilename,
111 127 BOOLEAN GetAllTables);
112 128
113 129 void
114 130 AdPrintStatistics (
115 131 void);
116 132
117 133 ACPI_STATUS
118 134 AdFindDsdt(
119 135 UINT8 **DsdtPtr,
120 136 UINT32 *DsdtLength);
121 137
122 138 void
123 139 AdDumpTables (
124 140 void);
125 141
126 142 ACPI_STATUS
127 143 AdGetLocalTables (
128 144 char *Filename,
129 145 BOOLEAN GetAllTables);
130 146
131 147 ACPI_STATUS
132 148 AdParseTable (
133 149 ACPI_TABLE_HEADER *Table,
134 150 ACPI_OWNER_ID *OwnerId,
135 151 BOOLEAN LoadTable,
136 152 BOOLEAN External);
137 153
138 154 ACPI_STATUS
139 155 AdDisplayTables (
140 156 char *Filename,
141 157 ACPI_TABLE_HEADER *Table);
142 158
143 159 ACPI_STATUS
144 160 AdDisplayStatistics (
145 161 void);
146 162
147 163
148 164 /*
149 165 * adwalk
150 166 */
151 167 void
152 168 AcpiDmCrossReferenceNamespace (
153 169 ACPI_PARSE_OBJECT *ParseTreeRoot,
154 170 ACPI_NAMESPACE_NODE *NamespaceRoot,
155 171 ACPI_OWNER_ID OwnerId);
156 172
157 173 void
158 174 AcpiDmDumpTree (
159 175 ACPI_PARSE_OBJECT *Origin);
160 176
161 177 void
162 178 AcpiDmFindOrphanMethods (
163 179 ACPI_PARSE_OBJECT *Origin);
164 180
165 181 void
166 182 AcpiDmFinishNamespaceLoad (
167 183 ACPI_PARSE_OBJECT *ParseTreeRoot,
168 184 ACPI_NAMESPACE_NODE *NamespaceRoot,
169 185 ACPI_OWNER_ID OwnerId);
170 186
171 187 void
172 188 AcpiDmConvertResourceIndexes (
173 189 ACPI_PARSE_OBJECT *ParseTreeRoot,
174 190 ACPI_NAMESPACE_NODE *NamespaceRoot);
175 191
176 192
177 193 /*
178 194 * adfile
179 195 */
180 196 ACPI_STATUS
181 197 AdInitialize (
182 198 void);
183 199
184 200 char *
185 201 FlGenerateFilename (
186 202 char *InputFilename,
187 203 char *Suffix);
188 204
189 205 ACPI_STATUS
190 206 FlSplitInputPathname (
191 207 char *InputPath,
192 208 char **OutDirectoryPath,
193 209 char **OutFilename);
194 210
195 211 char *
↓ open down ↓ |
84 lines elided |
↑ open up ↑ |
196 212 AdGenerateFilename (
197 213 char *Prefix,
198 214 char *TableId);
199 215
200 216 void
201 217 AdWriteTable (
202 218 ACPI_TABLE_HEADER *Table,
203 219 UINT32 Length,
204 220 char *TableName,
205 221 char *OemTableId);
222 +#endif
206 223
207 224 #endif /* _ACAPPS */
208 -
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX