mirror of https://github.com/acidanthera/audk.git
Add specific flag definition according to ACPI specification.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1049 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a537f1483c
commit
ebfe209ec0
|
@ -86,6 +86,34 @@ typedef struct {
|
||||||
#define EFI_ACPI_RESERVED_DWORD 0x00000000
|
#define EFI_ACPI_RESERVED_DWORD 0x00000000
|
||||||
#define EFI_ACPI_RESERVED_QWORD 0x0000000000000000
|
#define EFI_ACPI_RESERVED_QWORD 0x0000000000000000
|
||||||
|
|
||||||
|
//
|
||||||
|
// Resource Type Specific Flags
|
||||||
|
// Ref ACPI specification 6.4.3.5.5
|
||||||
|
//
|
||||||
|
// Bit [0] : Write Status, _RW
|
||||||
|
//
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_READ_WRITE (1 << 0)
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_READ_ONLY (0 << 0)
|
||||||
|
//
|
||||||
|
// Bit [2:1] : Memory Attributes, _MEM
|
||||||
|
//
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_NON_CACHEABLE (0 << 1)
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE (1 << 1)
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_WRITE_COMBINING (2 << 1)
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_CACHEABLE_PREFETCHABLE (3 << 1)
|
||||||
|
//
|
||||||
|
// Bit [4:3] : Memory Attributes, _MTP
|
||||||
|
//
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_MEMORY (0 << 3)
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_RESERVED (1 << 3)
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_ACPI (2 << 3)
|
||||||
|
#define EFI_APCI_MEMORY_RESOURCE_SPECIFIC_FLAG_ADDRESS_RANGE_NVS (3 << 3)
|
||||||
|
//
|
||||||
|
// Bit [5] : Memory to I/O Translation, _TTP
|
||||||
|
//
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_TYPE_TRANSLATION (1 << 5)
|
||||||
|
#define EFI_ACPI_MEMORY_RESOURCE_SPECIFIC_FLAG_TYPE_STATIC (0 << 5)
|
||||||
|
|
||||||
#pragma pack()
|
#pragma pack()
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue