diff options
author | root <root@ipepdvdev1.ipe.kit.edu> | 2016-05-25 06:35:59 +0200 |
---|---|---|
committer | root <root@ipepdvdev1.ipe.kit.edu> | 2016-05-25 06:35:59 +0200 |
commit | a6f3e96f2cafc183ab29e53007a86bb968d654b8 (patch) | |
tree | 5248f06934289d65e366507890ebac3c7a4816ab /ipedma.h | |
parent | ca1b1cea796bcfaeb86f201cf35065a606921cc1 (diff) | |
download | gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.gz gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.bz2 gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.xz gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.zip |
Support bigger writes
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); |