OpenCore
1.0.4
OpenCore Bootloader
|
Go to the source code of this file.
Data Structures | |
struct | ACPI_PARSER_CONTEXT |
Macros | |
#define | IDENT_LEN 4 |
#define | OPCODE_LEN 8 |
#define | MAX_NESTING 1024 |
#define | CONTEXT_ENTER(Context, Name) |
#define | PRINT_ACPI_NAME(Str, Name, Length) |
#define | CONTEXT_HAS_WORK(Context) |
#define | CONTEXT_INCREASE_NESTING(Context) |
#define | CONTEXT_DECREASE_NESTING(Context) |
#define | CONTEXT_PEEK_BYTES(Context, Bytes) |
#define | CONTEXT_CONSUME_BYTES(Context, Bytes) |
#define | CONTEXT_ADVANCE_OPCODE(Context) |
Functions | |
EFI_STATUS | InternalAcpiParseTerm (IN OUT ACPI_PARSER_CONTEXT *Context, OUT UINT8 **Result) |
Copyright (c) 2020-2021, Ubsefor & koralexa. All rights reserved. SPDX-License-Identifier: BSD-3-Clause
Definition in file AcpiParser.h.
#define CONTEXT_ADVANCE_OPCODE | ( | Context | ) |
Advance opcode to call the new parsing code. This one will error as long as there is no new opcode, i.e. one byte after the current one.
Definition at line 141 of file AcpiParser.h.
#define CONTEXT_CONSUME_BYTES | ( | Context, | |
Bytes ) |
Consume the specified amount of bytes.
Definition at line 129 of file AcpiParser.h.
#define CONTEXT_DECREASE_NESTING | ( | Context | ) |
Exit nesting level. Does not need to be called on error-exit.
Definition at line 112 of file AcpiParser.h.
#define CONTEXT_ENTER | ( | Context, | |
Name ) |
Print new entry name.
Definition at line 58 of file AcpiParser.h.
#define CONTEXT_HAS_WORK | ( | Context | ) |
Check that context is valid and has work to do.
Definition at line 85 of file AcpiParser.h.
#define CONTEXT_INCREASE_NESTING | ( | Context | ) |
Enter new nesting level.
Definition at line 101 of file AcpiParser.h.
#define CONTEXT_PEEK_BYTES | ( | Context, | |
Bytes ) |
Check the specified amount of bytes exists.
Definition at line 120 of file AcpiParser.h.
#define IDENT_LEN 4 |
Definition at line 51 of file AcpiParser.h.
#define MAX_NESTING 1024 |
Definition at line 53 of file AcpiParser.h.
#define OPCODE_LEN 8 |
Definition at line 52 of file AcpiParser.h.
#define PRINT_ACPI_NAME | ( | Str, | |
Name, | |||
Length ) |
Definition at line 70 of file AcpiParser.h.
EFI_STATUS InternalAcpiParseTerm | ( | IN OUT ACPI_PARSER_CONTEXT * | Context, |
OUT UINT8 ** | Result ) |
Determines which object to parse (depending on the opcode) and calls the corresponding parser function.
[in,out] | Context | Structure containing the parser context. |
[out] | Result | Pointer to sought opcode if required entry was found. |
EFI_SUCCESS | Required entry was found (search complete). |
EFI_NOT_FOUND | Required entry was not found (more terms need to be parsed). |
EFI_DEVICE_ERROR | Error occured during parsing (must abort). |
EFI_OUT_OF_RESOURCES | Nesting limit has been reached (must abort). |
Definition at line 1728 of file AcpiParser.c.