Copyright (c) 2018-2019, Arm Limited or its affiliates. More...
Go to the source code of this file.
Functions | |
int | pal_spi_read (addr_t addr, uint8_t *data, uint32_t len) |
| |
uint32_t | pal_ipc_framework_version (void) |
| |
uint32_t | pal_ipc_version (uint32_t sid) |
| |
psa_handle_t | pal_ipc_connect (uint32_t sid, uint32_t minor_version) |
| |
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) |
| |
void | pal_ipc_close (psa_handle_t handle) |
| |
int | pal_uart_init_ns (uint32_t uart_base_addr) |
| |
int | pal_print_ns (char *str, uint32_t data) |
| |
int | pal_wd_timer_init_ns (addr_t base_addr, uint32_t time_us, uint32_t timer_tick_us) |
| |
int | pal_wd_timer_enable_ns (addr_t base_addr) |
| |
int | pal_wd_timer_disable_ns (addr_t base_addr) |
| |
int | pal_nvmem_read_ns (addr_t base, uint32_t offset, void *buffer, int size) |
| |
int | pal_nvmem_write_ns (addr_t base, uint32_t offset, void *buffer, int size) |
| |
int32_t | pal_crypto_function (int type, va_list valist) |
| |
uint32_t | pal_its_function (int type, va_list valist) |
| |
uint32_t | pal_ps_function (int type, va_list valist) |
| |
int32_t | pal_attestation_function (int type, va_list valist) |
| |
void | pal_terminate_simulation (void) |
| |
Copyright (c) 2018-2019, Arm Limited or its affiliates.
All rights reserved. SPDX-License-Identifier : Apache-2.0
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file pal_interfaces_ns.h.
int32_t pal_attestation_function | ( | int | type, |
va_list | valist | ||
) |
- | type : function code valist : variable argument list |
int32_t pal_crypto_function | ( | int | type, |
va_list | valist | ||
) |
- | type : function code valist : variable argument list |
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 | ||
) |
This is a wrapper API for the psa_call API. The caller must provide an array of psa_invec_t structures as the input payload.
- | handle: Handle for the connection.
|
void pal_ipc_close | ( | psa_handle_t | handle | ) |
This is a wrapper API for the psa_close API. Sends the PSA_IPC_DISCONNECT message to the Root of Trust Service so it can clean up resources.
- | handle Handle for the connection. |
psa_handle_t pal_ipc_connect | ( | uint32_t | sid, |
uint32_t | minor_version | ||
) |
This is a wrapper API for the psa_connect API.
- | sid : RoT service id
|
uint32_t pal_ipc_framework_version | ( | void | ) |
This is a wrapper API for psa_framework_version API.
- | void |
uint32_t pal_ipc_version | ( | uint32_t | sid | ) |
This is a wrapper API for the psa_version API.
- | sid The Root of Trust Service ID |
uint32_t pal_its_function | ( | int | type, |
va_list | valist | ||
) |
- | type : function code valist : variable argument list |
int pal_nvmem_read_ns | ( | addr_t | base, |
uint32_t | offset, | ||
void * | buffer, | ||
int | size | ||
) |
- | base : Base address of nvmem offset : Offset buffer : Pointer to source address size : Number of bytes |
int pal_nvmem_write_ns | ( | addr_t | base, |
uint32_t | offset, | ||
void * | buffer, | ||
int | size | ||
) |
- | base : Base address of nvmem offset : Offset buffer : Pointer to source address size : Number of bytes |
int pal_print_ns | ( | char * | str, |
uint32_t | data | ||
) |
- | str : Input String
|
uint32_t pal_ps_function | ( | int | type, |
va_list | valist | ||
) |
- | type : function code valist : variable argument list |
int pal_spi_read | ( | addr_t | addr, |
uint8_t * | data, | ||
uint32_t | len | ||
) |
- | addr : address of the peripheral
|
void pal_terminate_simulation | ( | void | ) |
By default, it put cpus into power down mode.
- | void |
int pal_uart_init_ns | ( | uint32_t | uart_base_addr | ) |
- | uart base addr |
int pal_wd_timer_disable_ns | ( | addr_t | base_addr | ) |
- | base_addr : Base address of the watchdog module |
int pal_wd_timer_enable_ns | ( | addr_t | base_addr | ) |
- | base_addr : Base address of the watchdog module |
int pal_wd_timer_init_ns | ( | addr_t | base_addr, |
uint32_t | time_us, | ||
uint32_t | timer_tick_us | ||
) |
- | base_addr : Base address of the watchdog module
|