iPXE
|
EFI API. More...
#include <ipxe/efi/Uefi/UefiBaseType.h>
#include <ipxe/efi/Uefi.h>
#include <ipxe/efi/PiDxe.h>
#include <ipxe/efi/Protocol/LoadedImage.h>
#include <ipxe/tables.h>
#include <ipxe/uuid.h>
#include <ipxe/version.h>
#include <ipxe/profile.h>
Go to the source code of this file.
Data Structures | |
struct | EFI_HANDLE |
struct | efi_saved_tpl |
An EFI saved task priority level. More... | |
struct | efi_protocol |
An EFI protocol used by iPXE. More... | |
struct | efi_config_table |
An EFI configuration table used by iPXE. More... | |
Macros | |
#define | EFI_HANDLE STUPID_EFI_HANDLE |
#define | _Static_assert(expr, msg) |
#define | EFI_PROTOCOLS __table ( struct efi_protocol, "efi_protocols" ) |
EFI protocol table. More... | |
#define | __efi_protocol __table_entry ( EFI_PROTOCOLS, 01 ) |
Declare an EFI protocol used by iPXE. More... | |
#define | EFI_REQUIRE_PROTOCOL(_protocol, _ptr) |
Declare an EFI protocol to be required by iPXE. More... | |
#define | EFI_REQUEST_PROTOCOL(_protocol, _ptr) |
Declare an EFI protocol to be requested by iPXE. More... | |
#define | EFI_CONFIG_TABLES __table ( struct efi_config_table, "efi_config_tables" ) |
EFI configuration table table. More... | |
#define | __efi_config_table __table_entry ( EFI_CONFIG_TABLES, 01 ) |
Declare an EFI configuration table used by iPXE. More... | |
#define | EFI_USE_TABLE(_table, _ptr, _required) |
Declare an EFI configuration table to be used by iPXE. More... | |
#define | EFIRC(rc) ERRNO_TO_PLATFORM ( -(rc) ) |
Convert an iPXE status code to an EFI status code. More... | |
#define | EEFI(efirc) EPLATFORM ( EINFO_EPLATFORM, efirc ) |
Convert an EFI status code to an iPXE status code. More... | |
#define | DBG_EFI_OPENER_IF(level, handle, protocol, opener) |
#define | DBG_EFI_OPENERS_IF(level, handle, protocol) |
#define | DBG_EFI_PROTOCOLS_IF(level, handle) |
#define | DBGC_EFI_OPENER_IF(level, id, ...) |
#define | DBGC_EFI_OPENERS_IF(level, id, ...) |
#define | DBGC_EFI_PROTOCOL_IF(level, id, ...) |
#define | DBGC_EFI_PROTOCOLS_IF(level, id, ...) |
#define | DBGC_EFI_OPENER(...) DBGC_EFI_OPENER_IF ( LOG, ##__VA_ARGS__ ) |
#define | DBGC_EFI_OPENERS(...) DBGC_EFI_OPENERS_IF ( LOG, ##__VA_ARGS__ ) |
#define | DBGC_EFI_PROTOCOL(...) DBGC_EFI_PROTOCOL_IF ( LOG, ##__VA_ARGS__ ) |
#define | DBGC_EFI_PROTOCOLS(...) DBGC_EFI_PROTOCOLS_IF ( LOG, ##__VA_ARGS__ ) |
#define | DBGC2_EFI_OPENER(...) DBGC_EFI_OPENER_IF ( EXTRA, ##__VA_ARGS__ ) |
#define | DBGC2_EFI_OPENERS(...) DBGC_EFI_OPENERS_IF ( EXTRA, ##__VA_ARGS__ ) |
#define | DBGC2_EFI_PROTOCOL(...) DBGC_EFI_PROTOCOL_IF ( EXTRA, ##__VA_ARGS__ ) |
#define | DBGC2_EFI_PROTOCOLS(...) DBGC_EFI_PROTOCOLS_IF ( EXTRA, ##__VA_ARGS__ ) |
#define | DBGCP_EFI_OPENER(...) DBGC_EFI_OPENER_IF ( PROFILE, ##__VA_ARGS__ ) |
#define | DBGCP_EFI_OPENERS(...) DBGC_EFI_OPENERS_IF ( PROFILE, ##__VA_ARGS__ ) |
#define | DBGCP_EFI_PROTOCOL(...) DBGC_EFI_PROTOCOL_IF ( PROFILE, ##__VA_ARGS__ ) |
#define | DBGCP_EFI_PROTOCOLS(...) DBGC_EFI_PROTOCOLS_IF ( PROFILE, ##__VA_ARGS__ ) |
#define | EFI_INTF_OP UNUSED_INTF_OP |
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
const char * | efi_guid_ntoa (CONST EFI_GUID *guid) |
Convert GUID to a printable string. More... | |
const char * | efi_locate_search_type_name (EFI_LOCATE_SEARCH_TYPE search_type) |
Name locate search type. More... | |
const char * | efi_open_attributes_name (unsigned int attributes) |
Name protocol open attributes. More... | |
const char * | efi_devpath_text (EFI_DEVICE_PATH_PROTOCOL *path) |
Get textual representation of device path. More... | |
const char * | efi_handle_name (EFI_HANDLE handle) |
Get name of an EFI handle. More... | |
void | dbg_efi_opener (EFI_HANDLE handle, EFI_GUID *protocol, EFI_OPEN_PROTOCOL_INFORMATION_ENTRY *opener) |
Print opened protocol information. More... | |
void | dbg_efi_openers (EFI_HANDLE handle, EFI_GUID *protocol) |
Print list of openers of a given protocol on a given handle. More... | |
void | dbg_efi_protocol (EFI_HANDLE handle, EFI_GUID *protocol) |
Print protocol information on a given handle. More... | |
void | dbg_efi_protocols (EFI_HANDLE handle) |
Print list of protocol handlers attached to a handle. More... | |
unsigned long | efi_stack_cookie (EFI_HANDLE handle) |
Construct a stack cookie value. More... | |
void | __stack_chk_fail (void) |
Abort on stack check failure. More... | |
static void | efi_init_stack_guard (EFI_HANDLE handle) |
Initialise stack cookie. More... | |
EFI_STATUS | efi_init (EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *systab) |
Initialise EFI environment. More... | |
void | efi_raise_tpl (struct efi_saved_tpl *tpl) |
Raise task priority level to internal level. More... | |
void | efi_restore_tpl (struct efi_saved_tpl *tpl) |
Restore task priority level. More... | |
EFI API.
The intention is to include near-verbatim copies of the EFI headers required by iPXE. This is achieved using the import.pl script in this directory. Run the import script to update the local copies of the headers:
./import.pl /path/to/edk2/edk2
where /path/to/edk2/edk2 is the path to your local checkout of the EFI Development Kit.
Note that import.pl will modify any #include lines in each imported header to reflect its new location within the iPXE tree. It will also tidy up the file by removing carriage return characters and trailing whitespace.
Definition in file efi.h.
#define EFI_HANDLE STUPID_EFI_HANDLE |
#define EFI_PROTOCOLS __table ( struct efi_protocol, "efi_protocols" ) |
#define __efi_protocol __table_entry ( EFI_PROTOCOLS, 01 ) |
#define EFI_REQUIRE_PROTOCOL | ( | _protocol, | |
_ptr | |||
) |
Declare an EFI protocol to be required by iPXE.
_protocol | EFI protocol name |
_ptr | Pointer to protocol instance |
#define EFI_REQUEST_PROTOCOL | ( | _protocol, | |
_ptr | |||
) |
Declare an EFI protocol to be requested by iPXE.
_protocol | EFI protocol name |
_ptr | Pointer to protocol instance |
#define EFI_CONFIG_TABLES __table ( struct efi_config_table, "efi_config_tables" ) |
#define __efi_config_table __table_entry ( EFI_CONFIG_TABLES, 01 ) |
#define EFI_USE_TABLE | ( | _table, | |
_ptr, | |||
_required | |||
) |
Declare an EFI configuration table to be used by iPXE.
_table | EFI configuration table name |
_ptr | Pointer to configuration table |
_required | Table is required for operation |
#define EFIRC | ( | rc | ) | ERRNO_TO_PLATFORM ( -(rc) ) |
#define EEFI | ( | efirc | ) | EPLATFORM ( EINFO_EPLATFORM, efirc ) |
#define DBG_EFI_PROTOCOLS_IF | ( | level, | |
handle | |||
) |
#define DBGC_EFI_OPENER_IF | ( | level, | |
id, | |||
... | |||
) |
#define DBGC_EFI_OPENERS_IF | ( | level, | |
id, | |||
... | |||
) |
#define DBGC_EFI_PROTOCOL_IF | ( | level, | |
id, | |||
... | |||
) |
#define DBGC_EFI_PROTOCOLS_IF | ( | level, | |
id, | |||
... | |||
) |
#define DBGC_EFI_OPENER | ( | ... | ) | DBGC_EFI_OPENER_IF ( LOG, ##__VA_ARGS__ ) |
#define DBGC_EFI_OPENERS | ( | ... | ) | DBGC_EFI_OPENERS_IF ( LOG, ##__VA_ARGS__ ) |
#define DBGC_EFI_PROTOCOL | ( | ... | ) | DBGC_EFI_PROTOCOL_IF ( LOG, ##__VA_ARGS__ ) |
#define DBGC_EFI_PROTOCOLS | ( | ... | ) | DBGC_EFI_PROTOCOLS_IF ( LOG, ##__VA_ARGS__ ) |
#define DBGC2_EFI_OPENER | ( | ... | ) | DBGC_EFI_OPENER_IF ( EXTRA, ##__VA_ARGS__ ) |
#define DBGC2_EFI_OPENERS | ( | ... | ) | DBGC_EFI_OPENERS_IF ( EXTRA, ##__VA_ARGS__ ) |
#define DBGC2_EFI_PROTOCOL | ( | ... | ) | DBGC_EFI_PROTOCOL_IF ( EXTRA, ##__VA_ARGS__ ) |
#define DBGC2_EFI_PROTOCOLS | ( | ... | ) | DBGC_EFI_PROTOCOLS_IF ( EXTRA, ##__VA_ARGS__ ) |
#define DBGCP_EFI_OPENER | ( | ... | ) | DBGC_EFI_OPENER_IF ( PROFILE, ##__VA_ARGS__ ) |
#define DBGCP_EFI_OPENERS | ( | ... | ) | DBGC_EFI_OPENERS_IF ( PROFILE, ##__VA_ARGS__ ) |
#define DBGCP_EFI_PROTOCOL | ( | ... | ) | DBGC_EFI_PROTOCOL_IF ( PROFILE, ##__VA_ARGS__ ) |
#define DBGCP_EFI_PROTOCOLS | ( | ... | ) | DBGC_EFI_PROTOCOLS_IF ( PROFILE, ##__VA_ARGS__ ) |
#define EFI_INTF_OP UNUSED_INTF_OP |
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
Convert GUID to a printable string.
guid | GUID |
string | Printable string |
Definition at line 256 of file efi_debug.c.
References efi_well_known_guids, guid, efi_well_known_guid::guid, memcmp(), memcpy(), efi_well_known_guid::name, NULL, u, uuid_mangle(), and uuid_ntoa().
Referenced by chained_locate(), chained_supported(), dbg_efi_opener(), dbg_efi_openers(), dbg_efi_protocol(), efi_autoexec_load(), efi_close_protocol_wrapper(), efi_create_event_ex_wrapper(), efi_file_get_info(), efi_file_path_uninstall(), efi_file_set_info(), efi_handle_name(), efi_handle_protocol_wrapper(), efi_init(), efi_install_configuration_table_wrapper(), efi_install_multiple_protocol_interfaces_wrapper(), efi_install_protocol_interface_wrapper(), efi_locate_device(), efi_locate_device_path_wrapper(), efi_locate_handle_buffer_wrapper(), efi_locate_handle_wrapper(), efi_locate_protocol_wrapper(), efi_open_protocol_information_wrapper(), efi_open_protocol_wrapper(), efi_protocols_per_handle_wrapper(), efi_register_protocol_notify_wrapper(), efi_reinstall_protocol_interface_wrapper(), efi_service_add(), efi_service_del(), efi_uninstall_multiple_protocol_interfaces_wrapper(), efi_uninstall_protocol_interface_wrapper(), efi_veto_close_protocol(), efivars_fetch(), efivars_find(), and snpnet_supported().
const char* efi_locate_search_type_name | ( | EFI_LOCATE_SEARCH_TYPE | search_type | ) |
Name locate search type.
search_type | Locate search type |
name | Locate search type name |
Definition at line 289 of file efi_debug.c.
References AllHandles, ByProtocol, ByRegisterNotify, and snprintf().
Referenced by efi_locate_handle_buffer_wrapper(), and efi_locate_handle_wrapper().
const char* efi_open_attributes_name | ( | unsigned int | attributes | ) |
Name protocol open attributes.
attributes | Protocol open attributes |
name | Protocol open attributes name |
Returns a (static) string with characters for each set bit corresponding to BY_(H)ANDLE_PROTOCOL, (G)ET_PROTOCOL, (T)EST_PROTOCOL, BY_(C)HILD_CONTROLLER, BY_(D)RIVER, and E(X)CLUSIVE.
Definition at line 314 of file efi_debug.c.
Referenced by dbg_efi_opener(), and efi_open_protocol_wrapper().
const char* efi_devpath_text | ( | EFI_DEVICE_PATH_PROTOCOL * | path | ) |
Get textual representation of device path.
path | Device path |
text | Textual representation of device path, or NULL |
Definition at line 463 of file efi_debug.c.
References EFI_SYSTEM_TABLE::BootServices, EFI_DEVICE_PATH_TO_TEXT_PROTOCOL::ConvertDevicePathToText, DBG, efi_path_len(), efi_systab, efidpt, FALSE, EFI_BOOT_SERVICES::FreePool, len, NULL, and snprintf().
Referenced by efi_block_exec(), efi_block_hook(), efi_block_match(), efi_connect_controller_wrapper(), efi_driver_start(), efi_driver_supported(), efi_dump_image(), efi_file_path_claim(), efi_file_path_install(), efi_file_path_uninstall(), efi_init(), efi_load_image_wrapper(), efi_loaded_image_filepath_name(), efi_local_open_volume(), efi_locate_device(), efi_locate_device_path_wrapper(), efi_path_net_probe(), usbio_open(), and usbio_path().
const char* efi_handle_name | ( | EFI_HANDLE | handle | ) |
Get name of an EFI handle.
handle | EFI handle |
text | Name of handle, or NULL |
Definition at line 810 of file efi_debug.c.
References EFI_SYSTEM_TABLE::BootServices, EFI_BOOT_SERVICES::CloseProtocol, count, DBG2, efi_guid_ntoa(), efi_handle_name_types, efi_image_handle, EFI_OPEN_PROTOCOL_GET_PROTOCOL, efi_systab, EFI_BOOT_SERVICES::FreePool, handle, name, NULL, EFI_BOOT_SERVICES::OpenProtocol, EFI_BOOT_SERVICES::ProtocolsPerHandle, ssnprintf(), and type.
Referenced by chained_locate(), chained_supported(), dbg_efi_opener(), dbg_efi_openers(), dbg_efi_protocol(), dbg_efi_protocols(), efi_autoexec_filesystem(), efi_autoexec_load(), efi_autoexec_network(), efi_block_boot(), efi_block_filename(), efi_block_hook(), efi_block_local(), efi_block_match(), efi_block_root(), efi_bofm_start(), efi_bofm_supported(), efi_cachedhcp_record(), efi_child_add(), efi_child_del(), efi_close_protocol_wrapper(), efi_connect_controller_wrapper(), efi_device_info(), efi_disconnect_controller_wrapper(), efi_driver_connect(), efi_driver_start(), efi_driver_stop(), efi_driver_supported(), efi_dump_image(), efi_exit_boot_services_wrapper(), efi_exit_wrapper(), efi_file_path_claim(), efi_handle_protocol_wrapper(), efi_install_multiple_protocol_interfaces_wrapper(), efi_install_protocol_interface_wrapper(), efi_load_image_wrapper(), efi_local_check_volume_name(), efi_local_open_root(), efi_local_open_volume(), efi_locate_device(), efi_locate_device_path_wrapper(), efi_locate_handle_buffer_wrapper(), efi_locate_handle_wrapper(), efi_open_protocol_information_wrapper(), efi_open_protocol_wrapper(), efi_pci_info(), efi_protocols_per_handle_wrapper(), efi_pxe_install(), efi_pxe_uninstall(), efi_reinstall_protocol_interface_wrapper(), efi_service_add(), efi_service_del(), efi_set_autoboot_ll_addr(), efi_snp_probe(), efi_start_image_wrapper(), efi_uninstall_multiple_protocol_interfaces_wrapper(), efi_uninstall_protocol_interface_wrapper(), efi_unload_image_wrapper(), efi_usb_install(), efi_usb_uninstall(), efi_veto(), efi_veto_close(), efi_veto_close_handle(), efi_veto_close_protocol(), efi_veto_destroy(), efi_veto_disconnect(), efi_veto_find(), efi_veto_uninstall(), efi_veto_unload(), efidev_alloc(), efipci_discover_one(), efipci_open(), efipci_root_open(), efipci_start(), mnpnet_start(), mnptemp_create(), nii_start(), snpnet_start(), snpnet_stop(), snpnet_supported(), usbio_bulk_in_poll(), usbio_bulk_out_poll(), usbio_config(), usbio_control_poll(), usbio_endpoint_open(), usbio_interface(), usbio_interfaces(), usbio_interrupt_callback(), usbio_interrupt_open(), usbio_open(), usbio_path(), usbio_start(), and usbio_supported().
void dbg_efi_opener | ( | EFI_HANDLE | handle, |
EFI_GUID * | protocol, | ||
EFI_OPEN_PROTOCOL_INFORMATION_ENTRY * | opener | ||
) |
Print opened protocol information.
handle | EFI handle @V protocol Protocol GUID |
opener | Opened protocol information |
Definition at line 336 of file efi_debug.c.
References EFI_OPEN_PROTOCOL_INFORMATION_ENTRY::AgentHandle, EFI_OPEN_PROTOCOL_INFORMATION_ENTRY::Attributes, EFI_OPEN_PROTOCOL_INFORMATION_ENTRY::ControllerHandle, efi_guid_ntoa(), efi_handle_name(), efi_open_attributes_name(), handle, EFI_OPEN_PROTOCOL_INFORMATION_ENTRY::OpenCount, printf(), and protocol.
Referenced by dbg_efi_openers().
void dbg_efi_openers | ( | EFI_HANDLE | handle, |
EFI_GUID * | protocol | ||
) |
Print list of openers of a given protocol on a given handle.
handle | EFI handle |
protocol | Protocol GUID |
Definition at line 357 of file efi_debug.c.
References EFI_SYSTEM_TABLE::BootServices, count, dbg_efi_opener(), EEFI, efi_guid_ntoa(), efi_handle_name(), efi_systab, EFI_BOOT_SERVICES::FreePool, handle, EFI_BOOT_SERVICES::OpenProtocolInformation, printf(), protocol, rc, and strerror().
Referenced by dbg_efi_protocol().
void dbg_efi_protocol | ( | EFI_HANDLE | handle, |
EFI_GUID * | protocol | ||
) |
Print protocol information on a given handle.
handle | EFI handle |
protocol | Protocol GUID |
Definition at line 397 of file efi_debug.c.
References EFI_SYSTEM_TABLE::BootServices, dbg_efi_openers(), EEFI, efi_guid_ntoa(), efi_handle_name(), efi_systab, handle, EFI_BOOT_SERVICES::HandleProtocol, printf(), protocol, rc, strerror(), and VOID.
Referenced by dbg_efi_protocols().
void dbg_efi_protocols | ( | EFI_HANDLE | handle | ) |
Print list of protocol handlers attached to a handle.
handle | EFI handle |
Definition at line 424 of file efi_debug.c.
References EFI_SYSTEM_TABLE::BootServices, count, dbg_efi_protocol(), EEFI, efi_handle_name(), efi_systab, EFI_BOOT_SERVICES::FreePool, handle, printf(), EFI_BOOT_SERVICES::ProtocolsPerHandle, rc, and strerror().
unsigned long efi_stack_cookie | ( | EFI_HANDLE | handle | ) |
Construct a stack cookie value.
handle | Image handle |
cookie | Stack cookie |
Definition at line 131 of file efi_init.c.
References __BIG_ENDIAN, __BYTE_ORDER, build_id, handle, profile_timestamp(), and rotation.
Referenced by efi_init_stack_guard().
void __stack_chk_fail | ( | void | ) |
Abort on stack check failure.
Definition at line 372 of file efi_init.c.
References __stack_chk_guard, DBGC, EEFI, EFI_COMPROMISED_DATA, efi_exit, efi_image_handle, efi_systab, NULL, rc, and strerror().
|
inlinestatic |
Initialise stack cookie.
handle | Image handle |
Definition at line 364 of file efi.h.
References __stack_chk_guard, efi_stack_cookie(), and handle.
Referenced by _efi_start(), and _efidrv_start().
EFI_STATUS efi_init | ( | EFI_HANDLE | image_handle, |
EFI_SYSTEM_TABLE * | systab | ||
) |
Initialise EFI environment.
image_handle | Image handle |
systab | System table |
efirc | EFI return status code |
Definition at line 171 of file efi_init.c.
References EFI_BOOT_SERVICES::AllocatePool, EFI_SYSTEM_TABLE::BootServices, EFI_BOOT_SERVICES::CloseEvent, EFI_SYSTEM_TABLE::ConOut, EFI_BOOT_SERVICES::CreateEvent, DBGC, device_path, EFI_LOADED_IMAGE_PROTOCOL::DeviceHandle, EEFI, efi_cmdline, efi_cmdline_len, EFI_CONFIG_TABLES, efi_device_path_protocol_guid, efi_devpath_text(), efi_driver_install(), efi_driver_uninstall(), efi_exit, efi_find_table(), efi_guid_ntoa(), efi_image_handle, efi_loaded_image, efi_loaded_image_path, efi_loaded_image_protocol_guid, EFI_NOT_AVAILABLE_YET, EFI_OPEN_PROTOCOL_GET_PROTOCOL, efi_path_len(), EFI_PROTOCOLS, efi_shutdown_event, efi_shutdown_hook(), efi_systab, efi_unload(), EfiBootServicesData, EFIRC, EVT_SIGNAL_EXIT_BOOT_SERVICES, EFI_BOOT_SERVICES::Exit, for_each_table_entry, EFI_BOOT_SERVICES::FreePool, efi_protocol::guid, efi_config_table::guid, EFI_LOADED_IMAGE_PROTOCOL::ImageBase, EFI_LOADED_IMAGE_PROTOCOL::LoadOptions, EFI_LOADED_IMAGE_PROTOCOL::LoadOptionsSize, EFI_BOOT_SERVICES::LocateProtocol, memcpy(), NULL, EFI_BOOT_SERVICES::OpenProtocol, efi_protocol::protocol, rc, efi_protocol::required, efi_config_table::required, EFI_SYSTEM_TABLE::RuntimeServices, strerror(), efi_config_table::table, TPL_NOTIFY, and EFI_LOADED_IMAGE_PROTOCOL::Unload.
Referenced by _efi_start(), and _efidrv_start().
void efi_raise_tpl | ( | struct efi_saved_tpl * | tpl | ) |
Raise task priority level to internal level.
tpl | Saved TPL |
Definition at line 399 of file efi_init.c.
References EFI_SYSTEM_TABLE::BootServices, efi_saved_tpl::current, efi_external_tpl, efi_internal_tpl, efi_systab, efi_saved_tpl::previous, and EFI_BOOT_SERVICES::RaiseTPL.
Referenced by _efidrv_start(), efi_driver_start(), efi_driver_stop(), efi_snp_add_claim(), efi_snp_get_status(), efi_snp_initialize(), efi_snp_receive(), efi_snp_reset(), efi_snp_shutdown(), efi_snp_transmit(), efi_snp_wait_for_packet(), efi_unload(), efi_usb_async_interrupt_transfer(), efi_usb_bulk_transfer(), efi_usb_control_transfer(), efi_usb_get_string_descriptor(), efi_usb_sync_interrupt_transfer(), efi_vlan_find(), efi_vlan_remove(), and efi_vlan_set().
void efi_restore_tpl | ( | struct efi_saved_tpl * | tpl | ) |
Restore task priority level.
tpl | Saved TPL |
Definition at line 415 of file efi_init.c.
References EFI_SYSTEM_TABLE::BootServices, efi_saved_tpl::current, efi_external_tpl, efi_systab, efi_saved_tpl::previous, and EFI_BOOT_SERVICES::RestoreTPL.
Referenced by _efidrv_start(), efi_driver_start(), efi_driver_stop(), efi_snp_add_claim(), efi_snp_get_status(), efi_snp_initialize(), efi_snp_receive(), efi_snp_reset(), efi_snp_shutdown(), efi_snp_transmit(), efi_snp_wait_for_packet(), efi_unload(), efi_usb_async_interrupt_transfer(), efi_usb_bulk_transfer(), efi_usb_control_transfer(), efi_usb_get_string_descriptor(), efi_usb_sync_interrupt_transfer(), efi_vlan_find(), efi_vlan_remove(), and efi_vlan_set().
EFI_GUID efi_absolute_pointer_protocol_guid |
Absolute pointer protocol GUID.
Definition at line 100 of file efi_guid.c.
EFI_GUID efi_acpi_table_protocol_guid |
ACPI table protocol GUID.
Definition at line 104 of file efi_guid.c.
EFI_GUID efi_apple_net_boot_protocol_guid |
Apple NetBoot protocol GUID.
Definition at line 108 of file efi_guid.c.
Referenced by efi_pxe_install(), and efi_pxe_uninstall().
EFI_GUID efi_arp_protocol_guid |
ARP protocol GUID.
Definition at line 112 of file efi_guid.c.
EFI_GUID efi_arp_service_binding_protocol_guid |
ARP service binding protocol GUID.
Definition at line 116 of file efi_guid.c.
EFI_GUID efi_block_io_protocol_guid |
Block I/O protocol GUID.
Definition at line 120 of file efi_guid.c.
Referenced by efi_block_boot(), efi_block_hook(), efi_block_local(), efi_block_unhook(), efi_file_install(), and efi_file_uninstall().
EFI_GUID efi_block_io2_protocol_guid |
Block I/O version 2 protocol GUID.
Definition at line 124 of file efi_guid.c.
EFI_GUID efi_bus_specific_driver_override_protocol_guid |
Bus specific driver override protocol GUID.
Definition at line 128 of file efi_guid.c.
EFI_GUID efi_component_name_protocol_guid |
Component name protocol GUID.
Definition at line 132 of file efi_guid.c.
Referenced by efi_veto_find().
EFI_GUID efi_component_name2_protocol_guid |
Component name 2 protocol GUID.
Definition at line 136 of file efi_guid.c.
Referenced by efi_driver_controller_name(), efi_driver_install(), efi_driver_uninstall(), efi_snp_probe(), and efi_snp_remove().
EFI_GUID efi_console_control_protocol_guid |
Console control protocol GUID.
Definition at line 140 of file efi_guid.c.
EFI_GUID efi_device_path_protocol_guid |
Device path protocol GUID.
Definition at line 144 of file efi_guid.c.
Referenced by efi_block_hook(), efi_block_match(), efi_block_scan(), efi_block_unhook(), efi_child_add(), efi_child_del(), efi_file_path_claim(), efi_file_path_install(), efi_file_path_uninstall(), efi_init(), efi_locate_device(), efi_snp_hii_install(), efi_snp_hii_uninstall(), efi_snp_probe(), efi_snp_remove(), efi_usb_install(), efi_usb_uninstall(), efidev_alloc(), and usbio_path().
EFI_GUID efi_dhcp4_protocol_guid |
DHCPv4 protocol GUID.
Definition at line 148 of file efi_guid.c.
EFI_GUID efi_dhcp4_service_binding_protocol_guid |
DHCPv4 service binding protocol GUID.
Definition at line 152 of file efi_guid.c.
EFI_GUID efi_dhcp6_protocol_guid |
DHCPv6 protocol GUID.
Definition at line 156 of file efi_guid.c.
EFI_GUID efi_dhcp6_service_binding_protocol_guid |
DHCPv6 service binding protocol GUID.
Definition at line 160 of file efi_guid.c.
EFI_GUID efi_disk_io_protocol_guid |
Disk I/O protocol GUID.
Definition at line 164 of file efi_guid.c.
Referenced by efi_file_install(), and efi_file_uninstall().
EFI_GUID efi_dns4_protocol_guid |
DNSv4 protocol GUID.
Definition at line 168 of file efi_guid.c.
EFI_GUID efi_dns4_service_binding_protocol_guid |
DNSv4 service binding protocol GUID.
Definition at line 172 of file efi_guid.c.
EFI_GUID efi_dns6_protocol_guid |
DNSv6 protocol GUID.
Definition at line 176 of file efi_guid.c.
EFI_GUID efi_dns6_service_binding_protocol_guid |
DNSv6 service binding protocol GUID.
Definition at line 180 of file efi_guid.c.
EFI_GUID efi_driver_binding_protocol_guid |
Driver binding protocol GUID.
Definition at line 184 of file efi_guid.c.
Referenced by efi_driver_install(), efi_driver_uninstall(), efi_veto(), efi_veto_find(), and efi_veto_uninstall().
EFI_GUID efi_graphics_output_protocol_guid |
Graphics output protocol GUID.
Definition at line 188 of file efi_guid.c.
Referenced by efifb_init().
EFI_GUID efi_hii_config_access_protocol_guid |
HII configuration access protocol GUID.
Definition at line 192 of file efi_guid.c.
Referenced by efi_snp_hii_install(), and efi_snp_hii_uninstall().
EFI_GUID efi_hii_font_protocol_guid |
EFI_GUID efi_http_protocol_guid |
HTTP protocol GUID.
Definition at line 200 of file efi_guid.c.
EFI_GUID efi_http_service_binding_protocol_guid |
HTTP service binding protocol GUID.
Definition at line 204 of file efi_guid.c.
EFI_GUID efi_ip4_protocol_guid |
IPv4 protocol GUID.
Definition at line 208 of file efi_guid.c.
EFI_GUID efi_ip4_config_protocol_guid |
IPv4 configuration protocol GUID.
Definition at line 212 of file efi_guid.c.
EFI_GUID efi_ip4_config2_protocol_guid |
IPv4 configuration 2 protocol GUID.
Definition at line 216 of file efi_guid.c.
EFI_GUID efi_ip4_service_binding_protocol_guid |
IPv4 service binding protocol GUID.
Definition at line 220 of file efi_guid.c.
EFI_GUID efi_ip6_protocol_guid |
IPv6 protocol GUID.
Definition at line 224 of file efi_guid.c.
EFI_GUID efi_ip6_config_protocol_guid |
IPv6 configuration protocol GUID.
Definition at line 228 of file efi_guid.c.
EFI_GUID efi_ip6_service_binding_protocol_guid |
IPv6 service binding protocol GUID.
Definition at line 232 of file efi_guid.c.
EFI_GUID efi_load_file_protocol_guid |
Load file protocol GUID.
Definition at line 236 of file efi_guid.c.
Referenced by efi_snp_probe(), and efi_snp_remove().
EFI_GUID efi_load_file2_protocol_guid |
Load file 2 protocol GUID.
Definition at line 240 of file efi_guid.c.
Referenced by efi_file_path_install(), and efi_file_path_uninstall().
EFI_GUID efi_loaded_image_protocol_guid |
Loaded image protocol GUID.
Definition at line 244 of file efi_guid.c.
Referenced by efi_dump_image(), efi_image_exec(), efi_init(), and efi_veto_find().
EFI_GUID efi_loaded_image_device_path_protocol_guid |
Loaded image device path protocol GUID.
Definition at line 248 of file efi_guid.c.
EFI_GUID efi_managed_network_protocol_guid |
Managed network protocol GUID.
Definition at line 252 of file efi_guid.c.
Referenced by mnpnet_start(), and mnpnet_stop().
EFI_GUID efi_managed_network_service_binding_protocol_guid |
Managed network service binding protocol GUID.
Definition at line 256 of file efi_guid.c.
Referenced by mnp_supported(), mnpnet_start(), and mnpnet_stop().
EFI_GUID efi_mtftp4_protocol_guid |
MTFTPv4 protocol GUID.
Definition at line 260 of file efi_guid.c.
EFI_GUID efi_mtftp4_service_binding_protocol_guid |
MTFTPv4 service binding protocol GUID.
Definition at line 264 of file efi_guid.c.
EFI_GUID efi_mtftp6_protocol_guid |
MTFTPv6 protocol GUID.
Definition at line 268 of file efi_guid.c.
EFI_GUID efi_mtftp6_service_binding_protocol_guid |
MTFTPv6 service binding protocol GUID.
Definition at line 272 of file efi_guid.c.
EFI_GUID efi_nii_protocol_guid |
Network interface identifier protocol GUID (old version)
Definition at line 276 of file efi_guid.c.
Referenced by efi_snp_probe(), and efi_snp_remove().
EFI_GUID efi_nii31_protocol_guid |
Network interface identifier protocol GUID (new version)
Definition at line 280 of file efi_guid.c.
Referenced by efi_snp_probe(), efi_snp_remove(), nii_start(), nii_stop(), and nii_supported().
EFI_GUID efi_pci_io_protocol_guid |
PCI I/O protocol GUID.
Definition at line 284 of file efi_guid.c.
Referenced by efi_pci_info(), efipci_close(), efipci_open(), efipci_start(), nii_pci_close(), and nii_pci_open().
EFI_GUID efi_pci_root_bridge_io_protocol_guid |
PCI root bridge I/O protocol GUID.
Definition at line 288 of file efi_guid.c.
Referenced by efipci_discover_any(), efipci_discover_one(), efipci_root_close(), and efipci_root_open().
EFI_GUID efi_pxe_base_code_protocol_guid |
PXE base code protocol GUID.
Definition at line 292 of file efi_guid.c.
Referenced by efi_cachedhcp_record(), efi_pxe_install(), efi_pxe_uninstall(), and efi_shim_inhibit_pxe().
EFI_GUID efi_serial_io_protocol_guid |
Serial I/O protocol GUID.
Definition at line 296 of file efi_guid.c.
EFI_GUID efi_shim_lock_protocol_guid |
Shim lock protocol GUID.
Definition at line 300 of file efi_guid.c.
Referenced by efi_shim_is_sbatlevel(), and efi_shim_unlock().
EFI_GUID efi_simple_file_system_protocol_guid |
Simple file system protocol GUID.
Definition at line 304 of file efi_guid.c.
Referenced by efi_block_root(), efi_block_scan(), efi_file_install(), efi_file_uninstall(), efi_local_open_root(), and efi_local_open_volume().
EFI_GUID efi_simple_network_protocol_guid |
Simple network protocol GUID.
Definition at line 308 of file efi_guid.c.
Referenced by efi_set_autoboot_ll_addr(), efi_snp_probe(), efi_snp_remove(), snp_supported(), snpnet_start(), and snpnet_stop().
EFI_GUID efi_simple_pointer_protocol_guid |
Simple pointer protocol GUID.
Definition at line 312 of file efi_guid.c.
EFI_GUID efi_simple_text_input_protocol_guid |
Simple text input protocol GUID.
Definition at line 316 of file efi_guid.c.
EFI_GUID efi_simple_text_input_ex_protocol_guid |
Simple text input extension protocol GUID.
Definition at line 320 of file efi_guid.c.
Referenced by efi_console_init().
EFI_GUID efi_simple_text_output_protocol_guid |
Simple text output protocol GUID.
Definition at line 324 of file efi_guid.c.
EFI_GUID efi_tcg_protocol_guid |
TCG protocol GUID.
Definition at line 328 of file efi_guid.c.
EFI_GUID efi_tcg2_protocol_guid |
TCG2 protocol GUID.
Definition at line 332 of file efi_guid.c.
EFI_GUID efi_tcp4_protocol_guid |
TCPv4 protocol GUID.
Definition at line 336 of file efi_guid.c.
EFI_GUID efi_tcp4_service_binding_protocol_guid |
TCPv4 service binding protocol GUID.
Definition at line 340 of file efi_guid.c.
EFI_GUID efi_tcp6_protocol_guid |
TCPv6 protocol GUID.
Definition at line 344 of file efi_guid.c.
EFI_GUID efi_tcp6_service_binding_protocol_guid |
TCPv6 service binding protocol GUID.
Definition at line 348 of file efi_guid.c.
EFI_GUID efi_tree_protocol_guid |
TrEE protocol GUID.
Definition at line 352 of file efi_guid.c.
EFI_GUID efi_udp4_protocol_guid |
UDPv4 protocol GUID.
Definition at line 356 of file efi_guid.c.
EFI_GUID efi_udp4_service_binding_protocol_guid |
UDPv4 service binding protocol GUID.
Definition at line 360 of file efi_guid.c.
EFI_GUID efi_udp6_protocol_guid |
UDPv6 protocol GUID.
Definition at line 364 of file efi_guid.c.
EFI_GUID efi_udp6_service_binding_protocol_guid |
UDPv6 service binding protocol GUID.
Definition at line 368 of file efi_guid.c.
EFI_GUID efi_uga_draw_protocol_guid |
UGA draw protocol GUID.
Definition at line 372 of file efi_guid.c.
EFI_GUID efi_unicode_collation_protocol_guid |
Unicode collation protocol GUID.
Definition at line 376 of file efi_guid.c.
EFI_GUID efi_usb_hc_protocol_guid |
USB host controller protocol GUID.
Definition at line 380 of file efi_guid.c.
EFI_GUID efi_usb2_hc_protocol_guid |
USB2 host controller protocol GUID.
Definition at line 384 of file efi_guid.c.
EFI_GUID efi_usb_io_protocol_guid |
USB I/O protocol GUID.
Definition at line 388 of file efi_guid.c.
Referenced by efi_usb_install(), efi_usb_uninstall(), usbio_close(), usbio_open(), usbio_start(), usbio_stop(), and usbio_supported().
EFI_GUID efi_vlan_config_protocol_guid |
VLAN configuration protocol GUID.
Definition at line 392 of file efi_guid.c.
Referenced by efi_snp_probe(), and efi_snp_remove().
EFI_GUID efi_file_info_id |
File information GUID.
Definition at line 395 of file efi_guid.c.
Referenced by efi_file_get_info(), and efi_local_len().
EFI_GUID efi_file_system_info_id |
File system information GUID.
Definition at line 398 of file efi_guid.c.
Referenced by efi_block_label(), efi_file_get_info(), and efi_local_check_volume_name().
EFI_HANDLE efi_image_handle |
Image handle passed to entry point.
Definition at line 34 of file efi_init.c.
Referenced by __stack_chk_fail(), chained_locate(), chained_supported(), efi_block_exec(), efi_block_local(), efi_block_match(), efi_block_root(), efi_block_scan(), efi_cachedhcp_record(), efi_child_add(), efi_child_del(), efi_console_init(), efi_driver_install(), efi_driver_uninstall(), efi_dump_image(), efi_file_install(), efi_file_uninstall(), efi_handle_name(), efi_image_exec(), efi_image_probe(), efi_init(), efi_local_open_root(), efi_locate_device(), efi_service_add(), efi_service_del(), efi_set_autoboot_ll_addr(), efi_shim_inhibit_pxe(), efi_snp_probe(), efi_snp_remove(), efi_veto_find(), efi_veto_uninstall(), efidev_alloc(), efipci_close(), efipci_discover_one(), efipci_open(), efipci_root_close(), efipci_root_open(), mnpnet_start(), mnpnet_stop(), nii_pci_close(), nii_pci_open(), nii_start(), nii_stop(), snpnet_start(), snpnet_stop(), snpnet_supported(), usbio_close(), usbio_open(), usbio_path(), usbio_start(), usbio_stop(), and usbio_supported().
EFI_LOADED_IMAGE_PROTOCOL* efi_loaded_image |
Loaded image protocol for this image.
Definition at line 37 of file efi_init.c.
Referenced by _efi_start(), chained_locate(), efi_autoexec_filesystem(), efi_autoexec_load(), efi_autoexec_network(), efi_init(), efi_init_application(), and efi_local_open_path().
EFI_DEVICE_PATH_PROTOCOL* efi_loaded_image_path |
Device path for the loaded image's device handle.
Definition at line 40 of file efi_init.c.
Referenced by efi_init(), efi_init_application(), efi_local_open_volume(), efi_path_net_probe(), and efi_unload().
EFI_SYSTEM_TABLE* efi_systab |
Referenced by __stack_chk_fail(), chained_locate(), chained_supported(), dbg_efi_openers(), dbg_efi_protocol(), dbg_efi_protocols(), efi_allocate_pages_wrapper(), efi_allocate_pool_wrapper(), efi_block_boot(), efi_block_connect(), efi_block_exec(), efi_block_hook(), efi_block_local(), efi_block_match(), efi_block_root(), efi_block_scan(), efi_block_unhook(), efi_bofm_start(), efi_bofm_supported(), efi_cachedhcp_record(), efi_check_event_wrapper(), efi_child_add(), efi_child_del(), efi_close_event_wrapper(), efi_close_protocol_wrapper(), efi_conin_name(), efi_connect_controller_wrapper(), efi_conout_name(), efi_console_init(), efi_create_event_ex_wrapper(), efi_create_event_wrapper(), efi_currticks(), efi_devpath_text(), efi_disconnect_controller_wrapper(), efi_download_install(), efi_download_uninstall(), efi_driver_connect(), efi_driver_controller_name(), efi_driver_disconnect(), efi_driver_handles(), efi_driver_install(), efi_driver_reconnect(), efi_driver_uninstall(), efi_dump_image(), efi_entropy_disable(), efi_entropy_enable(), efi_entropy_tick(), efi_exit_boot_services_wrapper(), efi_exit_wrapper(), efi_file_install(), efi_file_path_claim(), efi_file_path_install(), efi_file_path_uninstall(), efi_file_uninstall(), efi_find_table(), efi_free_pages_wrapper(), efi_free_pool_wrapper(), efi_get_memory_map_wrapper(), efi_get_next_monotonic_count_wrapper(), efi_get_time(), efi_getchar(), efi_handle_cup(), efi_handle_dectcem_reset(), efi_handle_dectcem_set(), efi_handle_ed(), efi_handle_name(), efi_handle_protocol_wrapper(), efi_handle_sgr(), efi_image_exec(), efi_image_probe(), efi_init(), efi_install_configuration_table_wrapper(), efi_install_multiple_protocol_interfaces_wrapper(), efi_install_protocol_interface_wrapper(), efi_iskey(), efi_load_image_wrapper(), efi_local_open_root(), efi_local_open_volume(), efi_locate_device(), efi_locate_device_path_wrapper(), efi_locate_handle_buffer_wrapper(), efi_locate_handle_wrapper(), efi_locate_protocol_wrapper(), efi_open_protocol_information_wrapper(), efi_open_protocol_wrapper(), efi_poweroff(), efi_protocols_per_handle_wrapper(), efi_putchar(), efi_pxe_install(), efi_pxe_uninstall(), efi_raise_tpl(), efi_raise_tpl_wrapper(), efi_reboot(), efi_register_protocol_notify_wrapper(), efi_reinstall_protocol_interface_wrapper(), efi_restore_tpl(), efi_restore_tpl_wrapper(), efi_service_add(), efi_service_del(), efi_set_autoboot_ll_addr(), efi_set_timer_wrapper(), efi_set_watchdog_timer_wrapper(), efi_shim_get_memory_map(), efi_shim_inhibit_pxe(), efi_shim_install(), efi_shim_uninstall(), efi_shim_unlock(), efi_signal_event_wrapper(), efi_snp_hii_append(), efi_snp_hii_install(), efi_snp_hii_uninstall(), efi_snp_poll(), efi_snp_probe(), efi_snp_remove(), efi_stall_wrapper(), efi_start_image_wrapper(), efi_tick_shutdown(), efi_tick_startup(), efi_udelay(), efi_uninstall_multiple_protocol_interfaces_wrapper(), efi_uninstall_protocol_interface_wrapper(), efi_unload(), efi_unload_image_wrapper(), efi_urealloc(), efi_usb_async_start(), efi_usb_async_stop(), efi_usb_close(), efi_usb_get_string_descriptor(), efi_usb_install(), efi_usb_open(), efi_usb_probe(), efi_usb_uninstall(), efi_veto(), efi_veto_close(), efi_veto_close_handle(), efi_veto_close_protocol(), efi_veto_disconnect(), efi_veto_find(), efi_veto_uninstall(), efi_veto_unload(), efi_vlan_find(), efi_wait_for_event_wrapper(), efi_watchdog_expired(), efi_watchdog_shutdown(), efi_wrap(), efi_wrap_bs(), efidev_alloc(), efifb_draw(), efifb_init(), efifb_select_mode(), efipci_close(), efipci_discover_any(), efipci_discover_one(), efipci_open(), efipci_root_close(), efipci_root_open(), efivars_fetch(), efivars_find(), mnpnet_close(), mnpnet_open(), mnpnet_poll_rx(), mnpnet_start(), mnpnet_stop(), nii_block(), nii_issue_cpb_db(), nii_pci_close(), nii_pci_open(), nii_start(), nii_stop(), snpnet_start(), snpnet_stop(), snpnet_supported(), usbio_close(), usbio_open(), usbio_path(), usbio_start(), usbio_stop(), and usbio_supported().
EFI_TPL efi_internal_tpl |
Internal task priority level.
Definition at line 52 of file efi_init.c.
Referenced by efi_currticks(), efi_entropy_disable(), efi_raise_tpl(), efi_shutdown_hook(), and nii_issue_cpb_db().
EFI_TPL efi_external_tpl |
External task priority level.
Definition at line 55 of file efi_init.c.
Referenced by efi_currticks(), efi_entropy_enable(), efi_raise_tpl(), and efi_restore_tpl().
int efi_shutdown_in_progress |
EFI shutdown is in progress.
Definition at line 58 of file efi_init.c.
Referenced by efi_block_unhook(), efi_cpu_nap(), efi_currticks(), efi_pxe_uninstall(), efi_shutdown_hook(), efi_snp_hii_uninstall(), efi_snp_remove(), efi_usb_uninstall(), mnpnet_close(), mnpnet_poll(), mnpnet_stop(), mnpnet_transmit(), snpnet_close(), snpnet_poll(), snpnet_stop(), snpnet_transmit(), usbio_endpoint_enqueue(), and usbio_endpoint_poll().
unsigned long __stack_chk_guard |
Stack cookie.
Definition at line 64 of file efi_init.c.
Referenced by __stack_chk_fail(), and efi_init_stack_guard().