From 3c6f37019ee1f9564644534d5a932fd03c0e6d25 Mon Sep 17 00:00:00 2001 From: Paul David Date: Tue, 14 Mar 2017 19:27:22 -0400 Subject: X3xx: Updated firmware to support reading FPGA image data --- host/lib/usrp/x300/x300_fw_common.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'host/lib') diff --git a/host/lib/usrp/x300/x300_fw_common.h b/host/lib/usrp/x300/x300_fw_common.h index b83449666..56b457791 100644 --- a/host/lib/usrp/x300/x300_fw_common.h +++ b/host/lib/usrp/x300/x300_fw_common.h @@ -61,6 +61,7 @@ extern "C" { #define X300_GPSDO_UDP_PORT 49156 #define X300_FPGA_PROG_UDP_PORT 49157 #define X300_MTU_DETECT_UDP_PORT 49158 +#define X300_FPGA_READ_UDP_PORT 49159 #define X300_DEFAULT_MAC_ADDR_0 {0x00, 0x50, 0xC2, 0x85, 0x3f, 0xff} #define X300_DEFAULT_MAC_ADDR_1 {0x00, 0x50, 0xC2, 0x85, 0x3f, 0x33} @@ -91,6 +92,11 @@ extern "C" { #define X300_FPGA_PROG_CONFIGURE (1 << 6) #define X300_FPGA_PROG_CONFIG_STATUS (1 << 7) +#define X300_FPGA_READ_FLAGS_ACK (1 << 0) +#define X300_FPGA_READ_FLAGS_ERROR (1 << 1) +#define X300_FPGA_READ_FLAGS_INIT (1 << 2) +#define X300_FPGA_READ_FLAGS_CLEANUP (1 << 3) + #define X300_MTU_DETECT_ECHO_REQUEST (1 << 0) #define X300_MTU_DETECT_ECHO_REPLY (1 << 1) #define X300_MTU_DETECT_ERROR (1 << 2) @@ -141,6 +147,16 @@ typedef struct uint32_t flags; } x300_fpga_prog_flags_t; +typedef struct +{ + uint32_t flags; + uint32_t sector; + uint32_t index; + uint32_t size; +} x300_fpga_read_t; + +typedef x300_fpga_prog_t x300_fpga_read_reply_t; + typedef struct { uint32_t flags; -- cgit v1.2.3