#define MUSB_CONFIGDATA MUSB_FIFOSIZE /* re-used for EP0 */
/* offsets to endpoint registers in indexed model (using INDEX register) */
-#define MGC_INDEXED_OFFSET(_epnum, _bOffset) \
- (0x10 + (_bOffset))
+#define MGC_INDEXED_OFFSET(_epnum, _offset) \
+ (0x10 + (_offset))
/* offsets to endpoint registers in flat models */
-#define MGC_FLAT_OFFSET(_epnum, _bOffset) \
- (0x100 + (0x10*(_epnum)) + (_bOffset))
+#define MGC_FLAT_OFFSET(_epnum, _offset) \
+ (0x100 + (0x10*(_epnum)) + (_offset))
#ifdef CONFIG_USB_TUSB6010
/* TUSB6010 EP0 configuration register is special */
-#define MGC_TUSB_OFFSET(_epnum, _bOffset) \
- (0x10 + _bOffset)
+#define MGC_TUSB_OFFSET(_epnum, _offset) \
+ (0x10 + _offset)
#include "tusb6010.h" /* needed "only" for TUSB_EP0_CONF */
#endif
#define MUSB_RXHUBADDR 0x06
#define MUSB_RXHUBPORT 0x07
-#define MGC_BUSCTL_OFFSET(_epnum, _bOffset) \
- (0x80 + (8*(_epnum)) + (_bOffset))
+#define MGC_BUSCTL_OFFSET(_epnum, _offset) \
+ (0x80 + (8*(_epnum)) + (_offset))
/*
* MUSBHDRC Register bit masks
#define MGC_O_HSDMA_ADDRESS 0x8
#define MGC_O_HSDMA_COUNT 0xc
-#define MGC_HSDMA_CHANNEL_OFFSET(_bChannel, _bOffset) \
- (MGC_O_HSDMA_BASE + (_bChannel << 4) + _bOffset)
+#define MGC_HSDMA_CHANNEL_OFFSET(_bChannel, _offset) \
+ (MGC_O_HSDMA_BASE + (_bChannel << 4) + _offset)
/* control register (16-bit): */
#define MUSB_HSDMA_ENABLE_SHIFT 0