TianoCore EDK2 master
|
Macros | |
#define | AML_RD_IS_LARGE(Header) |
#define | AML_RD_BUILD_SMALL_DESC_ID(Id) ((AML_RD_HEADER)((Id & 0xF) << 3)) |
#define | AML_RD_BUILD_LARGE_DESC_ID(Id) ((AML_RD_HEADER)((BIT7) | Id)) |
Functions | |
BOOLEAN EFIAPI | AmlRdCompareDescId (IN CONST AML_RD_HEADER *Header, IN AML_RD_HEADER DescriptorId) |
AML_RD_HEADER EFIAPI | AmlRdGetDescId (IN CONST AML_RD_HEADER *Header) |
UINT32 EFIAPI | AmlRdGetSize (IN CONST AML_RD_HEADER *Header) |
Resource data APIs allow to manipulate/decode resource data elements.
#define AML_RD_BUILD_LARGE_DESC_ID | ( | Id | ) | ((AML_RD_HEADER)((BIT7) | Id)) |
Build a large resource data descriptor Id. The small/large bit is included in the descriptor Id.
[in] | Id | Id of the descriptor. |
Definition at line 117 of file AmlResourceData.h.
#define AML_RD_BUILD_SMALL_DESC_ID | ( | Id | ) | ((AML_RD_HEADER)((Id & 0xF) << 3)) |
Build a small resource data descriptor Id. The small/large bit is included in the descriptor Id, but the size bits are not included.
[in] | Id | Descriptor Id. |
Definition at line 106 of file AmlResourceData.h.
#define AML_RD_IS_LARGE | ( | Header | ) |
Check whether a resource data is of the large type.
[in] | Header | Pointer to the first byte of a resource data. |
TRUE | If the resource data is of the large type. |
FALSE | Otherwise. |
Definition at line 92 of file AmlResourceData.h.
BOOLEAN EFIAPI AmlRdCompareDescId | ( | IN CONST AML_RD_HEADER * | Header, |
IN AML_RD_HEADER | DescriptorId | ||
) |
Check whether the resource data has the input descriptor Id.
The small/large bit is included in the descriptor Id, but the size bits are not included for small resource data elements.
[in] | Header | Pointer to the first byte of a resource data element. |
[in] | DescriptorId | The descriptor to check against. |
TRUE | The resource data has the descriptor Id. |
FALSE | Otherwise. |
Definition at line 30 of file AmlResourceData.c.
AML_RD_HEADER EFIAPI AmlRdGetDescId | ( | IN CONST AML_RD_HEADER * | Header | ) |
Get the descriptor Id of the resource data.
The small/large bit is included in the descriptor Id, but the size bits are not included for small resource data elements.
[in] | Header | Pointer to the first byte of a resource data. |
Definition at line 58 of file AmlResourceData.c.
UINT32 EFIAPI AmlRdGetSize | ( | IN CONST AML_RD_HEADER * | Header | ) |
Get the size of a resource data element.
If the resource data element is of the large type, the Header is expected to be at least 3 bytes long.
[in] | Header | Pointer to the first byte of a resource data. |
Definition at line 86 of file AmlResourceData.c.