summaryrefslogtreecommitdiff
path: root/Include/Protocol/LegacyRegion.h
blob: 43f2ad0e149e42f57c9d7b9eb384bd0aa952ea33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2010, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**           5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093      **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************

//**********************************************************************
// $Header: /Alaska/BIN/Chipset/Intel/NorthBridge/Haswell/Intel SystemAgent NB Chipset/LegacyRegion/LegacyRegion Protocols/LegacyRegion.h 1     4/02/13 6:28a Ireneyang $
//
// $Revision: 1 $
//
// $Date: 4/02/13 6:28a $
//**********************************************************************
// Revision History
// ----------------
// $Log: /Alaska/BIN/Chipset/Intel/NorthBridge/Haswell/Intel SystemAgent NB Chipset/LegacyRegion/LegacyRegion Protocols/LegacyRegion.h $
// 
// 1     4/02/13 6:28a Ireneyang
// 
// 1     12/20/12 12:40p Olegi
// 
// 5     1/12/10 11:51a Olegi
// Copyright message updated.
// 
// 4     4/27/07 5:17p Olegi
// CSM.CHM file preparation.
//
// 3     3/13/06 2:43p Felixp
//
// 2     1/18/05 3:22p Felixp
// PrintDebugMessage renamed to Trace
//
// 1     10/26/04 9:48a Olegi
//
// 1     8/30/04 3:13p Markw
//
// 2     8/24/04 3:56p Markw
// Fixed ifndef in *.h file.
//
// 1     8/24/04 3:55p Markw
//
//**********************************************************************
//<AMI_FHDR_START>
//
// Name: LegacyRegion.h
//
// Description: LegacyRegion protocol API declaration
//
//<AMI_FHDR_END>
//**********************************************************************
#ifndef __LEGACY_REGION_PROTOCOL_H__
#define __LEGACY_REGION_PROTOCOL_H__
#ifdef __cplusplus
extern "C" {
#endif
#include <EFI.h>

//{0FC9013A-0568-4BA9-9B7E-C9C390A6609B}
#define EFI_LEGACY_REGION_PROTOCOL_GUID \
    {0xfc9013a,0x568,0x4ba9,0x9b,0x7e,0xc9,0xc3,0x90,0xa6,0x60,0x9b}

GUID_VARIABLE_DECLARATION(gEfiLegacyRegionProtocolGuid,EFI_LEGACY_REGION_PROTOCOL_GUID);

typedef struct _EFI_LEGACY_REGION_PROTOCOL EFI_LEGACY_REGION_PROTOCOL;

typedef EFI_STATUS (EFIAPI *EFI_LEGACY_REGION_DECODE) (
    IN EFI_LEGACY_REGION_PROTOCOL   *This,
    IN UINT32                       Start,
    IN UINT32                       Length,
    IN BOOLEAN                      *On
);

typedef EFI_STATUS (EFIAPI *EFI_LEGACY_REGION_LOCK) (
    IN  EFI_LEGACY_REGION_PROTOCOL  *This,
    IN  UINT32                      Start,
    IN  UINT32                      Length,
    OUT UINT32                      *Granularity  OPTIONAL
);

typedef EFI_STATUS (EFIAPI *EFI_LEGACY_REGION_BOOT_LOCK) (
    IN  EFI_LEGACY_REGION_PROTOCOL  *This,
    IN  UINT32                      Start,
    IN  UINT32                      Length,
    OUT UINT32                      *Granularity  OPTIONAL
);

typedef EFI_STATUS (EFIAPI *EFI_LEGACY_REGION_UNLOCK) (
    IN  EFI_LEGACY_REGION_PROTOCOL  *This,
    IN  UINT32                      Start,
    IN  UINT32                      Length,
    OUT UINT32                      *Granularity  OPTIONAL
);


struct _EFI_LEGACY_REGION_PROTOCOL {
    EFI_LEGACY_REGION_DECODE    Decode;
    EFI_LEGACY_REGION_LOCK      Lock;
    EFI_LEGACY_REGION_BOOT_LOCK BootLock;
    EFI_LEGACY_REGION_UNLOCK    UnLock;
};


/****** DO NOT WRITE BELOW THIS LINE *******/
#ifdef __cplusplus
}
#endif
#endif

//**********************************************************************
//**********************************************************************
//**                                                                  **
//**        (C)Copyright 1985-2010, American Megatrends, Inc.         **
//**                                                                  **
//**                       All Rights Reserved.                       **
//**                                                                  **
//**           5555 Oakbrook Pkwy, Suite 200, Norcross, GA 30093      **
//**                                                                  **
//**                       Phone: (770)-246-8600                      **
//**                                                                  **
//**********************************************************************
//**********************************************************************