add regfile access utility

This commit is contained in:
2013-12-05 11:09:23 +01:00
parent a63dfb4372
commit 0f5947ee39
3 changed files with 127 additions and 1 deletions

View File

@@ -31,6 +31,12 @@
#define STRM_DDR2_READ_HDR_INIT(addr) \
(uint32_t)(~(0x1 << 31) & (addr & 0x0fffffff))
#define STRM_TYPE_REGFILE 0x2
#define STRM_REGFILE_WRITE_HDR_INIT(addr) \
(uint32_t)(0x80000000 | (addr & 0x0fffffff))
#define STRM_REGFILE_READ_HDR_INIT(addr) \
(uint32_t)(~(0x1 << 31) & (addr & 0x0fffffff))
/* prototypes */
usb_dev_handle *strm_init(int vendor, int product);
int strm_fini(void);