OpenOCD
adiv5_ap Struct Reference

This represents an ARM Debug Interface (v5) Access Port (AP). More...

Collaboration diagram for adiv5_ap:

Data Fields

uint64_t ap_num
 ADIv5: Number of this AP (0~255) ADIv6: Base address of this AP (4k aligned) TODO: to be more coherent, it should be renamed apsel. More...
 
uint32_t cfg_reg
 
bool config_ap_never_release
 
uint32_t csw_default
 Default value for (MEM-AP) AP_REG_CSW register. More...
 
uint32_t csw_size_probed_mask
 Probed CSW.Size data types for the MEM-AP. More...
 
uint32_t csw_size_supported_mask
 Save the supported CSW.Size data types for the MEM-AP. More...
 
uint32_t csw_value
 Cache for (MEM-AP) AP_REG_CSW register value. More...
 
struct adiv5_dapdap
 DAP this AP belongs to. More...
 
uint32_t memaccess_tck
 Configures how many extra tck clocks are added after starting a MEM-AP access before we try to read its status (and/or result). More...
 
bool packed_transfers_probed
 
bool packed_transfers_supported
 
unsigned int refcount
 
uint32_t tar_autoincr_block
 
bool tar_valid
 
target_addr_t tar_value
 Cache for (MEM-AP) AP_REG_TAR register value This is written to configure the address being read or written "-1" indicates no cached value. More...
 
bool unaligned_access_bad
 

Detailed Description

This represents an ARM Debug Interface (v5) Access Port (AP).

Most common is a MEM-AP, for memory access.

Definition at line 250 of file arm_adi_v5.h.

Field Documentation

◆ ap_num

◆ cfg_reg

uint32_t adiv5_ap::cfg_reg

◆ config_ap_never_release

bool adiv5_ap::config_ap_never_release

Definition at line 328 of file arm_adi_v5.h.

Referenced by dap_get_config_ap(), dap_instance_init(), and is_ap_in_use().

◆ csw_default

uint32_t adiv5_ap::csw_default

Default value for (MEM-AP) AP_REG_CSW register.

Definition at line 266 of file arm_adi_v5.h.

Referenced by COMMAND_HANDLER(), dap_instance_init(), dap_put_ap(), mem_ap_setup_csw(), stlink_dap_op_queue_ap_read(), and stlink_dap_op_queue_ap_write().

◆ csw_size_probed_mask

uint32_t adiv5_ap::csw_size_probed_mask

Probed CSW.Size data types for the MEM-AP.

Each bit corresponds to a data type. 0b1 = Data size has been probed. 0b0 = Not yet probed. Bits assigned to sizes same way as above.

Definition at line 293 of file arm_adi_v5.h.

Referenced by mem_ap_init(), and mem_ap_setup_transfer_verify_size_packing().

◆ csw_size_supported_mask

uint32_t adiv5_ap::csw_size_supported_mask

Save the supported CSW.Size data types for the MEM-AP.

Each bit corresponds to a data type. 0b1 = Supported data size. 0b0 = Not supported. Bit 0 = Byte (8-bits) Bit 1 = Halfword (16-bits) Bit 2 = Word (32-bits) - always supported by spec. Bit 3 = Doubleword (64-bits) Bit 4 = 128-bits Bit 5 = 256-bits

Definition at line 286 of file arm_adi_v5.h.

Referenced by mem_ap_init(), and mem_ap_setup_transfer_verify_size_packing().

◆ csw_value

uint32_t adiv5_ap::csw_value

Cache for (MEM-AP) AP_REG_CSW register value.

This is written to configure an access mode, such as autoincrementing AP_REG_TAR during word access. "-1" indicates no cached value.

Definition at line 273 of file arm_adi_v5.h.

Referenced by COMMAND_HANDLER(), dap_invalidate_cache(), mem_ap_get_tar_increment(), mem_ap_init(), mem_ap_read_u32(), mem_ap_setup_csw(), mem_ap_write_u32(), stlink_dap_op_queue_ap_read(), and stlink_dap_op_queue_ap_write().

◆ dap

◆ memaccess_tck

uint32_t adiv5_ap::memaccess_tck

Configures how many extra tck clocks are added after starting a MEM-AP access before we try to read its status (and/or result).

Definition at line 306 of file arm_adi_v5.h.

Referenced by aarch64_examine_first(), COMMAND_HANDLER(), cortex_a_examine_first(), cortex_m_examine(), dap_instance_init(), dap_put_ap(), jtag_ap_q_read(), jtag_ap_q_write(), swd_queue_ap_read(), swd_queue_ap_write(), and xtensa_dm_examine().

◆ packed_transfers_probed

bool adiv5_ap::packed_transfers_probed

Definition at line 313 of file arm_adi_v5.h.

Referenced by mem_ap_init(), and mem_ap_setup_transfer_verify_size_packing().

◆ packed_transfers_supported

bool adiv5_ap::packed_transfers_supported

Definition at line 312 of file arm_adi_v5.h.

Referenced by mem_ap_init(), and mem_ap_setup_transfer_verify_size_packing().

◆ refcount

◆ tar_autoincr_block

◆ tar_valid

◆ tar_value

target_addr_t adiv5_ap::tar_value

Cache for (MEM-AP) AP_REG_TAR register value This is written to configure the address being read or written "-1" indicates no cached value.

Definition at line 300 of file arm_adi_v5.h.

Referenced by COMMAND_HANDLER(), mem_ap_read_tar(), mem_ap_setup_tar(), mem_ap_update_tar_cache(), stlink_dap_op_queue_ap_read(), and stlink_dap_op_queue_ap_write().

◆ unaligned_access_bad

bool adiv5_ap::unaligned_access_bad

Definition at line 316 of file arm_adi_v5.h.

Referenced by mem_ap_init(), mem_ap_read(), and mem_ap_write().


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