efi.h revision 1.12 1 1.12 riastrad /* $NetBSD: efi.h,v 1.12 2022/08/20 09:40:04 riastradh Exp $ */
2 1.1 christos
3 1.1 christos /*-
4 1.1 christos * Copyright (c) 2004 Marcel Moolenaar
5 1.1 christos * All rights reserved.
6 1.1 christos *
7 1.1 christos * Redistribution and use in source and binary forms, with or without
8 1.1 christos * modification, are permitted provided that the following conditions
9 1.1 christos * are met:
10 1.1 christos *
11 1.1 christos * 1. Redistributions of source code must retain the above copyright
12 1.1 christos * notice, this list of conditions and the following disclaimer.
13 1.1 christos * 2. Redistributions in binary form must reproduce the above copyright
14 1.1 christos * notice, this list of conditions and the following disclaimer in the
15 1.1 christos * documentation and/or other materials provided with the distribution.
16 1.1 christos *
17 1.1 christos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 1.1 christos * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 1.1 christos * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 1.1 christos * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 1.1 christos * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 1.1 christos * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 1.1 christos * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 1.1 christos * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 1.1 christos * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 1.1 christos * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 1.1 christos *
28 1.1 christos * $FreeBSD$
29 1.1 christos */
30 1.1 christos
31 1.1 christos /* This file is mainly ia64/include/efi.h with little modifications. */
32 1.1 christos
33 1.1 christos #ifndef _X86_EFI_H_
34 1.1 christos #define _X86_EFI_H_
35 1.1 christos
36 1.1 christos #include <sys/uuid.h>
37 1.1 christos
38 1.12 riastrad #define EFI_PAGE_SHIFT 12
39 1.12 riastrad #define EFI_PAGE_SIZE (1 << EFI_PAGE_SHIFT)
40 1.12 riastrad #define EFI_PAGE_MASK (EFI_PAGE_SIZE - 1)
41 1.1 christos
42 1.7 nonaka #define EFI_TABLE_ACPI20 \
43 1.7 nonaka {0x8868e871,0xe4f1,0x11d3,0xbc,0x22,{0x00,0x80,0xc7,0x3c,0x88,0x81}}
44 1.7 nonaka #define EFI_TABLE_ACPI10 \
45 1.7 nonaka {0xeb9d2d30,0x2d88,0x11d3,0x9a,0x16,{0x00,0x90,0x27,0x3f,0xc1,0x4d}}
46 1.7 nonaka #define EFI_TABLE_SMBIOS \
47 1.7 nonaka {0xeb9d2d31,0x2d88,0x11d3,0x9a,0x16,{0x00,0x90,0x27,0x3f,0xc1,0x4d}}
48 1.7 nonaka #define EFI_TABLE_SMBIOS3 \
49 1.7 nonaka {0xf2fd1544,0x9794,0x4a2c,0x99,0x2e,{0xe5,0xbb,0xcf,0x20,0xe3,0x94}}
50 1.7 nonaka
51 1.1 christos extern const struct uuid EFI_UUID_ACPI20;
52 1.1 christos extern const struct uuid EFI_UUID_ACPI10;
53 1.7 nonaka extern const struct uuid EFI_UUID_SMBIOS;
54 1.7 nonaka extern const struct uuid EFI_UUID_SMBIOS3;
55 1.1 christos
56 1.8 maya extern bool bootmethod_efi;
57 1.8 maya
58 1.1 christos enum efi_reset {
59 1.1 christos EFI_RESET_COLD,
60 1.1 christos EFI_RESET_WARM
61 1.1 christos };
62 1.1 christos
63 1.12 riastrad typedef uint16_t efi_char;
64 1.1 christos typedef unsigned long efi_status;
65 1.1 christos
66 1.9 manu #if defined(__amd64__)
67 1.9 manu typedef uint64_t uintn;
68 1.9 manu #elif defined(__i386__)
69 1.9 manu typedef uint32_t uintn;
70 1.9 manu #endif
71 1.9 manu
72 1.1 christos struct efi_cfgtbl {
73 1.12 riastrad struct uuid ct_uuid;
74 1.12 riastrad void *ct_data;
75 1.1 christos };
76 1.6 nonaka
77 1.1 christos struct efi_md {
78 1.12 riastrad uint32_t md_type;
79 1.12 riastrad #define EFI_MD_TYPE_NULL 0
80 1.12 riastrad #define EFI_MD_TYPE_CODE 1 /* Loader text. */
81 1.12 riastrad #define EFI_MD_TYPE_DATA 2 /* Loader data. */
82 1.12 riastrad #define EFI_MD_TYPE_BS_CODE 3 /* Boot services text. */
83 1.12 riastrad #define EFI_MD_TYPE_BS_DATA 4 /* Boot services data. */
84 1.12 riastrad #define EFI_MD_TYPE_RT_CODE 5 /* Runtime services text. */
85 1.12 riastrad #define EFI_MD_TYPE_RT_DATA 6 /* Runtime services data. */
86 1.12 riastrad #define EFI_MD_TYPE_FREE 7 /* Unused/free memory. */
87 1.12 riastrad #define EFI_MD_TYPE_BAD 8 /* Bad memory */
88 1.12 riastrad #define EFI_MD_TYPE_RECLAIM 9 /* ACPI reclaimable memory. */
89 1.12 riastrad #define EFI_MD_TYPE_FIRMWARE 10 /* ACPI NV memory */
90 1.12 riastrad #define EFI_MD_TYPE_IOMEM 11 /* Memory-mapped I/O. */
91 1.12 riastrad #define EFI_MD_TYPE_IOPORT 12 /* I/O port space. */
92 1.12 riastrad #define EFI_MD_TYPE_PALCODE 13 /* PAL */
93 1.12 riastrad #define EFI_MD_TYPE_PMEM 14 /* Persistent memory. */
94 1.12 riastrad uint32_t __pad;
95 1.12 riastrad uint64_t md_phys;
96 1.12 riastrad uint64_t md_virt;
97 1.12 riastrad uint64_t md_pages;
98 1.12 riastrad uint64_t md_attr;
99 1.12 riastrad #define EFI_MD_ATTR_UC 0x0000000000000001UL
100 1.12 riastrad #define EFI_MD_ATTR_WC 0x0000000000000002UL
101 1.12 riastrad #define EFI_MD_ATTR_WT 0x0000000000000004UL
102 1.12 riastrad #define EFI_MD_ATTR_WB 0x0000000000000008UL
103 1.12 riastrad #define EFI_MD_ATTR_UCE 0x0000000000000010UL
104 1.12 riastrad #define EFI_MD_ATTR_WP 0x0000000000001000UL
105 1.12 riastrad #define EFI_MD_ATTR_RP 0x0000000000002000UL
106 1.12 riastrad #define EFI_MD_ATTR_XP 0x0000000000004000UL
107 1.12 riastrad #define EFI_MD_ATTR_NV 0x0000000000008000UL
108 1.12 riastrad #define EFI_MD_ATTR_MORE_RELIABLE 0x0000000000010000UL
109 1.12 riastrad #define EFI_MD_ATTR_RO 0x0000000000020000UL
110 1.12 riastrad #define EFI_MD_ATTR_SP 0x0000000000040000UL
111 1.12 riastrad #define EFI_MD_ATTR_CPU_CRYPTO 0x0000000000080000UL
112 1.12 riastrad #define EFI_MD_ATTR_RT 0x8000000000000000UL
113 1.1 christos };
114 1.1 christos
115 1.1 christos struct efi_tm {
116 1.12 riastrad uint16_t tm_year; /* 1998 - 20XX */
117 1.12 riastrad uint8_t tm_mon; /* 1 - 12 */
118 1.12 riastrad uint8_t tm_mday; /* 1 - 31 */
119 1.12 riastrad uint8_t tm_hour; /* 0 - 23 */
120 1.12 riastrad uint8_t tm_min; /* 0 - 59 */
121 1.12 riastrad uint8_t tm_sec; /* 0 - 59 */
122 1.12 riastrad uint8_t __pad1;
123 1.12 riastrad uint32_t tm_nsec; /* 0 - 999,999,999 */
124 1.12 riastrad int16_t tm_tz; /* -1440 to 1440 or 2047 */
125 1.12 riastrad uint8_t tm_dst;
126 1.12 riastrad uint8_t __pad2;
127 1.1 christos };
128 1.1 christos
129 1.1 christos struct efi_tmcap {
130 1.12 riastrad uint32_t tc_res; /* 1e-6 parts per million */
131 1.12 riastrad uint32_t tc_prec; /* hertz */
132 1.12 riastrad uint8_t tc_stz; /* Set clears sub-second time */
133 1.1 christos };
134 1.1 christos
135 1.1 christos struct efi_tblhdr {
136 1.12 riastrad uint64_t th_sig;
137 1.12 riastrad uint32_t th_rev;
138 1.12 riastrad uint32_t th_hdrsz;
139 1.12 riastrad uint32_t th_crc32;
140 1.12 riastrad uint32_t __res;
141 1.1 christos };
142 1.1 christos
143 1.1 christos struct efi_rt {
144 1.12 riastrad struct efi_tblhdr rt_hdr;
145 1.12 riastrad efi_status (*rt_gettime)(struct efi_tm *, struct efi_tmcap *);
146 1.12 riastrad efi_status (*rt_settime)(struct efi_tm *);
147 1.12 riastrad efi_status (*rt_getwaketime)(uint8_t *, uint8_t *,
148 1.12 riastrad struct efi_tm *);
149 1.12 riastrad efi_status (*rt_setwaketime)(uint8_t, struct efi_tm *);
150 1.12 riastrad efi_status (*rt_setvirtual)(u_long, u_long, uint32_t,
151 1.12 riastrad struct efi_md *);
152 1.12 riastrad efi_status (*rt_cvtptr)(u_long, void **);
153 1.12 riastrad efi_status (*rt_getvar)(efi_char *, struct uuid *, uint32_t *,
154 1.12 riastrad u_long *, void *);
155 1.12 riastrad efi_status (*rt_scanvar)(u_long *, efi_char *, struct uuid *);
156 1.12 riastrad efi_status (*rt_setvar)(efi_char *, struct uuid *, uint32_t,
157 1.12 riastrad u_long, void *);
158 1.12 riastrad efi_status (*rt_gethicnt)(uint32_t *);
159 1.12 riastrad efi_status (*rt_reset)(enum efi_reset, efi_status, u_long,
160 1.12 riastrad efi_char *);
161 1.1 christos };
162 1.1 christos
163 1.9 manu typedef uintn efi_tpl;
164 1.9 manu typedef void *efi_event;
165 1.9 manu typedef void (*efi_event_notify)(efi_event, void *);
166 1.9 manu typedef void *efi_handle;
167 1.9 manu typedef struct {
168 1.9 manu uint8_t type;
169 1.9 manu uint8_t subtype;
170 1.9 manu uint8_t ldnegth[2];
171 1.9 manu } efi_device_path;
172 1.9 manu
173 1.9 manu struct efi_bs {
174 1.12 riastrad struct efi_tblhdr bs_hdr;
175 1.12 riastrad #define EFI_BS_SIG 0x56524553544f4f42UL
176 1.12 riastrad efi_tpl (*bs_raisetpl)(efi_tpl);
177 1.12 riastrad void (*bs_restoretpl)(efi_tpl);
178 1.12 riastrad efi_status (*bs_allocatepages)(uint32_t, uint32_t,
179 1.12 riastrad uintn, paddr_t *);
180 1.12 riastrad efi_status (*bs_freepages)(paddr_t, uintn);
181 1.12 riastrad efi_status (*bs_getmemorymap)(uintn *, struct efi_md *,
182 1.12 riastrad uintn *, uintn *, uint32_t *);
183 1.12 riastrad efi_status (*bs_allocatepool)(uint32_t, uintn, void **);
184 1.12 riastrad efi_status (*bs_freepool)(void *);
185 1.12 riastrad efi_status (*bs_createevent)(uint32_t, efi_tpl, efi_event_notify,
186 1.12 riastrad void *, efi_event *);
187 1.12 riastrad efi_status (*bs_settimer)(efi_event, uint32_t, uint64_t);
188 1.12 riastrad efi_status (*bs_waitforevent)(uintn, efi_event *, uintn *);
189 1.12 riastrad efi_status (*bs_signalevent)(efi_event);
190 1.12 riastrad efi_status (*bs_closeevent)(efi_event);
191 1.12 riastrad efi_status (*bs_checkevent)(efi_event);
192 1.12 riastrad efi_status (*bs_installprotocolinterface)(efi_handle *,
193 1.12 riastrad struct uuid *, uint32_t, void *);
194 1.12 riastrad efi_status (*bs_reinstallprotocolinterface)(efi_handle *,
195 1.12 riastrad struct uuid *, void *, void *);
196 1.12 riastrad efi_status (*bs_uninstallprotocolinterface)(efi_handle *,
197 1.12 riastrad struct uuid *, void *);
198 1.12 riastrad efi_status (*bs_handleprotocol)(efi_handle,
199 1.12 riastrad struct uuid *, void **);
200 1.12 riastrad efi_status (*bs_pchandleprotocol)(efi_handle,
201 1.12 riastrad struct uuid *, void **);
202 1.12 riastrad efi_status (*bs_registerprotocolnotify)(struct uuid *, efi_event,
203 1.12 riastrad void **);
204 1.12 riastrad efi_status (*bs_locatehandle)(uint32_t, struct uuid *, void *,
205 1.12 riastrad uintn *, efi_handle *);
206 1.12 riastrad efi_status (*bs_locatedevicepath)(struct uuid *, efi_device_path **,
207 1.12 riastrad efi_handle *);
208 1.12 riastrad efi_status (*bs_installconfigurationtable)(struct uuid *, void *);
209 1.12 riastrad efi_status (*bs_loadimage)(uint8_t, efi_handle, efi_device_path *,
210 1.12 riastrad void *, uintn, efi_handle *);
211 1.12 riastrad efi_status (*bs_startimage)(efi_handle, uintn *, efi_char **);
212 1.12 riastrad efi_status (*bs_exit)(efi_handle, efi_status, uintn, efi_char *);
213 1.12 riastrad efi_status (*bs_unloadimage)(efi_handle);
214 1.12 riastrad efi_status (*bs_exitbootservices)(efi_handle, uintn);
215 1.12 riastrad efi_status (*bs_getnextmonotoniccount)(uint64_t *);
216 1.12 riastrad efi_status (*bs_stall)(uintn);
217 1.12 riastrad efi_status (*bs_setwatchdogtimer)(uintn, uint64_t,
218 1.12 riastrad uintn, efi_char *);
219 1.12 riastrad efi_status (*bs_connectcontroller)(efi_handle, efi_handle *,
220 1.9 manu efi_device_path *, uint8_t);
221 1.12 riastrad efi_status (*bs_disconnectcontroller)(efi_handle, efi_handle,
222 1.9 manu efi_handle);
223 1.12 riastrad efi_status (*bs_openprotocol)(efi_handle, struct uuid *, void **,
224 1.9 manu efi_handle, efi_handle, uint32_t);
225 1.12 riastrad efi_status (*bs_closeprotocol)(efi_handle, struct uuid *,
226 1.9 manu efi_handle, efi_handle);
227 1.12 riastrad efi_status (*bs_openprotocolinformation)(efi_handle, efi_handle,
228 1.9 manu uint32_t, uint32_t);
229 1.12 riastrad efi_status (*bs_protocolsperhandle)(efi_handle,
230 1.9 manu struct uuid ***, uintn *);
231 1.12 riastrad efi_status (*bs_locatehandlebuffer)(uint32_t, struct uuid *,
232 1.9 manu void *, uintn *, efi_handle **);
233 1.12 riastrad efi_status (*bs_locateprotocol)(struct uuid *, void *, void **);
234 1.12 riastrad efi_status (*bs_installmultipleprotocolinterfaces)(efi_handle *,
235 1.9 manu ...);
236 1.12 riastrad efi_status (*bs_uninstallmultipleprotocolinterfaces)(efi_handle,
237 1.9 manu ...);
238 1.12 riastrad efi_status (*bs_calculatecrc32)(void *, uintn, uint32_t *);
239 1.12 riastrad efi_status (*bs_copymem)(void *, void *, uintn);
240 1.12 riastrad efi_status (*bs_setmem)(void *, uintn, uint8_t);
241 1.12 riastrad efi_status (*bs_createeventex)(uint32_t, efi_tpl,
242 1.12 riastrad efi_event_notify, void *, struct uuid, efi_event *);
243 1.9 manu };
244 1.9 manu
245 1.9 manu struct efi_input;
246 1.9 manu
247 1.9 manu struct efi_key {
248 1.9 manu uint16_t scancode;
249 1.9 manu efi_char unicodechar;
250 1.9 manu };
251 1.9 manu
252 1.9 manu struct efi_input {
253 1.9 manu efi_status (*ei_reset)(struct efi_input *, uint8_t);
254 1.9 manu efi_status (*ei_readkeystroke)(struct efi_input *,
255 1.9 manu struct efi_key *);
256 1.9 manu void *ei_waitforkey;
257 1.9 manu };
258 1.9 manu
259 1.9 manu typedef struct efi_input efi_input;
260 1.9 manu
261 1.9 manu struct efi_text_output_mode {
262 1.9 manu int32_t maxmode;
263 1.9 manu int32_t mode;
264 1.9 manu int32_t attribute;
265 1.9 manu int32_t cursorcolumn;
266 1.9 manu int32_t cursorrow;
267 1.9 manu uint8_t cursorvisible;
268 1.9 manu };
269 1.9 manu
270 1.9 manu
271 1.9 manu struct efi_output;
272 1.9 manu
273 1.9 manu struct efi_output {
274 1.9 manu efi_status (*ei_reset)(struct efi_output *, uint8_t);
275 1.9 manu efi_status (*ei_outputstring)(struct efi_output *, efi_char *);
276 1.9 manu efi_status (*ei_teststring)(struct efi_output *, efi_char *);
277 1.9 manu efi_status (*ei_textquerymode)(struct efi_output *,
278 1.9 manu uintn, uintn *, uintn *);
279 1.9 manu efi_status (*ei_textsetmode)(struct efi_output *, uintn);
280 1.9 manu efi_status (*ei_setattribute)(struct efi_output *, uintn);
281 1.9 manu efi_status (*ei_clearscreen)(struct efi_output *);
282 1.9 manu efi_status (*ei_setcursorposition)(struct efi_output *,
283 1.9 manu uintn, uintn);
284 1.9 manu efi_status (*ei_enablecursor)(struct efi_output *, uint8_t);
285 1.9 manu struct efi_text_output_mode *ei_mode;
286 1.9 manu };
287 1.9 manu
288 1.9 manu typedef struct efi_output efi_output;
289 1.9 manu
290 1.1 christos struct efi_systbl {
291 1.12 riastrad struct efi_tblhdr st_hdr;
292 1.12 riastrad #define EFI_SYSTBL_SIG 0x5453595320494249UL
293 1.12 riastrad efi_char *st_fwvendor;
294 1.12 riastrad uint32_t st_fwrev;
295 1.2 nonaka #ifdef __amd64__
296 1.12 riastrad uint32_t __pad;
297 1.2 nonaka #endif
298 1.12 riastrad efi_handle *st_cin;
299 1.12 riastrad efi_input *st_cinif;
300 1.12 riastrad efi_handle *st_cout;
301 1.12 riastrad efi_output *st_coutif;
302 1.12 riastrad efi_handle *st_cerr;
303 1.12 riastrad efi_output *st_cerrif;
304 1.12 riastrad struct efi_rt *st_rt;
305 1.12 riastrad struct efi_bs *st_bs;
306 1.12 riastrad u_long st_entries;
307 1.12 riastrad struct efi_cfgtbl *st_cfgtbl;
308 1.1 christos };
309 1.1 christos
310 1.6 nonaka #if defined(__amd64__)
311 1.6 nonaka struct efi_cfgtbl32 {
312 1.6 nonaka struct uuid ct_uuid;
313 1.6 nonaka uint32_t ct_data; /* void * */
314 1.6 nonaka };
315 1.6 nonaka
316 1.6 nonaka struct efi_systbl32 {
317 1.6 nonaka struct efi_tblhdr st_hdr;
318 1.6 nonaka
319 1.6 nonaka uint32_t st_fwvendor;
320 1.6 nonaka uint32_t st_fwrev;
321 1.6 nonaka uint32_t st_cin; /* = 0 */
322 1.6 nonaka uint32_t st_cinif; /* = 0 */
323 1.6 nonaka uint32_t st_cout; /* = 0 */
324 1.6 nonaka uint32_t st_coutif; /* = 0 */
325 1.6 nonaka uint32_t st_cerr; /* = 0 */
326 1.6 nonaka uint32_t st_cerrif; /* = 0 */
327 1.6 nonaka uint32_t st_rt; /* struct efi_rt32 * */
328 1.6 nonaka uint32_t st_bs; /* = 0 */
329 1.6 nonaka uint32_t st_entries;
330 1.6 nonaka uint32_t st_cfgtbl; /* struct efi_cfgtbl32 * */
331 1.6 nonaka };
332 1.6 nonaka #elif defined(__i386__)
333 1.6 nonaka struct efi_cfgtbl64 {
334 1.6 nonaka struct uuid ct_uuid;
335 1.6 nonaka uint64_t ct_data; /* void * */
336 1.6 nonaka };
337 1.6 nonaka
338 1.6 nonaka struct efi_systbl64 {
339 1.6 nonaka struct efi_tblhdr st_hdr;
340 1.6 nonaka
341 1.6 nonaka uint64_t st_fwvendor;
342 1.6 nonaka uint32_t st_fwrev;
343 1.6 nonaka uint32_t __pad;
344 1.6 nonaka uint64_t st_cin; /* = 0 */
345 1.6 nonaka uint64_t st_cinif; /* = 0 */
346 1.6 nonaka uint64_t st_cout; /* = 0 */
347 1.6 nonaka uint64_t st_coutif; /* = 0 */
348 1.6 nonaka uint64_t st_cerr; /* = 0 */
349 1.6 nonaka uint64_t st_cerrif; /* = 0 */
350 1.6 nonaka uint64_t st_rt; /* struct efi_rt64 * */
351 1.6 nonaka uint64_t st_bs; /* = 0 */
352 1.6 nonaka uint64_t st_entries;
353 1.6 nonaka uint64_t st_cfgtbl; /* struct efi_cfgtbl64 * */
354 1.6 nonaka };
355 1.6 nonaka #endif
356 1.6 nonaka
357 1.8 maya void efi_init(void);
358 1.1 christos bool efi_probe(void);
359 1.1 christos paddr_t efi_getsystblpa(void);
360 1.1 christos struct efi_systbl *efi_getsystbl(void);
361 1.1 christos paddr_t efi_getcfgtblpa(const struct uuid*);
362 1.1 christos void *efi_getcfgtbl(const struct uuid*);
363 1.2 nonaka int efi_getbiosmemtype(uint32_t, uint64_t);
364 1.2 nonaka const char *efi_getmemtype_str(uint32_t);
365 1.4 nonaka struct btinfo_memmap;
366 1.4 nonaka struct btinfo_memmap *efi_get_e820memmap(void);
367 1.4 nonaka
368 1.1 christos /*
369 1.1 christos void efi_boot_finish(void);
370 1.1 christos int efi_boot_minimal(uint64_t);
371 1.1 christos void *efi_get_table(struct uuid *);
372 1.1 christos void efi_get_time(struct efi_tm *);
373 1.1 christos struct efi_md *efi_md_first(void);
374 1.1 christos struct efi_md *efi_md_next(struct efi_md *);
375 1.1 christos void efi_reset_system(void);
376 1.1 christos efi_status efi_set_time(struct efi_tm *);
377 1.1 christos */
378 1.1 christos
379 1.1 christos #endif /* _X86_EFI_H_ */
380