Go to the documentation of this file.
20 #define AT91_UDP_FRM_NUM 0x00
21 #define AT91_UDP_NUM (0x7ff << 0)
22 #define AT91_UDP_FRM_ERR (1 << 16)
23 #define AT91_UDP_FRM_OK (1 << 17)
25 #define AT91_UDP_GLB_STAT 0x04
26 #define AT91_UDP_FADDEN (1 << 0)
27 #define AT91_UDP_CONFG (1 << 1)
28 #define AT91_UDP_ESR (1 << 2)
29 #define AT91_UDP_RSMINPR (1 << 3)
30 #define AT91_UDP_RMWUPE (1 << 4)
32 #define AT91_UDP_FADDR 0x08
33 #define AT91_UDP_FADD (0x7f << 0)
34 #define AT91_UDP_FEN (1 << 8)
36 #define AT91_UDP_IER 0x10
37 #define AT91_UDP_IDR 0x14
38 #define AT91_UDP_IMR 0x18
40 #define AT91_UDP_ISR 0x1c
41 #define AT91_UDP_EP(n) (1 << (n))
42 #define AT91_UDP_RXSUSP (1 << 8)
43 #define AT91_UDP_RXRSM (1 << 9)
44 #define AT91_UDP_EXTRSM (1 << 10)
45 #define AT91_UDP_SOFINT (1 << 11)
46 #define AT91_UDP_ENDBUSRES (1 << 12)
47 #define AT91_UDP_WAKEUP (1 << 13)
49 #define AT91_UDP_ICR 0x20
50 #define AT91_UDP_RST_EP 0x28
52 #define AT91_UDP_CSR(n) (0x30+((n)*4))
53 #define AT91_UDP_TXCOMP (1 << 0)
54 #define AT91_UDP_RX_DATA_BK0 (1 << 1)
55 #define AT91_UDP_RXSETUP (1 << 2)
56 #define AT91_UDP_STALLSENT (1 << 3)
57 #define AT91_UDP_TXPKTRDY (1 << 4)
58 #define AT91_UDP_FORCESTALL (1 << 5)
59 #define AT91_UDP_RX_DATA_BK1 (1 << 6)
60 #define AT91_UDP_DIR (1 << 7)
61 #define AT91_UDP_EPTYPE (7 << 8)
62 #define AT91_UDP_EPTYPE_CTRL (0 << 8)
63 #define AT91_UDP_EPTYPE_ISO_OUT (1 << 8)
64 #define AT91_UDP_EPTYPE_BULK_OUT (2 << 8)
65 #define AT91_UDP_EPTYPE_INT_OUT (3 << 8)
66 #define AT91_UDP_EPTYPE_ISO_IN (5 << 8)
67 #define AT91_UDP_EPTYPE_BULK_IN (6 << 8)
68 #define AT91_UDP_EPTYPE_INT_IN (7 << 8)
69 #define AT91_UDP_DTGLE (1 << 11)
70 #define AT91_UDP_EPEDS (1 << 15)
71 #define AT91_UDP_RXBYTECNT (0x7ff << 16)
73 #define AT91_UDP_FDR(n) (0x50+((n)*4))
75 #define AT91_UDP_TXVC 0x74
76 #define AT91_UDP_TXVC_TXVDIS (1 << 8)
77 #define AT91_UDP_TXVC_PUON (1 << 9)
85 #define NUM_ENDPOINTS 6
91 #define MINIMUS_INTERRUPTUS \
92 (AT91_UDP_ENDBUSRES | AT91_UDP_RXRSM | AT91_UDP_RXSUSP)
154 # define VDBG(stuff...) do{}while(0)
160 # define PACKET(stuff...) do{}while(0)
163 #define ERR(stuff...) pr_err("udc: " stuff)
164 #define WARNING(stuff...) pr_warning("udc: " stuff)
165 #define INFO(stuff...) pr_info("udc: " stuff)
166 #define DBG(stuff...) pr_debug("udc: " stuff)