const EFI_SYSTEM_TABLE_SIGNATURE
pub const EFI_SYSTEM_TABLE_SIGNATURE = 0x5453595320494249u64Purpose
Constant EFI_SYSTEM_TABLE_SIGNATURE, defining protocol or algorithm parameters.
#core/uefiStandard library package `#core/uefi`.
const EFI_SYSTEM_TABLE_SIGNATUREpub const EFI_SYSTEM_TABLE_SIGNATURE = 0x5453595320494249u64Constant EFI_SYSTEM_TABLE_SIGNATURE, defining protocol or algorithm parameters.
const EFI_RESET_COLDpub const EFI_RESET_COLD = 0Constant EFI_RESET_COLD, defining protocol or algorithm parameters.
const EFI_RESET_WARMpub const EFI_RESET_WARM = 1Constant EFI_RESET_WARM, defining protocol or algorithm parameters.
const EFI_RESET_SHUTDOWNpub const EFI_RESET_SHUTDOWN = 2Constant EFI_RESET_SHUTDOWN, defining protocol or algorithm parameters.
const EFI_LOADER_DATApub const EFI_LOADER_DATA = 2Constant EFI_LOADER_DATA, defining protocol or algorithm parameters.
const EFI_ALLOCATE_ANY_PAGESpub const EFI_ALLOCATE_ANY_PAGES = 0Constant EFI_ALLOCATE_ANY_PAGES, defining protocol or algorithm parameters.
const EFI_ALLOCATE_MAX_ADDRESSpub const EFI_ALLOCATE_MAX_ADDRESS = 1Constant EFI_ALLOCATE_MAX_ADDRESS, defining protocol or algorithm parameters.
const EFI_ALLOCATE_ADDRESSpub const EFI_ALLOCATE_ADDRESS = 2Constant EFI_ALLOCATE_ADDRESS, defining protocol or algorithm parameters.
const EFI_FILE_MODE_READpub const EFI_FILE_MODE_READ = 1Constant EFI_FILE_MODE_READ, defining protocol or algorithm parameters.
struct EfiGuidpub struct EfiGuid {
pub data1 u32
pub data2 u16
pub data3 u16
pub data4 [8]u8
}Structure encapsulating data1, data2, data3, data4.
data1 u32data2 u16data3 u16data4 [8]u8struct EfiConfigurationTablepub struct EfiConfigurationTable {
pub vendor_guid EfiGuid
pub vendor_table u64
}Structure encapsulating vendor_guid, vendor_table.
vendor_guid EfiGuidvendor_table u64struct EfiTableHeaderpub struct EfiTableHeader {
pub signature u64
pub revision u32
pub header_size u32
pub crc32 u32
pub reserved u32
}Uefi Metadata header descriptor structure.
signature u64revision u32header_size u32crc32 u32reserved u32struct EfiSimpleTextOutputProtocolpub struct EfiSimpleTextOutputProtocol {
pub reset u64
pub output_string u64
pub test_string u64
pub query_mode u64
pub set_mode u64
pub set_attribute u64
pub clear_screen u64
pub set_cursor_position u64
pub enable_cursor u64
pub mode u64
}Structure encapsulating reset, output_string, test_string, query_mode, set_mode.
reset u64output_string u64test_string u64query_mode u64set_mode u64set_attribute u64clear_screen u64set_cursor_position u64enable_cursor u64mode u64struct EfiGopModeInfopub struct EfiGopModeInfo {
pub version u32
pub horizontal_resolution u32
pub vertical_resolution u32
pub pixel_format u32
pub red_mask u32
pub green_mask u32
pub blue_mask u32
pub reserved_mask u32
pub pixels_per_scan_line u32
}Structure encapsulating version, horizontal_resolution, vertical_resolution, pixel_format, red_mask.
version u32horizontal_resolution u32vertical_resolution u32pixel_format u32red_mask u32green_mask u32blue_mask u32reserved_mask u32pixels_per_scan_line u32struct EfiGopModepub struct EfiGopMode {
pub max_mode u32
pub mode u32
pub info *raw EfiGopModeInfo
pub size_of_info u64
pub frame_buffer_base u64
pub frame_buffer_size u64
}Structure encapsulating max_mode, mode, info, size_of_info, frame_buffer_base.
max_mode u32mode u32info *raw EfiGopModeInfosize_of_info u64frame_buffer_base u64frame_buffer_size u64struct EfiGraphicsOutputProtocolpub struct EfiGraphicsOutputProtocol {
pub query_mode u64
pub set_mode u64
pub blt u64
pub mode *raw EfiGopMode
}Structure encapsulating query_mode, set_mode, blt, mode.
query_mode u64set_mode u64blt u64mode *raw EfiGopModestruct EfiRuntimeServicespub struct EfiRuntimeServices {
pub hdr EfiTableHeader
pub get_time u64
pub set_time u64
pub get_wakeup_time u64
pub set_wakeup_time u64
pub set_virtual_address_map u64
pub convert_pointer u64
pub get_variable u64
pub get_next_variable_name u64
pub set_variable u64
pub get_next_high_mono_count u64
pub reset_system u64
}Structure encapsulating hdr, get_time, set_time, get_wakeup_time, set_wakeup_time.
hdr EfiTableHeaderget_time u64set_time u64get_wakeup_time u64set_wakeup_time u64set_virtual_address_map u64convert_pointer u64get_variable u64get_next_variable_name u64set_variable u64get_next_high_mono_count u64reset_system u64struct EfiBootServicespub struct EfiBootServices {
pub hdr EfiTableHeader
pub raise_tpl u64
pub restore_tpl u64
pub allocate_pages u64
pub free_pages u64
pub get_memory_map u64
pub allocate_pool u64
pub free_pool u64
pub create_event u64
pub set_timer u64
pub wait_for_event u64
pub signal_event u64
pub close_event u64
pub check_event u64
pub install_protocol_interface u64
pub reinstall_protocol_interface u64
pub uninstall_protocol_interface u64
pub handle_protocol u64
pub reserved u64
pub register_protocol_notify u64
pub locate_handle u64
pub locate_device_path u64
pub install_configuration_table u64
pub load_image u64
pub start_image u64
pub exit u64
pub unload_image u64
pub exit_boot_services u64
pub get_next_monotonic_count u64
pub stall u64
pub set_watchdog_timer u64
pub connect_controller u64
pub disconnect_controller u64
pub open_protocol u64
pub close_protocol u64
pub open_protocol_information u64
pub protocols_per_handle u64
pub locate_handle_buffer u64
pub locate_protocol u64
}Structure encapsulating hdr, raise_tpl, restore_tpl, allocate_pages, free_pages.
hdr EfiTableHeaderraise_tpl u64restore_tpl u64allocate_pages u64free_pages u64get_memory_map u64allocate_pool u64free_pool u64create_event u64set_timer u64wait_for_event u64signal_event u64close_event u64check_event u64install_protocol_interface u64reinstall_protocol_interface u64uninstall_protocol_interface u64handle_protocol u64reserved u64register_protocol_notify u64locate_handle u64locate_device_path u64install_configuration_table u64load_image u64start_image u64exit u64unload_image u64exit_boot_services u64get_next_monotonic_count u64stall u64set_watchdog_timer u64connect_controller u64disconnect_controller u64open_protocol u64close_protocol u64open_protocol_information u64protocols_per_handle u64locate_handle_buffer u64locate_protocol u64struct EfiSystemTablepub struct EfiSystemTable {
pub hdr EfiTableHeader
pub firmware_vendor u64
pub firmware_revision u32
pub _pad_fw u32
pub console_in_handle u64
pub con_in u64
pub console_out_handle u64
pub con_out *raw EfiSimpleTextOutputProtocol
pub standard_error_handle u64
pub std_err u64
pub runtime_services *raw EfiRuntimeServices
pub boot_services *raw EfiBootServices
pub number_of_table_entries u64
pub configuration_table u64
}Structure encapsulating hdr, firmware_vendor, firmware_revision, _pad_fw, console_in_handle.
hdr EfiTableHeaderfirmware_vendor u64firmware_revision u32_pad_fw u32console_in_handle u64con_in u64console_out_handle u64con_out *raw EfiSimpleTextOutputProtocolstandard_error_handle u64std_err u64runtime_services *raw EfiRuntimeServicesboot_services *raw EfiBootServicesnumber_of_table_entries u64configuration_table u64struct EfiMemoryDescriptorpub struct EfiMemoryDescriptor {
pub mem_type u32
pub pad u32
pub physical_start u64
pub virtual_start u64
pub number_of_pages u64
pub attribute u64
}Structure encapsulating mem_type, pad, physical_start, virtual_start, number_of_pages.
mem_type u32pad u32physical_start u64virtual_start u64number_of_pages u64attribute u64struct EfiLoadedImageProtocolpub struct EfiLoadedImageProtocol {
pub revision u32
pub pad0 u32
pub parent_handle u64
pub system_table u64
pub device_handle u64
pub file_path u64
pub reserved u64
pub load_options_size u32
pub pad1 u32
pub load_options u64
pub image_base u64
pub image_size u64
pub image_code_type u32
pub image_data_type u32
pub unload u64
}Structure encapsulating revision, pad0, parent_handle, system_table, device_handle.
revision u32pad0 u32parent_handle u64system_table u64device_handle u64file_path u64reserved u64load_options_size u32pad1 u32load_options u64image_base u64image_size u64image_code_type u32image_data_type u32unload u64struct EfiSimpleFileSystemProtocolpub struct EfiSimpleFileSystemProtocol {
pub revision u64
pub open_volume u64
}Structure encapsulating revision, open_volume.
revision u64open_volume u64struct EfiFileProtocolpub struct EfiFileProtocol {
pub revision u64
pub open u64
pub close u64
pub delete u64
pub read u64
pub write u64
pub get_position u64
pub set_position u64
pub get_info u64
pub set_info u64
pub flush u64
}Structure encapsulating revision, open, close, delete, read.
revision u64open u64close u64delete u64read u64write u64get_position u64set_position u64get_info u64set_info u64flush u64acpi_20_guidpub fn acpi_20_guid() EfiGuidAcpi 20 guid.
No arguments are required.
EfiGuid — a value of this type
acpi_10_guidpub fn acpi_10_guid() EfiGuidAcpi 10 guid.
No arguments are required.
EfiGuid — a value of this type
gop_guidpub fn gop_guid() EfiGuidGop guid.
No arguments are required.
EfiGuid — a value of this type
loaded_image_guidpub fn loaded_image_guid() EfiGuidLoaded image guid.
No arguments are required.
EfiGuid — a value of this type
simple_fs_guidpub fn simple_fs_guid() EfiGuidSimple fs guid.
No arguments are required.
EfiGuid — a value of this type
guid_eqpub fn guid_eq(a *raw EfiGuid, b *raw EfiGuid) boolGuid eq.
a *raw EfiGuidb *raw EfiGuidbool — true or false
image_handlepub fn image_handle() u64Image handle.
No arguments are required.
u64 — a value of this type
system_tablepub fn system_table() *raw EfiSystemTableSystem table.
No arguments are required.
*raw EfiSystemTable — a value of this type
con_out_clearpub fn con_out_clear(st *raw EfiSystemTable) u64Con out clear.
st *raw EfiSystemTableu64 — a value of this type
con_out_putspub fn con_out_puts(st *raw EfiSystemTable, s string) u64Con out puts.
st *raw EfiSystemTables stringu64 — a value of this type
con_out_puts_refpub fn con_out_puts_ref(st *raw EfiSystemTable, s &string) u64Con out puts ref.
st *raw EfiSystemTables &stringu64 — a value of this type
con_out_put_u64pub fn con_out_put_u64(st *raw EfiSystemTable, v u64)Con out put u64.
st *raw EfiSystemTablev u64This call does not return a value.
con_out_put_hexpub fn con_out_put_hex(st *raw EfiSystemTable, v u64)Con out put hex.
st *raw EfiSystemTablev u64This call does not return a value.
find_config_tablepub fn find_config_table(st *raw EfiSystemTable, target_guid *raw EfiGuid) u64Find config table.
st *raw EfiSystemTabletarget_guid *raw EfiGuidu64 — a value of this type
find_acpi_rsdppub fn find_acpi_rsdp(st *raw EfiSystemTable) u64Find acpi rsdp.
st *raw EfiSystemTableu64 — a value of this type
get_memory_mappub fn get_memory_map(st *raw EfiSystemTable, map_size *raw u64, buf *raw u8, map_key *raw u64, desc_size *raw u64, desc_ver *raw u32) u64Read memory map.
st *raw EfiSystemTablemap_size *raw u64buf *raw u8map_key *raw u64desc_size *raw u64desc_ver *raw u32u64 — a value of this type
allocate_poolpub fn allocate_pool(st *raw EfiSystemTable, pool_type u32, size u64, out_buf *raw u64) u64Allocate pool.
st *raw EfiSystemTablepool_type u32size u64out_buf *raw u64u64 — a value of this type
free_poolpub fn free_pool(st *raw EfiSystemTable, buf u64) u64Free pool.
st *raw EfiSystemTablebuf u64u64 — a value of this type
allocate_pagespub fn allocate_pages(st *raw EfiSystemTable, alloc_type u32, mem_type u32, pages u64, addr_io *raw u64) u64Allocate pages.
st *raw EfiSystemTablealloc_type u32mem_type u32pages u64addr_io *raw u64u64 — a value of this type
free_pagespub fn free_pages(st *raw EfiSystemTable, addr u64, pages u64) u64Free pages.
st *raw EfiSystemTableaddr u64pages u64u64 — a value of this type
set_watchdog_timerpub fn set_watchdog_timer(st *raw EfiSystemTable, timeout u64) u64Set watchdog timer.
st *raw EfiSystemTabletimeout u64u64 — a value of this type
handle_protocolpub fn handle_protocol(st *raw EfiSystemTable, handle u64, guid *raw EfiGuid, out_iface *raw u64) u64Handle protocol.
st *raw EfiSystemTablehandle u64guid *raw EfiGuidout_iface *raw u64u64 — a value of this type
open_root_volumepub fn open_root_volume(st *raw EfiSystemTable, img_handle u64, out_root *raw *raw EfiFileProtocol) u64Open root volume.
st *raw EfiSystemTableimg_handle u64out_root *raw *raw EfiFileProtocolu64 — a value of this type
file_openpub fn file_open(dir *raw EfiFileProtocol, name_ascii string, out_file *raw *raw EfiFileProtocol) u64File open.
dir *raw EfiFileProtocolname_ascii stringout_file *raw *raw EfiFileProtocolu64 — a value of this type
file_readpub fn file_read(file *raw EfiFileProtocol, buf *raw u8, size_io *raw u64) u64File read.
file *raw EfiFileProtocolbuf *raw u8size_io *raw u64u64 — a value of this type
file_closepub fn file_close(file *raw EfiFileProtocol) u64File close.
file *raw EfiFileProtocolu64 — a value of this type
locate_protocolpub fn locate_protocol(st *raw EfiSystemTable, guid *raw EfiGuid, out_iface *raw u64) u64Locate protocol.
st *raw EfiSystemTableguid *raw EfiGuidout_iface *raw u64u64 — a value of this type
locate_goppub fn locate_gop(st *raw EfiSystemTable) *raw EfiGraphicsOutputProtocolLocate gop.
st *raw EfiSystemTable*raw EfiGraphicsOutputProtocol — a value of this type
exit_boot_servicespub fn exit_boot_services(st *raw EfiSystemTable, img u64, map_key u64) u64Exit boot services.
st *raw EfiSystemTableimg u64map_key u64u64 — a value of this type
stallpub fn stall(st *raw EfiSystemTable, microseconds u64) u64Execute stall.
st *raw EfiSystemTablemicroseconds u64u64 — a value of this type
shutdownpub fn shutdown(st *raw EfiSystemTable)Execute shutdown.
st *raw EfiSystemTableThis call does not return a value.