diff options
Diffstat (limited to 'ipedma.h')
-rw-r--r-- | ipedma.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -7,10 +7,14 @@ #define REG_DESCRIPTOR_ADDRESS 0x50 #define REG_UPDATE_ADDRESS 0x58 #define REG_UPDATE_THRESHOLD 0x60 +#define REG_UPDATE_COUNTER 0x70 #define REG_INTERCONNECT 0x9048 #define REG_COUNTER 0x9000 + +#define DESCRIPTOR_OFFSET 256 + #define WR32(addr, value) *(volatile uint32_t *) (((char*)(bar)) + (addr)) = (value); #define RD32(addr) (*(volatile uint32_t *) (((char*)(bar)) + (addr))) #define WR32_sleep(addr, value) *(volatile uint32_t *) (((char*)(bar)) + (addr)) = (value); usleep (100); |