#ifndef SONODEVICECONSTANT_H #define SONODEVICECONSTANT_H #define BAR_REG 0 #define BAR_SRAM 1 #define BAR_BRAM 2 #define SW_BUFFER_NUM 32 #define HW_BUFFER_NUM 16 #define BUFFER_SIZE 4 * 1024 * 1024 #define SRAM_SIZE 16777216U #define BPI_START_OFFSET 0x4000000 #define UPDATE_MCS_OFFSET 0x2000000 #define COUNTER_REG 0x00002020 #define RAM_OFFSET_REG 0x00002024 #define XFER_OPT_REG 0x00002028 #define XFER_RATE_REG 0x0000202C #define CONTROL_REG 0x00000800 #define DMA_CTRL_REG 0x00000008 #define START_COMMAND 0x00000001 #define STOP_COMMAND 0x11111110 #define COUNTER_MASK 0x0000001F #define RAM_OFFSET_MASK 0x00FFFFFF #define XFER_LEN_MASK 0x007FFFFF #define AUTO_INC_COMMAND 0x40000000 #define PERF_MODE_COMMAND 0x80000000 #define XFER_RATE_MASK 0x003FFFFF #define BUSY_MASK 0x80000000 #endif //SONODEVICECONSTANT_H