coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
svc.c File Reference
#include "svc.h"
#include <assert.h>
#include <bl_uapp/bl_syscall_public.h>
#include <psp_verstage.h>
#include <stddef.h>
Include dependency graph for svc.c:

Go to the source code of this file.

Functions

void svc_exit (uint32_t status)
 
void svc_debug_print (const char *string)
 
void svc_debug_print_ex (uint32_t dword0, uint32_t dword1, uint32_t dword2, uint32_t dword3)
 
uint32_t svc_get_boot_mode (uint32_t *boot_mode)
 
void svc_delay_in_usec (uint32_t delay)
 
uint32_t svc_get_spi_rom_info (struct spirom_info *spi_rom_info)
 
uint32_t svc_map_fch_dev (enum fch_io_device io_device, uint32_t arg1, uint32_t arg2, void **io_device_axi_addr)
 
uint32_t svc_unmap_fch_dev (enum fch_io_device io_device, void *io_device_axi_addr)
 
uint32_t svc_map_spi_rom (void *spi_rom_addr, uint32_t size, void **spi_rom_axi_addr)
 
uint32_t svc_unmap_spi_rom (void *spi_rom_addr)
 
uint32_t svc_update_psp_bios_dir (uint32_t *psp_dir_offset, uint32_t *bios_dir_offset)
 
uint32_t svc_save_uapp_data (void *address, uint32_t size)
 
uint32_t svc_read_timer_val (enum psp_timer_type type, uint64_t *counter_value)
 
uint32_t svc_reset_system (enum reset_type reset_type)
 
uint32_t svc_crypto_sha (struct sha_generic_data *sha_op, enum sha_operation_mode sha_mode)
 
uint32_t svc_modexp (struct mod_exp_params *mod_exp_param)
 
uint32_t svc_ccp_dma (uint32_t spi_rom_offset, void *dest, uint32_t size)
 
uint32_t svc_set_platform_boot_mode (enum chrome_platform_boot_mode boot_mode)
 
uint32_t svc_write_postcode (uint32_t postcode)
 

Function Documentation

◆ svc_ccp_dma()

uint32_t svc_ccp_dma ( uint32_t  spi_rom_offset,
void dest,
uint32_t  size 
)

Definition at line 130 of file svc.c.

References SVC_CALL3.

Referenced by boot_dev_dma_readat().

Here is the caller graph for this function:

◆ svc_crypto_sha()

uint32_t svc_crypto_sha ( struct sha_generic_data *  sha_op,
enum sha_operation_mode  sha_mode 
)

Definition at line 116 of file svc.c.

References sha_op, and SVC_CALL2.

Referenced by vb2ex_hwcrypto_digest_extend().

Here is the caller graph for this function:

◆ svc_debug_print()

void svc_debug_print ( const char *  string)

Definition at line 16 of file svc.c.

References SVC_CALL1.

Referenced by get_uart_base(), Main(), reboot_into_recovery(), and vprintk().

Here is the caller graph for this function:

◆ svc_debug_print_ex()

void svc_debug_print_ex ( uint32_t  dword0,
uint32_t  dword1,
uint32_t  dword2,
uint32_t  dword3 
)

Definition at line 22 of file svc.c.

References SVC_CALL4.

◆ svc_delay_in_usec()

void svc_delay_in_usec ( uint32_t  delay)

Definition at line 36 of file svc.c.

References delay(), and SVC_CALL1.

Referenced by udelay().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ svc_exit()

void svc_exit ( uint32_t  status)

Definition at line 10 of file svc.c.

References SVC_CALL0.

Referenced by Main().

Here is the caller graph for this function:

◆ svc_get_boot_mode()

uint32_t svc_get_boot_mode ( uint32_t boot_mode)

Definition at line 29 of file svc.c.

References SVC_CALL1.

Referenced by Main(), and platform_is_resuming().

Here is the caller graph for this function:

◆ svc_get_spi_rom_info()

uint32_t svc_get_spi_rom_info ( struct spirom_info *  spi_rom_info)

Definition at line 42 of file svc.c.

References SVC_CALL1.

Referenced by map_spi_rom().

Here is the caller graph for this function:

◆ svc_map_fch_dev()

uint32_t svc_map_fch_dev ( enum fch_io_device  io_device,
uint32_t  arg1,
uint32_t  arg2,
void **  io_device_axi_addr 
)

Definition at line 49 of file svc.c.

References assert, and SVC_CALL4.

Referenced by get_uart_base(), and map_fch_devices().

Here is the caller graph for this function:

◆ svc_map_spi_rom()

uint32_t svc_map_spi_rom ( void spi_rom_addr,
uint32_t  size,
void **  spi_rom_axi_addr 
)

Definition at line 68 of file svc.c.

References SVC_CALL3.

Referenced by map_spi_rom().

Here is the caller graph for this function:

◆ svc_modexp()

uint32_t svc_modexp ( struct mod_exp_params *  mod_exp_param)

Definition at line 123 of file svc.c.

References SVC_CALL1.

Referenced by vb2ex_hwcrypto_modexp().

Here is the caller graph for this function:

◆ svc_read_timer_val()

uint32_t svc_read_timer_val ( enum psp_timer_type  type,
uint64_t counter_value 
)

Definition at line 100 of file svc.c.

References assert, SVC_CALL2, and type.

Referenced by timer_monotonic_get().

Here is the caller graph for this function:

◆ svc_reset_system()

uint32_t svc_reset_system ( enum reset_type reset_type  )

Definition at line 108 of file svc.c.

References assert, and SVC_CALL1.

Referenced by do_board_reset().

Here is the caller graph for this function:

◆ svc_save_uapp_data()

uint32_t svc_save_uapp_data ( void address,
uint32_t  size 
)

Definition at line 93 of file svc.c.

References address, and SVC_CALL2.

Referenced by save_uapp_data().

Here is the caller graph for this function:

◆ svc_set_platform_boot_mode()

uint32_t svc_set_platform_boot_mode ( enum chrome_platform_boot_mode  boot_mode)

Definition at line 137 of file svc.c.

References SVC_CALL1.

Referenced by platform_report_mode().

Here is the caller graph for this function:

◆ svc_unmap_fch_dev()

uint32_t svc_unmap_fch_dev ( enum fch_io_device  io_device,
void io_device_axi_addr 
)

Definition at line 59 of file svc.c.

References assert, and SVC_CALL2.

Referenced by unmap_fch_devices().

Here is the caller graph for this function:

◆ svc_unmap_spi_rom()

uint32_t svc_unmap_spi_rom ( void spi_rom_addr)

Definition at line 77 of file svc.c.

References SVC_CALL1.

Referenced by Main().

Here is the caller graph for this function:

◆ svc_update_psp_bios_dir()

uint32_t svc_update_psp_bios_dir ( uint32_t psp_dir_offset,
uint32_t bios_dir_offset 
)

Definition at line 84 of file svc.c.

References SVC_CALL2.

Referenced by update_psp_bios_dir().

Here is the caller graph for this function:

◆ svc_write_postcode()

uint32_t svc_write_postcode ( uint32_t  postcode)

Definition at line 144 of file svc.c.

References SVC_CALL1.

Referenced by arch_post_code(), Main(), and reboot_into_recovery().

Here is the caller graph for this function: