summaryrefslogtreecommitdiff
path: root/Core/EM/AMIDebugRx/binaries/PeiAMIDebugRx/INC/misc.h
blob: b486fd98f1ed7d987ff76aa290563102f5e7778f (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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
//*****************************************************************//
//*****************************************************************//
//*****************************************************************//
//**                                                             **//
//**         (C)Copyright 2009, American Megatrends, Inc.        **//
//**                                                             **//
//**                     All Rights Reserved.                    **//
//**                                                             **//
//**   5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093  **//
//**                                                             **//
//**                     Phone (770)-246-8600                    **//
//**                                                             **//
//*****************************************************************//
//*****************************************************************//
//*****************************************************************//
// $Header: /Alaska/BIN/Modules/AMIDebugRx/binaries/PeiAMIDebugRx/INC/misc.h 2     7/17/09 7:15p Madhans $
//
// $Revision: 2 $
//
// $Date: 7/17/09 7:15p $
//*****************************************************************
//*****************************************************************
//
//	misc.h
//		
//
// Revision History
// ----------------
// $Log: /Alaska/BIN/Modules/AMIDebugRx/binaries/PeiAMIDebugRx/INC/misc.h $
// 
// 2     7/17/09 7:15p Madhans
// DebugRx 1.30.0022
// 
// 2     7/13/09 2:49p Sudhirv
// Update with Coding Standards
// 
// 1     7/07/09 4:46p Sudhirv
// Restructure Binaries Created
// 
// 1     5/01/09 7:48p Madhans
// AMIDebug Rx Module. Intial Checkin.
// 
// 1     4/29/09 7:52a Sudhirv
// AMI Debug Rx module created
// 
// 6     8/29/07 12:49p Madhans
// Common code for 4.x and 3.x
// 
// 5     6/13/07 3:17p Madhans
// Copyright Year updated.
// 
// 4     3/13/07 4:08p Ashrafj
// !!!Coding standard!!!
// 
// 3     1/22/07 11:41a Madhans
// Modification made for Binary Release 1.04.0003.
// 
// 5     1/05/07 6:15p Madhan
// 
// 4     1/05/07 1:05p Ashrafj
// Latest version 1.04.0001 Beta
// Known issues from previous 1.04.000 Beta release has been fixed.
// 
// 3     12/05/05 7:29p Ashrafj
// Serial Port Debug Support added for PEI - DXE Debugger.
// 
// Change in Serial Port Communication: Now the data transmission through
// Serial Port is supported with the hardware Flow control feature of the
// Serial Port controller.
// 
// 2     11/29/05 6:08p Markw
// For Alaska, include efi.h instead of defining new typecasts.
// 
// 1     10/19/05 10:54a Felixp
// 
// 1     10/19/05 10:44a Felixp
// 
//
//
//*****************************************************************
//**********************************************************************
//<AMI_FHDR_START>
//
// Name:		misc.h
//
// Description:	Generic Misc header file.
//
//<AMI_FHDR_END>
//**********************************************************************

#ifdef ALASKA_SUPPORT

#include <efi.h>

#else	/* Support for APTIO projects */

#define UINT64  	unsigned __int64
#define UINT32  	unsigned long
#define UINT16  	unsigned short
#define UINT8  		unsigned char

#define INT32  		signed long
#define INT8  		signed char
#define INT16  		signed short

#define CHAR8		char
#define CHAR16		unsigned short
#define BOOLEAN		unsigned char

#define	UINTN	UINT32
#define	INTN	INT32

#define	VOID	void

#ifndef _EFI_TYPES_H_

#define TRUE	1

#define FALSE	0

#define NULL    0

#define IN
#define OUT

//EFI error types 

//typedef UINTN           EFI_STATUS;
#define		EFI_STATUS		UINTN

#define EFI_ERROR(a)					(((INTN) a) < 0)

#define EFIERR(a)						(0x80000000 | a)

#define EFI_SUCCESS                             0
#define EFI_LOAD_ERROR                  EFIERR(1)
#define EFI_INVALID_PARAMETER           EFIERR(2)
#define EFI_UNSUPPORTED                 EFIERR(3)
#define EFI_BAD_BUFFER_SIZE             EFIERR(4)
#define EFI_BUFFER_TOO_SMALL            EFIERR(5)
#define EFI_NOT_READY                   EFIERR(6)
#define EFI_DEVICE_ERROR                EFIERR(7)
#define EFI_WRITE_PROTECTED             EFIERR(8)
#define EFI_OUT_OF_RESOURCES            EFIERR(9)
#define EFI_VOLUME_CORRUPTED            EFIERR(10)
#define EFI_VOLUME_FULL                 EFIERR(11)
#define EFI_NO_MEDIA                    EFIERR(12)
#define EFI_MEDIA_CHANGED               EFIERR(13)
#define EFI_NOT_FOUND                   EFIERR(14)
#define EFI_ACCESS_DENIED               EFIERR(15)
#define EFI_NO_RESPONSE                 EFIERR(16)
#define EFI_NO_MAPPING                  EFIERR(17)
#define EFI_TIMEOUT                     EFIERR(18)
#define EFI_NOT_STARTED                 EFIERR(19)
#define EFI_ALREADY_STARTED             EFIERR(20)
#define EFI_ABORTED                     EFIERR(21)
#define EFI_ICMP_ERROR                  EFIERR(22)
#define EFI_TFTP_ERROR                  EFIERR(23)
#define EFI_PROTOCOL_ERROR              EFIERR(24)

#endif

#endif
//*****************************************************************//
//*****************************************************************//
//*****************************************************************//
//**                                                             **//
//**         (C)Copyright 2009, American Megatrends, Inc.        **//
//**                                                             **//
//**                     All Rights Reserved.                    **//
//**                                                             **//
//**   5555 Oakbrook Pkwy, Building 200,Norcross, Georgia 30093  **//
//**                                                             **//
//**                     Phone (770)-246-8600                    **//
//**                                                             **//
//*****************************************************************//
//*****************************************************************//
//*****************************************************************//