Removed CommonHeader.h from MdePkg & MdeModulePkg
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / gcd.h
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 gcd.h
15
16 Abstract:
17
18 Revision History
19
20 --*/
21
22 #ifndef _GCD_H
23 #define _GCD_H
24
25 //
26 // GCD Operations
27 //
28 #define GCD_MEMORY_SPACE_OPERATION 0x20
29 #define GCD_IO_SPACE_OPERATION 0x40
30
31 #define GCD_ADD_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 0)
32 #define GCD_ALLOCATE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 1)
33 #define GCD_FREE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 2)
34 #define GCD_REMOVE_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 3)
35 #define GCD_SET_ATTRIBUTES_MEMORY_OPERATION (GCD_MEMORY_SPACE_OPERATION | 4)
36
37 #define GCD_ADD_IO_OPERATION (GCD_IO_SPACE_OPERATION | 0)
38 #define GCD_ALLOCATE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 1)
39 #define GCD_FREE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 2)
40 #define GCD_REMOVE_IO_OPERATION (GCD_IO_SPACE_OPERATION | 3)
41
42 //
43 // The data structure used to convert from GCD attributes to EFI Memory Map attributes
44 //
45 typedef struct {
46 UINT64 Attribute;
47 UINT64 Capability;
48 BOOLEAN Memory;
49 } GCD_ATTRIBUTE_CONVERSION_ENTRY;
50
51 #endif