17 #ifndef _PAL_INTERFACES_NS_H_ 18 #define _PAL_INTERFACES_NS_H_ 31 int pal_spi_read(addr_t addr, uint8_t *data, uint32_t len);
uint32_t pal_ps_function(int type, va_list valist)
This API will call the requested protected storage function
void pal_terminate_simulation(void)
Terminates the simulation at the end of all tests completion.
int32_t pal_attestation_function(int type, va_list valist)
This API will call the requested attestation function
int32_t pal_crypto_function(int type, va_list valist)
This API will call the requested crypto function
int pal_wd_timer_enable_ns(addr_t base_addr)
Enables a hardware watchdog timer
uint32_t pal_ipc_version(uint32_t sid)
Retrieve the minor version of a Root of Trust Service by its SID.
Copyright (c) 2018-2019, Arm Limited or its affiliates.
uint32_t pal_its_function(int type, va_list valist)
This API will call the requested internal trusted storage function
int pal_wd_timer_init_ns(addr_t base_addr, uint32_t time_us, uint32_t timer_tick_us)
Initializes an hardware watchdog timer
int pal_wd_timer_disable_ns(addr_t base_addr)
Disables a hardware watchdog timer
psa_handle_t pal_ipc_connect(uint32_t sid, uint32_t minor_version)
Connect to given sid.
void pal_ipc_close(psa_handle_t handle)
Close a connection to a Root of Trust Service.
int pal_print_ns(char *str, uint32_t data)
This function parses the input string and writes bytes into UART TX FIFO
int pal_nvmem_write_ns(addr_t base, uint32_t offset, void *buffer, int size)
Writes into given non-volatile address.
int pal_uart_init_ns(uint32_t uart_base_addr)
This function initializes the UART
A writable output memory region provided to an RoT Service.
int pal_nvmem_read_ns(addr_t base, uint32_t offset, void *buffer, int size)
Reads from given non-volatile address.
A read-only input memory region provided to an RoT Service.
psa_status_t pal_ipc_call(psa_handle_t handle, const psa_invec *in_vec, size_t in_len, psa_outvec *out_vec, size_t out_len)
Call a connected Root of Trust Service.
Copyright (c) 2018-2019, Arm Limited or its affiliates.
int32_t psa_status_t
Function return status.
uint32_t pal_ipc_framework_version(void)
Retrieve the version of the PSA Framework API that is implemented.
int pal_spi_read(addr_t addr, uint8_t *data, uint32_t len)
This function will read peripherals using SPI commands