summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h
diff options
context:
space:
mode:
authorKevin Cernekee <cernekee@gmail.com>2012-07-09 01:41:19 +0000
committerJohn Crispin <blogic@openwrt.org>2012-08-30 20:15:52 +0200
commit6f9423454aa68bdf64099f3a30fafb2c64b25cda (patch)
tree948b63c532988410e8764de864f74fe379b91bfe /arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h
parent932e30b6ea8d2ce5a5d60b799f5c088547f105b3 (diff)
MIPS: BCM63XX: Add new IUDMA definitions needed for USBD
Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Patchwork: http://patchwork.linux-mips.org/patch/4083/ Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h')
-rw-r--r--arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h
index 358cf28ce2af..a5bbff31c898 100644
--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h
+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_iudma.h
@@ -11,6 +11,7 @@ struct bcm_enet_desc {
u32 address;
};
+/* control */
#define DMADESC_LENGTH_SHIFT 16
#define DMADESC_LENGTH_MASK (0xfff << DMADESC_LENGTH_SHIFT)
#define DMADESC_OWNER_MASK (1 << 15)
@@ -18,7 +19,10 @@ struct bcm_enet_desc {
#define DMADESC_SOP_MASK (1 << 13)
#define DMADESC_ESOP_MASK (DMADESC_EOP_MASK | DMADESC_SOP_MASK)
#define DMADESC_WRAP_MASK (1 << 12)
+#define DMADESC_USB_NOZERO_MASK (1 << 1)
+#define DMADESC_USB_ZERO_MASK (1 << 0)
+/* status */
#define DMADESC_UNDER_MASK (1 << 9)
#define DMADESC_APPEND_CRC (1 << 8)
#define DMADESC_OVSIZE_MASK (1 << 4)