Data Structures¶
struct _cfg_data¶
#include "xvsec.h"
Overview
Parameters for accessing MCAP Registers(Read/Write)
Fields
char access
access field. ‘b’ for byte access, ‘h’for half word access, ‘w’ for word access
uint16_t offset
VSEC address offset
uint32_t data
data field holds the information to write into the provided offset for Write operation. Holds the information at the provided offset for read operation
struct xvsec_cap_list_t¶
#include "xvsec.h"
Overview
Capability List.
Fields
uint16_t no_of_caps
No of capabilities supported
xvsec_cap_t cap_info [MAX_CAPS_SUPPORTED]
Capabilities Information
struct xvsec_cap_t¶
#include "xvsec.h"
Overview
Capability Information.
Fields
uint16_t cap_id
Capability Identifier
uint16_t rev_id
MCAP Revision info
char cap_name [XVSEC_MAX_VSEC_STR_LEN]
Capability Name
bool is_supported
info to check capability supported by this drv or not
struct xvsec_fpga_cfg_regs_t¶
#include "xvsec.h"
Overview
FPGA Configuration Register set.
Fields
uint32_t crc
CRC Register
uint32_t far
Frame Address Register
uint32_t fdri
Frame Data Register, Input Register (write configuration data)
uint32_t fdro
Frame Data Register, Output Register (read configuration data)
uint32_t cmd
Command Register
uint32_t ctl0
Control Register 0
uint32_t mask
Mask Register for CTL0 and CTL1 Registers
uint32_t stat
Status Register
uint32_t lout
Legacy Output Register for Daisy Chain
uint32_t cor0
Configuration Option Register 0
uint32_t mfwr
Multi Frame Write Register
uint32_t cbc
Initial CBC Value Register
uint32_t idcode
Device ID Register
uint32_t axss
User Access Register
uint32_t cor1
Configuration Option Register 1
uint32_t wbstar
Warm Boot Start Address Register
uint32_t timer
Watchdog Timer Register
uint32_t scratchpad
Scratch Pad Register for Dummy Read and Writes
uint32_t bootsts
Boot History Status Register
uint32_t ctl1
Control Register 1
uint32_t bspi
BPI/SPI Configuration Options Register
unnamed-struct v1
FPGA Configuration Register set for US/US+ devices
struct xvsec_mcap_ctl_reg_t¶
#include "xvsec.h"
Overview
MCAP Control Register Fields.
Fields
uint32_t enable : 1
MCAP Module Enable
uint32_t rd_enable : 1
MCAP Read Enable to perform FPGA CFG Read operation
MCAP Read Enable
uint32_t reset : 1
MCAP Configurable Region Reset
MCAP Module Reset
uint32_t module_reset : 1
MCAP Module Reset
uint32_t req4mcap_pcie : 1
Request for gaining access to configurable region
uint32_t cfg_desgn_sw : 1
MCAP Design Switch : Must be SET after loading bitstream
uint32_t wr_reg_enable : 1
MCAP Write Register Enable
unnamed-struct v1
MCAP ctrl bits for US/US+
uint32_t wr_enable : 1
MCAP Write Enable
uint32_t mode : 1
MCAP 128-bit Mode
uint32_t axi_cache : 4
MCAP AXI Cache
uint32_t axi_protect : 3
MCAP AXI Protect
unnamed-struct v2
MCAP ctrl bits for Versal
struct xvsec_mcap_regs_t¶
#include "xvsec.h"
Overview
MCAP Register set.
Fields
uint32_t cap_header
Extended capability header register
uint32_t vendor_header
Vendor Specific header register
uint32_t fpga_jtag_id
FPGA JTAG ID register
uint32_t fpga_bitstream_ver
FPGA bit-stream version register
uint32_t status_reg
Status Register
uint32_t control_reg
Control Register
uint32_t write_data_reg
Write Data Register
uint32_t read_data_reg [4]
Read Data Register: 4 data words
unnamed-struct v1
MCAP cfg register set for US/US+
uint32_t ext_cap_header
Extended capability header register
uint32_t address_reg
RW Address register
uint32_t wr_data_reg
Write Data Register
uint32_t rd_data_reg
Read Data Register
unnamed-struct v2
MCAP cfg register set for Versal devices
struct xvsec_mcap_sts_reg_t¶
#include "xvsec.h"
Overview
MCAP Status Register Fields.
Fields
uint32_t err : 1
Error
uint32_t eos : 1
End of Startup Signal
uint32_t reserved01 : 2
Reserved
uint32_t read_complete : 1
MCAP Read complete flag
uint32_t read_count : 3
MCAP Read word count
uint32_t fifo_ovfl : 1
MCAP Write Buffer FIFO overflow
uint32_t reserved02 : 3
Reserved
uint32_t fifo_occu : 4
MCAP Write Buffer FIFO Occupency
uint32_t reserved03 : 8
Reserved
uint32_t req4mcap_rel : 1
MCAP Request for Release Flag
uint32_t reserved04 : 7
Reserved
unnamed-struct v1
MCAP sts bits for US/US+ Devices
uint32_t rw_status : 2
MCAP Read/Write Status
uint32_t rd_complete : 1
MCAP Read Complete
uint32_t fifo_occupancy : 5
MCAP FIFO Occupancy
uint32_t wr_fifo_full : 1
MCAP Write FIFO Full
uint32_t wr_fifo_almost_full : 1
Write FIFO Almost Full
uint32_t wr_fifo_almost_empty : 1
Write FIFO Almost Empty
uint32_t wr_fifo_overflow : 1
Write FIFO Overflow
unnamed-struct v2
MCAP sts bits for Versal Devices