Rev 1498 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 7... | Line 7... | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
16 | * 2.1. This is your license from Intel Corp. under its intellectual property |
16 | * 2.1. This is your license from Intel Corp. under its intellectual property |
Line 116... | Line 116... | ||
116 | 116 | ||
117 | #ifndef __ASLCOMPILER_H |
117 | #ifndef __ASLCOMPILER_H |
Line -... | Line 118... | ||
- | 118 | #define __ASLCOMPILER_H |
|
- | 119 | ||
- | 120 | #include "acpi.h" |
|
- | 121 | #include "accommon.h" |
|
Line 118... | Line 122... | ||
118 | #define __ASLCOMPILER_H |
122 | #include "amlresrc.h" |
Line 119... | Line 123... | ||
119 | 123 | #include "acdebug.h" |
|
Line 135... | Line 139... | ||
135 | #include |
139 | #include |
136 | #include |
140 | #include |
137 | #include |
141 | #include |
138 | 142 | ||
Line 139... | Line -... | ||
139 | - | ||
140 | #include "acpi.h" |
- | |
141 | #include "accommon.h" |
- | |
142 | #include "amlresrc.h" |
- | |
143 | #include "acdebug.h" |
- | |
144 | - | ||
145 | /* Compiler headers */ |
143 | /* Compiler headers */ |
Line 146... | Line 144... | ||
146 | 144 | ||
147 | #include "asldefine.h" |
145 | #include "asldefine.h" |
- | 146 | #include "asltypes.h" |
|
148 | #include "asltypes.h" |
147 | #include "aslmessages.h" |
Line 149... | Line 148... | ||
149 | #include "aslglobal.h" |
148 | #include "aslglobal.h" |
150 | 149 | ||
Line 187... | Line 186... | ||
187 | FILE *InputFile, |
186 | FILE *InputFile, |
188 | char *Filename); |
187 | char *Filename); |
189 | 188 | ||
Line 190... | Line 189... | ||
190 | /* |
189 | /* |
191 | * aslstartup - called from main |
190 | * aslstartup - entered from main() |
192 | */ |
191 | */ |
- | 192 | void |
|
- | 193 | AslInitializeGlobals ( |
|
- | 194 | void); |
|
- | 195 | ||
- | 196 | typedef |
|
- | 197 | ACPI_STATUS (*ASL_PATHNAME_CALLBACK) ( |
|
- | 198 | char *); |
|
- | 199 | ||
193 | ACPI_STATUS |
200 | ACPI_STATUS |
194 | AslDoOnePathname ( |
201 | AslDoOnePathname ( |
195 | char *Pathname); |
202 | char *Pathname, |
- | 203 | ASL_PATHNAME_CALLBACK Callback); |
|
Line 196... | Line 204... | ||
196 | 204 | ||
197 | ACPI_STATUS |
205 | ACPI_STATUS |
198 | AslDoOneFile ( |
206 | AslDoOneFile ( |
Line 226... | Line 234... | ||
226 | ASL_FILE_INFO *FileInfo); |
234 | ASL_FILE_INFO *FileInfo); |
227 | 235 | ||
Line 228... | Line 236... | ||
228 | 236 | ||
229 | /* |
237 | /* |
230 | * aslanalyze - semantic analysis |
238 | * aslwalks - semantic analysis and parse tree walks |
231 | */ |
239 | */ |
232 | ACPI_STATUS |
240 | ACPI_STATUS |
233 | AnOtherSemanticAnalysisWalkBegin ( |
241 | AnOtherSemanticAnalysisWalkBegin ( |
234 | ACPI_PARSE_OBJECT *Op, |
242 | ACPI_PARSE_OBJECT *Op, |
Line 241... | Line 249... | ||
241 | UINT32 Level, |
249 | UINT32 Level, |
242 | void *Context); |
250 | void *Context); |
243 | 251 | ||
Line 244... | Line 252... | ||
244 | ACPI_STATUS |
252 | ACPI_STATUS |
245 | AnOperandTypecheckWalkBegin ( |
- | |
246 | ACPI_PARSE_OBJECT *Op, |
- | |
247 | UINT32 Level, |
- | |
248 | void *Context); |
- | |
249 | - | ||
250 | ACPI_STATUS |
- | |
251 | AnOperandTypecheckWalkEnd ( |
253 | AnOperandTypecheckWalkEnd ( |
252 | ACPI_PARSE_OBJECT *Op, |
254 | ACPI_PARSE_OBJECT *Op, |
253 | UINT32 Level, |
255 | UINT32 Level, |
254 | void *Context); |
256 | void *Context); |
Line 265... | Line 267... | ||
265 | UINT32 Level, |
267 | UINT32 Level, |
266 | void *Context); |
268 | void *Context); |
267 | 269 | ||
Line 268... | Line 270... | ||
268 | ACPI_STATUS |
270 | ACPI_STATUS |
269 | AnMethodTypingWalkBegin ( |
271 | AnMethodTypingWalkEnd ( |
270 | ACPI_PARSE_OBJECT *Op, |
272 | ACPI_PARSE_OBJECT *Op, |
271 | UINT32 Level, |
273 | UINT32 Level, |
272 | void *Context); |
274 | void *Context); |
Line -... | Line 275... | ||
- | 275 | ||
- | 276 | ||
- | 277 | /* |
|
- | 278 | * aslbtypes - bitfield data types |
|
273 | 279 | */ |
|
- | 280 | UINT32 |
|
- | 281 | AnMapObjTypeToBtype ( |
|
- | 282 | ACPI_PARSE_OBJECT *Op); |
|
- | 283 | ||
274 | ACPI_STATUS |
284 | UINT32 |
- | 285 | AnMapArgTypeToBtype ( |
|
- | 286 | UINT32 ArgType); |
|
- | 287 | ||
- | 288 | UINT32 |
|
- | 289 | AnGetBtype ( |
|
- | 290 | ACPI_PARSE_OBJECT *Op); |
|
- | 291 | ||
- | 292 | void |
|
- | 293 | AnFormatBtype ( |
|
- | 294 | char *Buffer, |
|
- | 295 | UINT32 Btype); |
|
- | 296 | ||
- | 297 | ||
- | 298 | /* |
|
- | 299 | * aslanalyze - Support functions for parse tree walks |
|
- | 300 | */ |
|
- | 301 | void |
|
275 | AnMethodTypingWalkEnd ( |
302 | AnCheckId ( |
- | 303 | ACPI_PARSE_OBJECT *Op, |
|
- | 304 | ACPI_NAME Type); |
|
- | 305 | ||
- | 306 | /* Values for Type argument above */ |
|
- | 307 | ||
- | 308 | #define ASL_TYPE_HID 0 |
|
- | 309 | #define ASL_TYPE_CID 1 |
|
- | 310 | ||
- | 311 | BOOLEAN |
|
- | 312 | AnIsInternalMethod ( |
|
- | 313 | ACPI_PARSE_OBJECT *Op); |
|
- | 314 | ||
- | 315 | UINT32 |
|
- | 316 | AnGetInternalMethodReturnType ( |
|
- | 317 | ACPI_PARSE_OBJECT *Op); |
|
- | 318 | ||
- | 319 | BOOLEAN |
|
- | 320 | AnLastStatementIsReturn ( |
|
- | 321 | ACPI_PARSE_OBJECT *Op); |
|
- | 322 | ||
- | 323 | void |
|
- | 324 | AnCheckMethodReturnValue ( |
|
- | 325 | ACPI_PARSE_OBJECT *Op, |
|
- | 326 | const ACPI_OPCODE_INFO *OpInfo, |
|
276 | ACPI_PARSE_OBJECT *Op, |
327 | ACPI_PARSE_OBJECT *ArgOp, |
277 | UINT32 Level, |
328 | UINT32 RequiredBtypes, |
- | 329 | UINT32 ThisNodeBtype); |
|
- | 330 | ||
- | 331 | BOOLEAN |
|
- | 332 | AnIsResultUsed ( |
|
- | 333 | ACPI_PARSE_OBJECT *Op); |
|
- | 334 | ||
- | 335 | void |
|
- | 336 | ApCheckForGpeNameConflict ( |
|
- | 337 | ACPI_PARSE_OBJECT *Op); |
|
- | 338 | ||
- | 339 | void |
|
- | 340 | ApCheckRegMethod ( |
|
Line 278... | Line 341... | ||
278 | void *Context); |
341 | ACPI_PARSE_OBJECT *Op); |
279 | 342 | ||
280 | 343 | ||
Line 296... | Line 359... | ||
296 | BOOLEAN Abort); |
359 | BOOLEAN Abort); |
297 | 360 | ||
Line 298... | Line 361... | ||
298 | int |
361 | int |
299 | AslCompilererror( |
362 | AslCompilererror( |
300 | char *s); |
363 | const char *s); |
Line 301... | Line 364... | ||
301 | 364 | ||
302 | void |
365 | void |
303 | AslCommonError ( |
366 | AslCommonError ( |
304 | UINT8 Level, |
367 | UINT8 Level, |
Line 468... | Line 531... | ||
468 | 531 | ||
469 | /* |
532 | /* |
470 | * aslpredef - ACPI predefined names support |
533 | * aslpredef - ACPI predefined names support |
471 | */ |
534 | */ |
472 | void |
535 | BOOLEAN |
473 | ApCheckForPredefinedMethod ( |
536 | ApCheckForPredefinedMethod ( |
474 | ACPI_PARSE_OBJECT *Op, |
537 | ACPI_PARSE_OBJECT *Op, |
Line 475... | Line 538... | ||
475 | ASL_METHOD_INFO *MethodInfo); |
538 | ASL_METHOD_INFO *MethodInfo); |
Line 550... | Line 613... | ||
550 | UINT32 ParseOpcode, |
613 | UINT32 ParseOpcode, |
551 | UINT64 Value); |
614 | UINT64 Value); |
552 | 615 | ||
Line 553... | Line 616... | ||
553 | ACPI_PARSE_OBJECT * |
616 | ACPI_PARSE_OBJECT * |
- | 617 | TrCreateConstantLeafNode ( |
|
- | 618 | UINT32 ParseOpcode); |
|
- | 619 | ||
- | 620 | ACPI_PARSE_OBJECT * |
|
554 | TrLinkChildren ( |
621 | TrLinkChildren ( |
555 | ACPI_PARSE_OBJECT *Op, |
622 | ACPI_PARSE_OBJECT *Op, |
556 | UINT32 NumChildren, |
623 | UINT32 NumChildren, |
557 | ...); |
624 | ...); |
Line 675... | Line 742... | ||
675 | ACPI_STATUS |
742 | ACPI_STATUS |
676 | LsDisplayNamespace ( |
743 | LsDisplayNamespace ( |
677 | void); |
744 | void); |
Line -... | Line 745... | ||
- | 745 | ||
- | 746 | void |
|
- | 747 | LsSetupNsList ( |
|
- | 748 | void *Handle); |
|
Line 678... | Line 749... | ||
678 | 749 | ||
679 | 750 | ||
680 | /* |
751 | /* |
681 | * aslutils - common compiler utilites |
752 | * aslutils - common compiler utilites |
Line 692... | Line 763... | ||
692 | #define ASL_PARSE_OUTPUT 1 |
763 | #define ASL_PARSE_OUTPUT 1 |
693 | #define ASL_TREE_OUTPUT 2 |
764 | #define ASL_TREE_OUTPUT 2 |
694 | 765 | ||
Line 695... | Line 766... | ||
695 | void |
766 | void |
- | 767 | UtDisplaySupportedTables ( |
|
- | 768 | void); |
|
- | 769 | ||
- | 770 | void |
|
696 | UtDisplayConstantOpcodes ( |
771 | UtDisplayConstantOpcodes ( |
697 | void); |
772 | void); |
Line 698... | Line 773... | ||
698 | 773 | ||
699 | UINT8 |
774 | UINT8 |
Line 762... | Line 837... | ||
762 | UINT64 |
837 | UINT64 |
763 | UtDoConstant ( |
838 | UtDoConstant ( |
764 | char *String); |
839 | char *String); |
Line -... | Line 840... | ||
- | 840 | ||
- | 841 | ACPI_STATUS |
|
- | 842 | UtStrtoul64 ( |
|
- | 843 | char *String, |
|
- | 844 | UINT32 Base, |
|
- | 845 | UINT64 *RetInteger); |
|
- | 846 | ||
- | 847 | ||
- | 848 | /* |
|
- | 849 | * asluuid - UUID support |
|
- | 850 | */ |
|
- | 851 | ACPI_STATUS |
|
- | 852 | AuValidateUuid ( |
|
- | 853 | char *InString); |
|
- | 854 | ||
- | 855 | ACPI_STATUS |
|
- | 856 | AuConvertStringToUuid ( |
|
- | 857 | char *InString, |
|
- | 858 | char *UuIdBuffer); |
|
- | 859 | ||
- | 860 | ACPI_STATUS |
|
- | 861 | AuConvertUuidToString ( |
|
- | 862 | char *UuIdBuffer, |
|
Line 765... | Line 863... | ||
765 | 863 | char *OutString); |
|
766 | 864 | ||
767 | /* |
865 | /* |
768 | * aslresource - Resource template generation utilities |
866 | * aslresource - Resource template generation utilities |
Line 776... | Line 874... | ||
776 | UINT32 Alignment, |
874 | UINT32 Alignment, |
777 | ACPI_PARSE_OBJECT *MinOp, |
875 | ACPI_PARSE_OBJECT *MinOp, |
778 | ACPI_PARSE_OBJECT *MaxOp, |
876 | ACPI_PARSE_OBJECT *MaxOp, |
779 | ACPI_PARSE_OBJECT *LengthOp, |
877 | ACPI_PARSE_OBJECT *LengthOp, |
780 | ACPI_PARSE_OBJECT *AlignOp); |
878 | ACPI_PARSE_OBJECT *AlignOp, |
781 | 879 | ACPI_PARSE_OBJECT *Op); |
|
- | 880 | ||
Line 782... | Line 881... | ||
782 | void |
881 | void |
783 | RsLargeAddressCheck ( |
882 | RsLargeAddressCheck ( |
784 | UINT64 Minimum, |
883 | UINT64 Minimum, |
785 | UINT64 Maximum, |
884 | UINT64 Maximum, |
Line 788... | Line 887... | ||
788 | UINT8 Flags, |
887 | UINT8 Flags, |
789 | ACPI_PARSE_OBJECT *MinOp, |
888 | ACPI_PARSE_OBJECT *MinOp, |
790 | ACPI_PARSE_OBJECT *MaxOp, |
889 | ACPI_PARSE_OBJECT *MaxOp, |
791 | ACPI_PARSE_OBJECT *LengthOp, |
890 | ACPI_PARSE_OBJECT *LengthOp, |
792 | ACPI_PARSE_OBJECT *GranOp); |
891 | ACPI_PARSE_OBJECT *GranOp, |
793 | 892 | ACPI_PARSE_OBJECT *Op); |
|
- | 893 | ||
Line 794... | Line 894... | ||
794 | UINT16 |
894 | UINT16 |
795 | RsGetStringDataLength ( |
895 | RsGetStringDataLength ( |
796 | ACPI_PARSE_OBJECT *InitializerOp); |
896 | ACPI_PARSE_OBJECT *InitializerOp); |
Line 1022... | Line 1122... | ||
1022 | ACPI_STATUS |
1122 | ACPI_STATUS |
1023 | DtDoCompile( |
1123 | DtDoCompile( |
1024 | void); |
1124 | void); |
1025 | 1125 | ||
Line -... | Line 1126... | ||
- | 1126 | ACPI_STATUS |
|
- | 1127 | DtCreateTemplates ( |
|
- | 1128 | char *Signature); |
|
- | 1129 | ||
1026 | #endif /* __ASLCOMPILER_H */ |
1130 | #endif /* __ASLCOMPILER_H */ |