TianoCore EDK2 master
Loading...
Searching...
No Matches
Gcd.h
Go to the documentation of this file.
1
10#ifndef _GCD_H_
11#define _GCD_H_
12
13//
14// GCD Operations
15//
16#define GCD_MEMORY_SPACE_OPERATION 0x20
17#define GCD_IO_SPACE_OPERATION 0x40
18
19#define GCD_ADD_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 0)
20#define GCD_ALLOCATE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 1)
21#define GCD_FREE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 2)
22#define GCD_REMOVE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 3)
23#define GCD_SET_ATTRIBUTES_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 4)
24#define GCD_SET_CAPABILITIES_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 5)
25
26#define GCD_ADD_IO_OPERATION (GCD_IO_SPACE_OPERATION | 0)
27#define GCD_ALLOCATE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 1)
28#define GCD_FREE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 2)
29#define GCD_REMOVE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 3)
30
31//
32// The data structure used to convert from GCD attributes to EFI Memory Map attributes
33//
34typedef struct {
35 UINT64 Attribute;
36 UINT64 Capability;
37 BOOLEAN Memory;
39
40#endif