|
RTEMS 6.1-rc6
|
Loading...
Searching...
No Matches
32#include <sys/stdint.h>
40#if (__STDC_VERSION__ < 199901L )
44 #ifdef _MSC_EXTENSIONS
48 typedef unsigned __int64 uint64_t;
49 typedef __int64 int64_t;
50 typedef unsigned __int32 uint32_t;
51 typedef __int32 int32_t;
52 typedef unsigned short uint16_t;
53 typedef short int16_t;
54 typedef unsigned char uint8_t;
61 typedef unsigned long uint64_t;
63 typedef unsigned int uint32_t;
65 typedef unsigned short uint16_t;
66 typedef short int16_t;
67 typedef unsigned char uint8_t;
73 typedef unsigned long long uint64_t;
74 typedef long long int64_t;
75 typedef unsigned int uint32_t;
77 typedef unsigned short uint16_t;
78 typedef short int16_t;
79 typedef unsigned char uint8_t;
91#define ACPI_USE_SYSTEM_INTTYPES 1
93typedef uint64_t UINT64;
97 typedef uint32_t UINT32;
98 typedef int32_t INT32;
101typedef uint16_t UINT16;
102typedef int16_t INT16;
103typedef uint8_t UINT8;
113typedef uint64_t UINTN;
115#ifdef EFI_NT_EMULATOR
116 #define POST_CODE(_Data)
119#define POST_CODE(_Data) __asm mov eax,(_Data) __asm out 0x80,al
121 #define POST_CODE(_Data)
125#define EFIERR(a) (0x8000000000000000 | a)
126#define EFI_ERROR_MASK 0x8000000000000000
127#define EFIERR_OEM(a) (0xc000000000000000 | a)
130#define BAD_POINTER 0xFBFBFBFBFBFBFBFB
131#define MAX_ADDRESS 0xFFFFFFFFFFFFFFFF
133#define BREAKPOINT() __asm { int 3 }
139#define MIN_ALIGNMENT_SIZE 4
141#define ALIGN_VARIABLE(Value ,Adjustment) \
142 (UINTN)Adjustment = 0; \
143 if((UINTN)Value % MIN_ALIGNMENT_SIZE) \
144 (UINTN)Adjustment = MIN_ALIGNMENT_SIZE - ((UINTN)Value % MIN_ALIGNMENT_SIZE); \
145 Value = (UINTN)Value + (UINTN)Adjustment
152#define EFI_SIGNATURE_16(A,B) ((A) | (B<<8))
153#define EFI_SIGNATURE_32(A,B,C,D) (EFI_SIGNATURE_16(A,B) | (EFI_SIGNATURE_16(C,D) << 16))
154#define EFI_SIGNATURE_64(A,B,C,D,E,F,G,H) (EFI_SIGNATURE_32(A,B,C,D) | ((UINT64)(EFI_SIGNATURE_32(E,F,G,H)) << 32))
165#define EFIAPI __attribute__((ms_abi))
169 #ifdef _MSC_EXTENSIONS
170 #define EFIAPI __cdecl
179#define RUNTIMESERVICE
180#define RUNTIMEFUNCTION
183#define RUNTIME_CODE(a) alloc_text("rtcode", a)
184#define BEGIN_RUNTIME_DATA() data_seg("rtdata")
185#define END_RUNTIME_DATA() data_seg("")
187#define VOLATILE volatile
189#define MEMORY_FENCE()
191#ifdef EFI_NO_INTERFACE_DECL
192 #define EFI_FORWARD_DECLARATION(x)
193 #define EFI_INTERFACE_DECL(x)
195 #define EFI_FORWARD_DECLARATION(x) typedef struct _##x x
196 #define EFI_INTERFACE_DECL(x) typedef struct x
199#ifdef EFI_NT_EMULATOR
207#define EFI_DRIVER_ENTRY_POINT(InitFunction) \
210 EFI_HANDLE ImageHandle, \
211 EFI_SYSTEM_TABLE *SystemTable \
216 _DllMainCRTStartup ( \
218 UINTN reason_for_call, \
226 __declspec( dllexport ) \
233 return InitFunction(ImageHandle, SystemTable); \
237 #define LOAD_INTERNAL_DRIVER(_if, type, name, entry) \
238 (_if)->LoadInternal(type, name, NULL)
247 #define EFI_DRIVER_ENTRY_POINT(InitFunction)
249 #define LOAD_INTERNAL_DRIVER(_if, type, name, entry) \
250 (_if)->LoadInternal(type, name, entry)
255#define INTERFACE_DECL(x) struct x
257#define INTERFACE_DECL(x) struct x
265#ifdef NO_INTERFACE_DECL
266#define INTERFACE_DECL(x)
268#define INTERFACE_DECL(x) typedef struct x
272#ifdef _MSC_EXTENSIONS
273#pragma warning ( disable : 4731 )