SOC_PROXY Device Interface Functions More...
#include <stdbool.h>#include <stdint.h>#include "sw/device/lib/base/macros.h"#include "sw/device/lib/base/mmio.h"#include "sw/device/lib/dif/dif_base.h"#include "hw/top/dt/dt_soc_proxy.h"Go to the source code of this file.
Data Structures | |
| struct | dif_soc_proxy |
| A handle to soc_proxy. More... | |
Typedefs | |
| typedef struct dif_soc_proxy | dif_soc_proxy_t |
| A handle to soc_proxy. | |
| typedef enum dif_soc_proxy_alert | dif_soc_proxy_alert_t |
| A soc_proxy alert type. | |
Enumerations | |
| enum | dif_soc_proxy_alert { kDifSocProxyAlertFatalAlertIntg = 0 } |
| A soc_proxy alert type. More... | |
Functions | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_soc_proxy_init (mmio_region_t base_addr, dif_soc_proxy_t *soc_proxy) |
| Creates a new handle for a(n) soc_proxy peripheral. | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_soc_proxy_init_from_dt (dt_soc_proxy_t dt, dif_soc_proxy_t *soc_proxy) |
| Creates a new handle for a(n) soc_proxy peripheral. | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_soc_proxy_get_dt (const dif_soc_proxy_t *soc_proxy, dt_soc_proxy_t *dt) |
| Get the DT handle from this DIF. | |
| OT_WARN_UNUSED_RESULT dif_result_t | dif_soc_proxy_alert_force (const dif_soc_proxy_t *soc_proxy, dif_soc_proxy_alert_t alert) |
| Forces a particular alert, causing it to be escalated as if the hardware had raised it. | |
SOC_PROXY Device Interface Functions
Definition in file dif_soc_proxy_autogen.h.
| struct dif_soc_proxy |
A handle to soc_proxy.
This type should be treated as opaque by users.
Definition at line 38 of file dif_soc_proxy_autogen.h.
| Data Fields | ||
|---|---|---|
| mmio_region_t | base_addr | The base address for the soc_proxy hardware registers. |
| dt_soc_proxy_t | dt |
The instance, set to kDtSocProxyCount if not initialized through dif_soc_proxy_init_from_dt. |
| typedef struct dif_soc_proxy dif_soc_proxy_t |
A handle to soc_proxy.
This type should be treated as opaque by users.
| enum dif_soc_proxy_alert |
A soc_proxy alert type.
| Enumerator | |
|---|---|
| kDifSocProxyAlertFatalAlertIntg | Fatal bus integrity alert. |
Definition at line 99 of file dif_soc_proxy_autogen.h.
| OT_WARN_UNUSED_RESULT dif_result_t dif_soc_proxy_alert_force | ( | const dif_soc_proxy_t * | soc_proxy, |
| dif_soc_proxy_alert_t | alert ) |
Forces a particular alert, causing it to be escalated as if the hardware had raised it.
| soc_proxy | A soc_proxy handle. |
| alert | The alert to force. |
Definition at line 63 of file dif_soc_proxy_autogen.c.
| OT_WARN_UNUSED_RESULT dif_result_t dif_soc_proxy_get_dt | ( | const dif_soc_proxy_t * | soc_proxy, |
| dt_soc_proxy_t * | dt ) |
Get the DT handle from this DIF.
If this DIF was initialized by dif_soc_proxy_init_from_dt(dt, ..) then this function will return dt. Otherwise it will return an error.
| soc_proxy | A soc_proxy handle. | |
| [out] | dt | DT handle. |
kDifBadArg if the DIF has no DT information, kDifOk otherwise. Definition at line 53 of file dif_soc_proxy_autogen.c.
| OT_WARN_UNUSED_RESULT dif_result_t dif_soc_proxy_init | ( | mmio_region_t | base_addr, |
| dif_soc_proxy_t * | soc_proxy ) |
Creates a new handle for a(n) soc_proxy peripheral.
This function does not actuate the hardware.
| base_addr | The MMIO base address of the soc_proxy peripheral. | |
| [out] | soc_proxy | Out param for the initialized handle. |
DEPRECATED This function exists solely for the transition to dt-based DIFs and will be removed in the future.
Definition at line 26 of file dif_soc_proxy_autogen.c.
| OT_WARN_UNUSED_RESULT dif_result_t dif_soc_proxy_init_from_dt | ( | dt_soc_proxy_t | dt, |
| dif_soc_proxy_t * | soc_proxy ) |
Creates a new handle for a(n) soc_proxy peripheral.
This function does not actuate the hardware.
| dt | The devicetable description of the device. | |
| [out] | soc_proxy | Out param for the initialized handle. |
Definition at line 40 of file dif_soc_proxy_autogen.c.