#ifndef PRXMEMORYSPACE_H
#define PRXMEMORYSPACE_H

#ifdef __cplusplus
extern "C" {
#endif

#define PRX_SYSTEM_RAM_OFFSET						0x00400000
#define PRX_REGISTERS_START_OFFSET					0x00500000
#define PRX_REGISTERS_END_OFFSET					0x00700400
#define PRX_SEQUENCE_TABLE_OFFSET					0x00700000

#define PRX_SYSTEM_FPGA_REGISTERS_START_OFFSET		0x00000000
#define PRX_SYSTEM_FPGA_REGISTERS_END_OFFSET		0x00000100

#define PRX_EEPROM_START_OFFSET						0x00600000

#define PRX_REGISTERS_TOTAL_LENGTH					(PRX_REGISTERS_END_OFFSET - PRX_REGISTERS_START_OFFSET)


// System FPGA registers

#define PRX_CHECK_REGISTER							0x00000000
#define PRX_SYSTEM_IO_BANK_0						0x00000004
#define PRX_SYSTEM_DDR_0							0x00000008
#define PRX_SYSTEM_IO_BANK_1						0x0000000c
#define PRX_SYSTEM_DDR_1							0x00000010
#define PRX_SYSTEM_COMMAND_REGISTER					0x00000014
#define PRX_SYSTEM_STATUS_REGISTER					0x00000014
#define PRX_SYSTEM_GLOBAL_CONFIG_REGISTER			0x000000f0
#define PRX_SYSTEM_FPGA_VERSION_NUMBER				0x000000fc



#ifdef __cplusplus
}
#endif

#endif
