
#define NO_ERROR            0
#define GENERIC_ERROR       1
#define SRIO_ERROR          2
#define SRIO_READ_ERROR     3
#define SRIO_WRITE_ERROR    4
#define INPUT_NOT_VALID     5
#define SRIO_WAIT_ERROR     6

#define MODE_REG 	    0x4700002C
#define CMD_REG 		0x47000030
#define ADDR_REG		0x47000034
#define NUM_BYTE_REG	0x47000038
#define CTRL_REG	    0x47000060
#define TX_FIFO_REG	    0x47000400
#define STATUS_REG	    0x47000864
#define RX_FIFO_REG	    0x47000C00

#define VERSION_REG     0x00100000