efi_api.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. /*
  2. * Extensible Firmware Interface
  3. * Based on 'Extensible Firmware Interface Specification' version 0.9,
  4. * April 30, 1999
  5. *
  6. * Copyright (C) 1999 VA Linux Systems
  7. * Copyright (C) 1999 Walt Drummond <drummond@valinux.com>
  8. * Copyright (C) 1999, 2002-2003 Hewlett-Packard Co.
  9. * David Mosberger-Tang <davidm@hpl.hp.com>
  10. * Stephane Eranian <eranian@hpl.hp.com>
  11. *
  12. * From include/linux/efi.h in kernel 4.1 with some additions/subtractions
  13. */
  14. #ifndef _EFI_API_H
  15. #define _EFI_API_H
  16. #include <efi.h>
  17. /* Types and defines for EFI CreateEvent */
  18. enum efi_event_type {
  19. EFI_TIMER_STOP = 0,
  20. EFI_TIMER_PERIODIC = 1,
  21. EFI_TIMER_RELATIVE = 2
  22. };
  23. /* EFI Boot Services table */
  24. struct efi_boot_services {
  25. struct efi_table_hdr hdr;
  26. efi_status_t (EFIAPI *raise_tpl)(unsigned long new_tpl);
  27. void (EFIAPI *restore_tpl)(unsigned long old_tpl);
  28. efi_status_t (EFIAPI *allocate_pages)(int, int, unsigned long,
  29. efi_physical_addr_t *);
  30. efi_status_t (EFIAPI *free_pages)(efi_physical_addr_t, unsigned long);
  31. efi_status_t (EFIAPI *get_memory_map)(unsigned long *memory_map_size,
  32. struct efi_mem_desc *desc, unsigned long *key,
  33. unsigned long *desc_size, u32 *desc_version);
  34. efi_status_t (EFIAPI *allocate_pool)(int, unsigned long, void **);
  35. efi_status_t (EFIAPI *free_pool)(void *);
  36. efi_status_t (EFIAPI *create_event)(enum efi_event_type type,
  37. unsigned long notify_tpl,
  38. void (EFIAPI *notify_function) (void *event,
  39. void *context),
  40. void *notify_context, void **event);
  41. efi_status_t (EFIAPI *set_timer)(void *event, int type,
  42. uint64_t trigger_time);
  43. efi_status_t (EFIAPI *wait_for_event)(unsigned long number_of_events,
  44. void *event, unsigned long *index);
  45. efi_status_t (EFIAPI *signal_event)(void *event);
  46. efi_status_t (EFIAPI *close_event)(void *event);
  47. efi_status_t (EFIAPI *check_event)(void *event);
  48. efi_status_t (EFIAPI *install_protocol_interface)(
  49. void **handle, efi_guid_t *protocol,
  50. int protocol_interface_type, void *protocol_interface);
  51. efi_status_t (EFIAPI *reinstall_protocol_interface)(
  52. void *handle, efi_guid_t *protocol,
  53. void *old_interface, void *new_interface);
  54. efi_status_t (EFIAPI *uninstall_protocol_interface)(void *handle,
  55. efi_guid_t *protocol, void *protocol_interface);
  56. efi_status_t (EFIAPI *handle_protocol)(efi_handle_t, efi_guid_t *,
  57. void **);
  58. void *reserved;
  59. efi_status_t (EFIAPI *register_protocol_notify)(
  60. efi_guid_t *protocol, void *event,
  61. void **registration);
  62. efi_status_t (EFIAPI *locate_handle)(
  63. enum efi_locate_search_type search_type,
  64. efi_guid_t *protocol, void *search_key,
  65. unsigned long *buffer_size, efi_handle_t *buffer);
  66. efi_status_t (EFIAPI *locate_device_path)(efi_guid_t *protocol,
  67. struct efi_device_path **device_path,
  68. efi_handle_t *device);
  69. efi_status_t (EFIAPI *install_configuration_table)(
  70. efi_guid_t *guid, void *table);
  71. efi_status_t (EFIAPI *load_image)(bool boot_policiy,
  72. efi_handle_t parent_image,
  73. struct efi_device_path *file_path, void *source_buffer,
  74. unsigned long source_size, efi_handle_t *image);
  75. efi_status_t (EFIAPI *start_image)(efi_handle_t handle,
  76. unsigned long *exitdata_size,
  77. s16 **exitdata);
  78. efi_status_t (EFIAPI *exit)(efi_handle_t handle,
  79. efi_status_t exit_status,
  80. unsigned long exitdata_size, s16 *exitdata);
  81. efi_status_t (EFIAPI *unload_image)(void *image_handle);
  82. efi_status_t (EFIAPI *exit_boot_services)(efi_handle_t, unsigned long);
  83. efi_status_t (EFIAPI *get_next_monotonic_count)(u64 *count);
  84. efi_status_t (EFIAPI *stall)(unsigned long usecs);
  85. efi_status_t (EFIAPI *set_watchdog_timer)(unsigned long timeout,
  86. uint64_t watchdog_code, unsigned long data_size,
  87. uint16_t *watchdog_data);
  88. efi_status_t(EFIAPI *connect_controller)(efi_handle_t controller_handle,
  89. efi_handle_t *driver_image_handle,
  90. struct efi_device_path *remaining_device_path,
  91. bool recursive);
  92. efi_status_t (EFIAPI *disconnect_controller)(void *controller_handle,
  93. void *driver_image_handle, void *child_handle);
  94. #define EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL 0x00000001
  95. #define EFI_OPEN_PROTOCOL_GET_PROTOCOL 0x00000002
  96. #define EFI_OPEN_PROTOCOL_TEST_PROTOCOL 0x00000004
  97. #define EFI_OPEN_PROTOCOL_BY_CHILD_CONTROLLER 0x00000008
  98. #define EFI_OPEN_PROTOCOL_BY_DRIVER 0x00000010
  99. #define EFI_OPEN_PROTOCOL_EXCLUSIVE 0x00000020
  100. efi_status_t (EFIAPI *open_protocol)(efi_handle_t handle,
  101. efi_guid_t *protocol, void **interface,
  102. efi_handle_t agent_handle,
  103. efi_handle_t controller_handle, u32 attributes);
  104. efi_status_t (EFIAPI *close_protocol)(void *handle,
  105. efi_guid_t *protocol, void *agent_handle,
  106. void *controller_handle);
  107. efi_status_t(EFIAPI *open_protocol_information)(efi_handle_t handle,
  108. efi_guid_t *protocol,
  109. struct efi_open_protocol_info_entry **entry_buffer,
  110. unsigned long *entry_count);
  111. efi_status_t (EFIAPI *protocols_per_handle)(efi_handle_t handle,
  112. efi_guid_t ***protocol_buffer,
  113. unsigned long *protocols_buffer_count);
  114. efi_status_t (EFIAPI *locate_handle_buffer) (
  115. enum efi_locate_search_type search_type,
  116. efi_guid_t *protocol, void *search_key,
  117. unsigned long *no_handles, efi_handle_t **buffer);
  118. efi_status_t (EFIAPI *locate_protocol)(efi_guid_t *protocol,
  119. void *registration, void **protocol_interface);
  120. efi_status_t (EFIAPI *install_multiple_protocol_interfaces)(
  121. void **handle, ...);
  122. efi_status_t (EFIAPI *uninstall_multiple_protocol_interfaces)(
  123. void *handle, ...);
  124. efi_status_t (EFIAPI *calculate_crc32)(void *data,
  125. unsigned long data_size, uint32_t *crc32);
  126. void (EFIAPI *copy_mem)(void *destination, void *source,
  127. unsigned long length);
  128. void (EFIAPI *set_mem)(void *buffer, unsigned long size,
  129. uint8_t value);
  130. void *create_event_ex;
  131. };
  132. /* Types and defines for EFI ResetSystem */
  133. enum efi_reset_type {
  134. EFI_RESET_COLD = 0,
  135. EFI_RESET_WARM = 1,
  136. EFI_RESET_SHUTDOWN = 2
  137. };
  138. /* EFI Runtime Services table */
  139. #define EFI_RUNTIME_SERVICES_SIGNATURE 0x5652453544e5552ULL
  140. #define EFI_RUNTIME_SERVICES_REVISION 0x00010000
  141. struct efi_runtime_services {
  142. struct efi_table_hdr hdr;
  143. efi_status_t (EFIAPI *get_time)(struct efi_time *time,
  144. struct efi_time_cap *capabilities);
  145. efi_status_t (EFIAPI *set_time)(struct efi_time *time);
  146. efi_status_t (EFIAPI *get_wakeup_time)(char *enabled, char *pending,
  147. struct efi_time *time);
  148. efi_status_t (EFIAPI *set_wakeup_time)(char enabled,
  149. struct efi_time *time);
  150. efi_status_t (EFIAPI *set_virtual_address_map)(
  151. unsigned long memory_map_size,
  152. unsigned long descriptor_size,
  153. uint32_t descriptor_version,
  154. struct efi_mem_desc *virtmap);
  155. efi_status_t (*convert_pointer)(unsigned long dbg, void **address);
  156. efi_status_t (EFIAPI *get_variable)(s16 *variable_name,
  157. efi_guid_t *vendor, u32 *attributes,
  158. unsigned long *data_size, void *data);
  159. efi_status_t (EFIAPI *get_next_variable)(
  160. unsigned long *variable_name_size,
  161. s16 *variable_name, efi_guid_t *vendor);
  162. efi_status_t (EFIAPI *set_variable)(s16 *variable_name,
  163. efi_guid_t *vendor, u32 attributes,
  164. unsigned long data_size, void *data);
  165. efi_status_t (EFIAPI *get_next_high_mono_count)(
  166. uint32_t *high_count);
  167. void (EFIAPI *reset_system)(enum efi_reset_type reset_type,
  168. efi_status_t reset_status,
  169. unsigned long data_size, void *reset_data);
  170. void *update_capsule;
  171. void *query_capsule_caps;
  172. void *query_variable_info;
  173. };
  174. /* EFI Configuration Table and GUID definitions */
  175. #define NULL_GUID \
  176. EFI_GUID(0x00000000, 0x0000, 0x0000, 0x00, 0x00, \
  177. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00)
  178. #define LOADED_IMAGE_PROTOCOL_GUID \
  179. EFI_GUID(0x5b1b31a1, 0x9562, 0x11d2, 0x8e, 0x3f, \
  180. 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
  181. #define EFI_FDT_GUID \
  182. EFI_GUID(0xb1b621d5, 0xf19c, 0x41a5, \
  183. 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0)
  184. struct efi_configuration_table
  185. {
  186. efi_guid_t guid;
  187. void *table;
  188. };
  189. #define EFI_SYSTEM_TABLE_SIGNATURE ((u64)0x5453595320494249ULL)
  190. struct efi_system_table {
  191. struct efi_table_hdr hdr;
  192. unsigned long fw_vendor; /* physical addr of wchar_t vendor string */
  193. u32 fw_revision;
  194. unsigned long con_in_handle;
  195. struct efi_simple_input_interface *con_in;
  196. unsigned long con_out_handle;
  197. struct efi_simple_text_output_protocol *con_out;
  198. unsigned long stderr_handle;
  199. struct efi_simple_text_output_protocol *std_err;
  200. struct efi_runtime_services *runtime;
  201. struct efi_boot_services *boottime;
  202. unsigned long nr_tables;
  203. struct efi_configuration_table *tables;
  204. };
  205. #define LOADED_IMAGE_GUID \
  206. EFI_GUID(0x5b1b31a1, 0x9562, 0x11d2, \
  207. 0x8e, 0x3f, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
  208. struct efi_loaded_image {
  209. u32 revision;
  210. void *parent_handle;
  211. struct efi_system_table *system_table;
  212. void *device_handle;
  213. void *file_path;
  214. void *reserved;
  215. u32 load_options_size;
  216. void *load_options;
  217. void *image_base;
  218. aligned_u64 image_size;
  219. unsigned int image_code_type;
  220. unsigned int image_data_type;
  221. unsigned long unload;
  222. };
  223. #define DEVICE_PATH_GUID \
  224. EFI_GUID(0x09576e91, 0x6d3f, 0x11d2, \
  225. 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b )
  226. #define DEVICE_PATH_TYPE_END 0x7f
  227. # define DEVICE_PATH_SUB_TYPE_END 0xff
  228. struct efi_device_path {
  229. u8 type;
  230. u8 sub_type;
  231. u16 length;
  232. };
  233. #define DEVICE_PATH_TYPE_MEDIA_DEVICE 0x04
  234. # define DEVICE_PATH_SUB_TYPE_FILE_PATH 0x04
  235. struct efi_device_path_file_path {
  236. struct efi_device_path dp;
  237. u16 str[32];
  238. };
  239. #define BLOCK_IO_GUID \
  240. EFI_GUID(0x964e5b21, 0x6459, 0x11d2, \
  241. 0x8e, 0x39, 0x00, 0xa0, 0xc9, 0x69, 0x72, 0x3b)
  242. struct efi_block_io_media
  243. {
  244. u32 media_id;
  245. char removable_media;
  246. char media_present;
  247. char logical_partition;
  248. char read_only;
  249. char write_caching;
  250. u8 pad[3];
  251. u32 block_size;
  252. u32 io_align;
  253. u8 pad2[4];
  254. u64 last_block;
  255. };
  256. struct efi_block_io {
  257. u64 revision;
  258. struct efi_block_io_media *media;
  259. efi_status_t (EFIAPI *reset)(struct efi_block_io *this,
  260. char extended_verification);
  261. efi_status_t (EFIAPI *read_blocks)(struct efi_block_io *this,
  262. u32 media_id, u64 lba, unsigned long buffer_size,
  263. void *buffer);
  264. efi_status_t (EFIAPI *write_blocks)(struct efi_block_io *this,
  265. u32 media_id, u64 lba, unsigned long buffer_size,
  266. void *buffer);
  267. efi_status_t (EFIAPI *flush_blocks)(struct efi_block_io *this);
  268. };
  269. struct simple_text_output_mode {
  270. s32 max_mode;
  271. s32 mode;
  272. s32 attribute;
  273. s32 cursor_column;
  274. s32 cursor_row;
  275. bool cursor_visible;
  276. };
  277. struct efi_simple_text_output_protocol {
  278. void *reset;
  279. efi_status_t (EFIAPI *output_string)(
  280. struct efi_simple_text_output_protocol *this,
  281. const unsigned short *str);
  282. efi_status_t (EFIAPI *test_string)(
  283. struct efi_simple_text_output_protocol *this,
  284. const unsigned short *str);
  285. efi_status_t(EFIAPI *query_mode)(
  286. struct efi_simple_text_output_protocol *this,
  287. unsigned long mode_number, unsigned long *columns,
  288. unsigned long *rows);
  289. efi_status_t(EFIAPI *set_mode)(
  290. struct efi_simple_text_output_protocol *this,
  291. unsigned long mode_number);
  292. efi_status_t(EFIAPI *set_attribute)(
  293. struct efi_simple_text_output_protocol *this,
  294. unsigned long attribute);
  295. efi_status_t(EFIAPI *clear_screen) (
  296. struct efi_simple_text_output_protocol *this);
  297. efi_status_t(EFIAPI *set_cursor_position) (
  298. struct efi_simple_text_output_protocol *this,
  299. unsigned long column, unsigned long row);
  300. efi_status_t(EFIAPI *enable_cursor)(
  301. struct efi_simple_text_output_protocol *this,
  302. bool enable);
  303. struct simple_text_output_mode *mode;
  304. };
  305. struct efi_input_key {
  306. u16 scan_code;
  307. s16 unicode_char;
  308. };
  309. struct efi_simple_input_interface {
  310. efi_status_t(EFIAPI *reset)(struct efi_simple_input_interface *this,
  311. bool ExtendedVerification);
  312. efi_status_t(EFIAPI *read_key_stroke)(
  313. struct efi_simple_input_interface *this,
  314. struct efi_input_key *key);
  315. void *wait_for_key;
  316. };
  317. #define CONSOLE_CONTROL_GUID \
  318. EFI_GUID(0xf42f7782, 0x12e, 0x4c12, \
  319. 0x99, 0x56, 0x49, 0xf9, 0x43, 0x4, 0xf7, 0x21)
  320. #define EFI_CONSOLE_MODE_TEXT 0
  321. #define EFI_CONSOLE_MODE_GFX 1
  322. struct efi_console_control_protocol
  323. {
  324. efi_status_t (EFIAPI *get_mode)(
  325. struct efi_console_control_protocol *this, int *mode,
  326. char *uga_exists, char *std_in_locked);
  327. efi_status_t (EFIAPI *set_mode)(
  328. struct efi_console_control_protocol *this, int mode);
  329. efi_status_t (EFIAPI *lock_std_in)(
  330. struct efi_console_control_protocol *this,
  331. uint16_t *password);
  332. };
  333. #define EFI_GOP_GUID \
  334. EFI_GUID(0x9042a9de, 0x23dc, 0x4a38, \
  335. 0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a)
  336. #define EFI_GOT_RGBA8 0
  337. #define EFI_GOT_BGRA8 1
  338. #define EFI_GOT_BITMASK 2
  339. struct efi_gop_mode_info
  340. {
  341. u32 version;
  342. u32 width;
  343. u32 height;
  344. u32 pixel_format;
  345. u32 pixel_bitmask[4];
  346. u32 pixels_per_scanline;
  347. };
  348. struct efi_gop_mode
  349. {
  350. u32 max_mode;
  351. u32 mode;
  352. struct efi_gop_mode_info *info;
  353. unsigned long info_size;
  354. efi_physical_addr_t fb_base;
  355. unsigned long fb_size;
  356. };
  357. #define EFI_BLT_VIDEO_FILL 0
  358. #define EFI_BLT_VIDEO_TO_BLT_BUFFER 1
  359. #define EFI_BLT_BUFFER_TO_VIDEO 2
  360. #define EFI_BLT_VIDEO_TO_VIDEO 3
  361. struct efi_gop
  362. {
  363. efi_status_t (EFIAPI *query_mode)(struct efi_gop *this, u32 mode_number,
  364. unsigned long *size_of_info,
  365. struct efi_gop_mode_info **info);
  366. efi_status_t (EFIAPI *set_mode)(struct efi_gop *this, u32 mode_number);
  367. efi_status_t (EFIAPI *blt)(struct efi_gop *this, void *buffer,
  368. unsigned long operation, unsigned long sx,
  369. unsigned long sy, unsigned long dx,
  370. unsigned long dy, unsigned long width,
  371. unsigned long height, unsigned long delta);
  372. struct efi_gop_mode *mode;
  373. };
  374. #define EFI_SIMPLE_NETWORK_GUID \
  375. EFI_GUID(0xa19832b9, 0xac25, 0x11d3, \
  376. 0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
  377. struct efi_mac_address {
  378. char mac_addr[32];
  379. };
  380. struct efi_ip_address {
  381. u8 ip_addr[16];
  382. };
  383. enum efi_simple_network_state {
  384. EFI_NETWORK_STOPPED,
  385. EFI_NETWORK_STARTED,
  386. EFI_NETWORK_INITIALIZED,
  387. };
  388. struct efi_simple_network_mode {
  389. enum efi_simple_network_state state;
  390. u32 hwaddr_size;
  391. u32 media_header_size;
  392. u32 max_packet_size;
  393. u32 nvram_size;
  394. u32 nvram_access_size;
  395. u32 receive_filter_mask;
  396. u32 receive_filter_setting;
  397. u32 max_mcast_filter_count;
  398. u32 mcast_filter_count;
  399. struct efi_mac_address mcast_filter[16];
  400. struct efi_mac_address current_address;
  401. struct efi_mac_address broadcast_address;
  402. struct efi_mac_address permanent_address;
  403. u8 if_type;
  404. u8 mac_changeable;
  405. u8 multitx_supported;
  406. u8 media_present_supported;
  407. u8 media_present;
  408. };
  409. #define EFI_SIMPLE_NETWORK_RECEIVE_UNICAST 0x01,
  410. #define EFI_SIMPLE_NETWORK_RECEIVE_MULTICAST 0x02,
  411. #define EFI_SIMPLE_NETWORK_RECEIVE_BROADCAST 0x04,
  412. #define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS 0x08,
  413. #define EFI_SIMPLE_NETWORK_RECEIVE_PROMISCUOUS_MULTICAST 0x10,
  414. struct efi_simple_network
  415. {
  416. u64 revision;
  417. efi_status_t (EFIAPI *start)(struct efi_simple_network *this);
  418. efi_status_t (EFIAPI *stop)(struct efi_simple_network *this);
  419. efi_status_t (EFIAPI *initialize)(struct efi_simple_network *this,
  420. ulong extra_rx, ulong extra_tx);
  421. efi_status_t (EFIAPI *reset)(struct efi_simple_network *this,
  422. int extended_verification);
  423. efi_status_t (EFIAPI *shutdown)(struct efi_simple_network *this);
  424. efi_status_t (EFIAPI *receive_filters)(struct efi_simple_network *this,
  425. u32 enable, u32 disable, int reset_mcast_filter,
  426. ulong mcast_filter_count,
  427. struct efi_mac_address *mcast_filter);
  428. efi_status_t (EFIAPI *station_address)(struct efi_simple_network *this,
  429. int reset, struct efi_mac_address *new_mac);
  430. efi_status_t (EFIAPI *statistics)(struct efi_simple_network *this,
  431. int reset, ulong *stat_size, void *stat_table);
  432. efi_status_t (EFIAPI *mcastiptomac)(struct efi_simple_network *this,
  433. int ipv6, struct efi_ip_address *ip,
  434. struct efi_mac_address *mac);
  435. efi_status_t (EFIAPI *nvdata)(struct efi_simple_network *this,
  436. int read_write, ulong offset, ulong buffer_size,
  437. char *buffer);
  438. efi_status_t (EFIAPI *get_status)(struct efi_simple_network *this,
  439. u32 *int_status, void **txbuf);
  440. efi_status_t (EFIAPI *transmit)(struct efi_simple_network *this,
  441. ulong header_size, ulong buffer_size, void *buffer,
  442. struct efi_mac_address *src_addr,
  443. struct efi_mac_address *dest_addr, u16 *protocol);
  444. efi_status_t (EFIAPI *receive)(struct efi_simple_network *this,
  445. ulong *header_size, ulong *buffer_size, void *buffer,
  446. struct efi_mac_address *src_addr,
  447. struct efi_mac_address *dest_addr, u16 *protocol);
  448. void (EFIAPI *waitforpacket)(void);
  449. struct efi_simple_network_mode *mode;
  450. };
  451. #define EFI_PXE_GUID \
  452. EFI_GUID(0x03c4e603, 0xac28, 0x11d3, \
  453. 0x9a, 0x2d, 0x00, 0x90, 0x27, 0x3f, 0xc1, 0x4d)
  454. struct efi_pxe_packet {
  455. u8 packet[1472];
  456. };
  457. struct efi_pxe_mode
  458. {
  459. u8 unused[52];
  460. struct efi_pxe_packet dhcp_discover;
  461. struct efi_pxe_packet dhcp_ack;
  462. struct efi_pxe_packet proxy_offer;
  463. struct efi_pxe_packet pxe_discover;
  464. struct efi_pxe_packet pxe_reply;
  465. };
  466. struct efi_pxe {
  467. u64 rev;
  468. void (EFIAPI *start)(void);
  469. void (EFIAPI *stop)(void);
  470. void (EFIAPI *dhcp)(void);
  471. void (EFIAPI *discover)(void);
  472. void (EFIAPI *mftp)(void);
  473. void (EFIAPI *udpwrite)(void);
  474. void (EFIAPI *udpread)(void);
  475. void (EFIAPI *setipfilter)(void);
  476. void (EFIAPI *arp)(void);
  477. void (EFIAPI *setparams)(void);
  478. void (EFIAPI *setstationip)(void);
  479. void (EFIAPI *setpackets)(void);
  480. struct efi_pxe_mode *mode;
  481. };
  482. #endif