#ifndef HARDWARE_FPGA_H_
#define HARDWARE_FPGA_H_

typedef struct
{
	volatile unsigned ram[24572];
	volatile unsigned csr0;
	volatile unsigned csr1;
	volatile unsigned dma;
	volatile unsigned cfg;
} FpgaRegs;

#define FPGA_DMA_ID (1U << 1)
#define FPGA_DMA_DA (1U << 0)

#define FPGA_CFG_SE         (1U << 31)
#define FPGA_CFG_SS         (1U << 30)
#define FPGA_CFG_INTRVL(_x) (((_x) & 0xFF) << 16)
#define FPGA_CFG_CD         (1U << 0)

#endif /* HARDWARE_FPGA_H_ */
