OpenOCD
rtp_ops Struct Reference

Actions/operations to be executed while parsing ROM tables. More...

Data Fields

int(* ap_header )(struct adiv5_ap *ap, int depth, void *priv)
 Executed at the start of a new AP, typically to print the AP header. More...
 
int(* cs_component )(int retval, struct cs_component_vals *v, int depth, void *priv)
 Executed when a CoreSight component is parsed, typically to print information on the component. More...
 
int(* mem_ap_header )(int retval, struct adiv5_ap *ap, uint64_t dbgbase, uint32_t apid, int depth, void *priv)
 Executed at the start of a new MEM-AP, typically to print the MEM-AP header. More...
 
void * priv
 Private data. More...
 
int(* rom_table_entry )(int retval, int depth, unsigned int offset, uint64_t romentry, void *priv)
 Executed for each entry of a ROM table, typically to print the entry and information about validity or end-of-table mark. More...
 

Detailed Description

Actions/operations to be executed while parsing ROM tables.

Definition at line 1621 of file arm_adi_v5.c.

Field Documentation

◆ ap_header

int(* rtp_ops::ap_header) (struct adiv5_ap *ap, int depth, void *priv)

Executed at the start of a new AP, typically to print the AP header.

Parameters
apPointer to AP.
depthThe current depth level of ROM table.
privPointer to private data.
Returns
ERROR_OK on success, else a fault code.

Definition at line 1629 of file arm_adi_v5.c.

Referenced by dap_info_command(), dap_lookup_cs_component(), and rtp_ops_ap_header().

◆ cs_component

int(* rtp_ops::cs_component) (int retval, struct cs_component_vals *v, int depth, void *priv)

Executed when a CoreSight component is parsed, typically to print information on the component.

Parameters
retvalError encountered while reading component's registers.
vPointer to a container of the component's registers.
depthThe current depth level of ROM table.
privPointer to private data.
Returns
ERROR_OK on success, else a fault code.

Definition at line 1651 of file arm_adi_v5.c.

Referenced by rtp_ops_cs_component().

◆ mem_ap_header

int(* rtp_ops::mem_ap_header) (int retval, struct adiv5_ap *ap, uint64_t dbgbase, uint32_t apid, int depth, void *priv)

Executed at the start of a new MEM-AP, typically to print the MEM-AP header.

Parameters
retvalError encountered while reading AP.
apPointer to AP.
dbgbaseValue of MEM-AP Debug Base Address register.
apidValue of MEM-AP IDR Identification Register.
depthThe current depth level of ROM table.
privPointer to private data.
Returns
ERROR_OK on success, else a fault code.

Definition at line 1640 of file arm_adi_v5.c.

Referenced by rtp_ops_mem_ap_header().

◆ priv

void* rtp_ops::priv

Private data.

Definition at line 1667 of file arm_adi_v5.c.

Referenced by rtp_ops_ap_header(), rtp_ops_cs_component(), rtp_ops_mem_ap_header(), and rtp_ops_rom_table_entry().

◆ rom_table_entry

int(* rtp_ops::rom_table_entry) (int retval, int depth, unsigned int offset, uint64_t romentry, void *priv)

Executed for each entry of a ROM table, typically to print the entry and information about validity or end-of-table mark.

Parameters
retvalError encountered while reading the ROM table entry.
depthThe current depth level of ROM table.
offsetThe offset of the entry in the ROM table.
romentryThe value of the ROM table entry.
privPointer to private data.
Returns
ERROR_OK on success, else a fault code.

Definition at line 1662 of file arm_adi_v5.c.

Referenced by rtp_ops_rom_table_entry().


The documentation for this struct was generated from the following file: