6 #include <bl_uapp/bl_syscall_public.h>
24 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_DEBUG_PRINT, (
void *)¶m, unused);
37 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_DEBUG_PRINT_EX, (
void *)¶m, unused);
46 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_GET_BOOT_MODE, (
void *)¶m, retval);
56 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_DELAY_IN_MICRO_SECONDS, (
void *)¶m, unused);
65 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_GET_SPI_INFO, (
void *)¶m, retval);
77 .pptr_io_device_addr_axi = io_device_axi_addr,
80 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MAP_FCH_IO_DEVICE, (
void *)¶m, retval);
89 .ptr_io_device_addr_axi = io_device_axi_addr,
92 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_UNMAP_FCH_IO_DEVICE, (
void *)¶m, retval);
97 uint32_t size,
void **spi_rom_axi_addr)
105 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MAP_SPIROM_DEVICE, (
void *)¶m, retval);
115 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_UNMAP_SPIROM_DEVICE, (
void *)¶m, retval);
126 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_UPDATE_PSP_BIOS_DIR, (
void *)¶m, retval);
137 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_COPY_DATA_FROM_UAPP, (
void *)¶m, retval);
143 unsigned int retval = 0;
146 .ptr_counter_value = counter_value,
149 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_READ_TIMER_VAL, (
void *)¶m, retval);
155 unsigned int retval = 0;
160 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_RESET_SYSTEM, (
void *)¶m, retval);
171 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_SHA, (
void *)¶m, retval);
181 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_MODEXP, (
void *)¶m, retval);
193 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_CCP_DMA, (
void *)¶m, retval);
203 SVC_CALL2(SVC_VERSTAGE_CMD, CMD_SET_PLATFORM_BOOT_MODE, (
void *)¶m, retval);
#define assert(statement)
void svc_delay_in_usec(uint32_t delay)
uint32_t svc_ccp_dma(uint32_t spi_rom_offset, void *dest, uint32_t size)
uint32_t svc_crypto_sha(struct sha_generic_data *sha_op, enum sha_operation_mode sha_mode)
uint32_t svc_get_spi_rom_info(struct spirom_info *spi_rom_info)
uint32_t svc_modexp(struct mod_exp_params *mod_exp_param)
uint32_t svc_read_timer_val(enum psp_timer_type type, uint64_t *counter_value)
uint32_t svc_update_psp_bios_dir(uint32_t *psp_dir_offset, uint32_t *bios_dir_offset)
uint32_t svc_set_platform_boot_mode(enum chrome_platform_boot_mode boot_mode)
uint32_t svc_unmap_spi_rom(void *spi_rom_addr)
uint32_t svc_reset_system(enum reset_type reset_type)
void svc_debug_print(const char *string)
uint32_t svc_map_fch_dev(enum fch_io_device io_device, uint32_t arg1, uint32_t arg2, void **io_device_axi_addr)
void svc_debug_print_ex(uint32_t dword0, uint32_t dword1, uint32_t dword2, uint32_t dword3)
uint32_t svc_unmap_fch_dev(enum fch_io_device io_device, void *io_device_axi_addr)
void svc_exit(uint32_t status)
uint32_t svc_get_boot_mode(uint32_t *boot_mode)
uint32_t svc_map_spi_rom(void *spi_rom_addr, uint32_t size, void **spi_rom_axi_addr)
uint32_t svc_save_uapp_data(void *address, uint32_t size)
#define SVC_CALL2(SVC_ID, R0, R1, Ret)
#define SVC_CALL0(SVC_ID, Ret)
void delay(unsigned int secs)
unsigned long long uint64_t
size_t strlen(const char *src)
uint32_t debug_buffer_len
unsigned int * ptr_boot_mode
enum fch_io_device io_device
void ** ppspirom_addr_axi
struct mod_exp_params * ptr_modexp
unsigned int * ptr_psp_dir_addr
enum psp_timer_type timer_type
enum reset_type reset_type
struct sha_generic_data * ptr_sha_op
enum sha_operation_mode sha_mode
struct spirom_info * ptr_spirom_info
enum fch_io_device io_device
void * ptr_spirom_addr_axi
static struct sha_generic_data sha_op