mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
efi_loader: consistently use efi_uintn_t in boot services
Consistenly use efi_uintn_t wherever the UEFI spec uses UINTN in boot services interfaces. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
committed by
Alexander Graf
parent
152cade326
commit
f5a2a93892
@@ -51,13 +51,15 @@ struct efi_boot_services {
|
||||
efi_status_t (EFIAPI *raise_tpl)(efi_uintn_t new_tpl);
|
||||
void (EFIAPI *restore_tpl)(efi_uintn_t old_tpl);
|
||||
|
||||
efi_status_t (EFIAPI *allocate_pages)(int, int, unsigned long,
|
||||
efi_status_t (EFIAPI *allocate_pages)(int, int, efi_uintn_t,
|
||||
efi_physical_addr_t *);
|
||||
efi_status_t (EFIAPI *free_pages)(efi_physical_addr_t, unsigned long);
|
||||
efi_status_t (EFIAPI *get_memory_map)(unsigned long *memory_map_size,
|
||||
struct efi_mem_desc *desc, unsigned long *key,
|
||||
unsigned long *desc_size, u32 *desc_version);
|
||||
efi_status_t (EFIAPI *allocate_pool)(int, unsigned long, void **);
|
||||
efi_status_t (EFIAPI *free_pages)(efi_physical_addr_t, efi_uintn_t);
|
||||
efi_status_t (EFIAPI *get_memory_map)(efi_uintn_t *memory_map_size,
|
||||
struct efi_mem_desc *desc,
|
||||
efi_uintn_t *key,
|
||||
efi_uintn_t *desc_size,
|
||||
u32 *desc_version);
|
||||
efi_status_t (EFIAPI *allocate_pool)(int, efi_uintn_t, void **);
|
||||
efi_status_t (EFIAPI *free_pool)(void *);
|
||||
|
||||
efi_status_t (EFIAPI *create_event)(uint32_t type,
|
||||
@@ -69,8 +71,9 @@ struct efi_boot_services {
|
||||
efi_status_t (EFIAPI *set_timer)(struct efi_event *event,
|
||||
enum efi_timer_delay type,
|
||||
uint64_t trigger_time);
|
||||
efi_status_t (EFIAPI *wait_for_event)(unsigned long number_of_events,
|
||||
struct efi_event **event, size_t *index);
|
||||
efi_status_t (EFIAPI *wait_for_event)(efi_uintn_t number_of_events,
|
||||
struct efi_event **event,
|
||||
efi_uintn_t *index);
|
||||
efi_status_t (EFIAPI *signal_event)(struct efi_event *event);
|
||||
efi_status_t (EFIAPI *close_event)(struct efi_event *event);
|
||||
efi_status_t (EFIAPI *check_event)(struct efi_event *event);
|
||||
@@ -93,7 +96,7 @@ struct efi_boot_services {
|
||||
efi_status_t (EFIAPI *locate_handle)(
|
||||
enum efi_locate_search_type search_type,
|
||||
const efi_guid_t *protocol, void *search_key,
|
||||
unsigned long *buffer_size, efi_handle_t *buffer);
|
||||
efi_uintn_t *buffer_size, efi_handle_t *buffer);
|
||||
efi_status_t (EFIAPI *locate_device_path)(const efi_guid_t *protocol,
|
||||
struct efi_device_path **device_path,
|
||||
efi_handle_t *device);
|
||||
@@ -140,14 +143,14 @@ struct efi_boot_services {
|
||||
efi_status_t(EFIAPI *open_protocol_information)(efi_handle_t handle,
|
||||
const efi_guid_t *protocol,
|
||||
struct efi_open_protocol_info_entry **entry_buffer,
|
||||
unsigned long *entry_count);
|
||||
efi_uintn_t *entry_count);
|
||||
efi_status_t (EFIAPI *protocols_per_handle)(efi_handle_t handle,
|
||||
efi_guid_t ***protocol_buffer,
|
||||
unsigned long *protocols_buffer_count);
|
||||
efi_uintn_t *protocols_buffer_count);
|
||||
efi_status_t (EFIAPI *locate_handle_buffer) (
|
||||
enum efi_locate_search_type search_type,
|
||||
const efi_guid_t *protocol, void *search_key,
|
||||
unsigned long *no_handles, efi_handle_t **buffer);
|
||||
efi_uintn_t *no_handles, efi_handle_t **buffer);
|
||||
efi_status_t (EFIAPI *locate_protocol)(const efi_guid_t *protocol,
|
||||
void *registration, void **protocol_interface);
|
||||
efi_status_t (EFIAPI *install_multiple_protocol_interfaces)(
|
||||
@@ -248,7 +251,7 @@ struct efi_system_table {
|
||||
struct efi_simple_text_output_protocol *std_err;
|
||||
struct efi_runtime_services *runtime;
|
||||
struct efi_boot_services *boottime;
|
||||
unsigned long nr_tables;
|
||||
efi_uintn_t nr_tables;
|
||||
struct efi_configuration_table *tables;
|
||||
};
|
||||
|
||||
|
||||
@@ -215,20 +215,20 @@ struct efi_file_handle *efi_file_from_path(struct efi_device_path *fp);
|
||||
/* Generic EFI memory allocator, call this to get memory */
|
||||
void *efi_alloc(uint64_t len, int memory_type);
|
||||
/* More specific EFI memory allocator, called by EFI payloads */
|
||||
efi_status_t efi_allocate_pages(int type, int memory_type, unsigned long pages,
|
||||
efi_status_t efi_allocate_pages(int type, int memory_type, efi_uintn_t pages,
|
||||
uint64_t *memory);
|
||||
/* EFI memory free function. */
|
||||
efi_status_t efi_free_pages(uint64_t memory, unsigned long pages);
|
||||
efi_status_t efi_free_pages(uint64_t memory, efi_uintn_t pages);
|
||||
/* EFI memory allocator for small allocations */
|
||||
efi_status_t efi_allocate_pool(int pool_type, unsigned long size,
|
||||
efi_status_t efi_allocate_pool(int pool_type, efi_uintn_t size,
|
||||
void **buffer);
|
||||
/* EFI pool memory free function. */
|
||||
efi_status_t efi_free_pool(void *buffer);
|
||||
/* Returns the EFI memory map */
|
||||
efi_status_t efi_get_memory_map(unsigned long *memory_map_size,
|
||||
efi_status_t efi_get_memory_map(efi_uintn_t *memory_map_size,
|
||||
struct efi_mem_desc *memory_map,
|
||||
unsigned long *map_key,
|
||||
unsigned long *descriptor_size,
|
||||
efi_uintn_t *map_key,
|
||||
efi_uintn_t *descriptor_size,
|
||||
uint32_t *descriptor_version);
|
||||
/* Adds a range into the EFI memory map */
|
||||
uint64_t efi_add_memory_map(uint64_t start, uint64_t pages, int memory_type,
|
||||
|
||||
Reference in New Issue
Block a user