Go to the documentation of this file.
45 #define AXI_SYSID_VER_1_00_A 0x10061
46 #define AXI_SYSID_VER_1_01_A 0x10161
48 #define AXI_SYSID_WORD_SIZE sizeof(uint32_t)
49 #define AXI_SYSID_REG_ROM_ADDR_WIDTH 0x40
51 #define AXI_SYSID_REG_VERSION 0x0000
52 #define AXI_SYSID_REG_PERIPH_ID 0x0004
53 #define AXI_SYSID_REG_SCRATCH 0x0008
54 #define AXI_SYSID_REG_ID 0x000c
55 #define AXI_SYSID_REG_SYSROM_START 0x0800
56 #define AXI_SYSID_REG_PRROM_START 0x1000
58 #ifndef AXI_PCORE_VER_MAJOR
59 #define AXI_PCORE_VER_MAJOR(version) (version >> 16)
61 #ifndef AXI_PCORE_VER_MINOR
62 #define AXI_PCORE_VER_MINOR(version) ((version >> 8) & 0xff)
64 #ifndef AXI_PCORE_VER_LETTER
65 #define AXI_PCORE_VER_LETTER(version) (version & 0xff)
96 int8_t git_clean_chk[4];
104 int8_t git_branch[28];
106 int8_t git_clean_chk[4];
#define AXI_SYSID_VER_1_00_A
Definition: axi_sysid.h:45
Definition: axi_sysid.h:76
Driver for the Analog Devices AXI-SYSID core.
Definition: axi_sysid.h:113
@ AXI_SYSID_HEADER_V1
Definition: axi_sysid.h:72
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
uint32_t version
Definition: axi_sysid.h:114
#define pr_info(fmt, args...)
Definition: no_os_print_log.h:115
uint32_t base
Definition: axi_sysid.h:77
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
sysid_header_version
Definition: axi_sysid.h:71
uint32_t * mem
Definition: axi_sysid.h:80
Definition: axi_sysid.h:118
int32_t no_os_axi_io_read(uint32_t base, uint32_t offset, uint32_t *data)
AXI IO Altera specific read function.
Definition: altera_axi_io.c:53
#define AXI_SYSID_VER_1_01_A
Definition: axi_sysid.h:46
int32_t axi_sysid_remove(struct axi_sysid *sysid)
Definition: axi_sysid.c:272
int32_t axi_sysid_init(struct axi_sysid **sysid_core, const struct axi_sysid_init_param *init)
Definition: axi_sysid.c:214
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
@ AXI_SYSID_HEADER_V2
Definition: axi_sysid.h:73
#define NULL
Definition: wrapper.h:64
int32_t axi_sysid_init(struct axi_sysid **sysid_core, const struct axi_sysid_init_param *init)
Definition: axi_sysid.c:214
char * axi_sysid_get_fpga_board(struct axi_sysid *sysid)
Definition: axi_sysid.c:289
int32_t axi_sysid_remove(struct axi_sysid *sysid)
Definition: axi_sysid.c:272
#define AXI_SYSID_REG_ROM_ADDR_WIDTH
Definition: axi_sysid.h:49
char * axi_sysid_get_fpga_board(struct axi_sysid *sysid)
Definition: axi_sysid.c:289
uint32_t base
Definition: axi_sysid.h:119
struct axi_sysid_core_info * info
Definition: axi_sysid.h:78
#define AXI_SYSID_WORD_SIZE
Definition: axi_sysid.h:48
#define AXI_SYSID_REG_VERSION
Definition: axi_sysid.h:51
uint32_t header_version
Definition: axi_sysid.h:115
uint32_t size
Definition: axi_sysid.h:79