Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
sl811.h File Reference

Go to the source code of this file.

Data Structures

struct  sl811
 
struct  sl811h_ep
 

Macros

#define SL811_EP_A(base)   ((base) + 0)
 
#define SL811_EP_B(base)   ((base) + 8)
 
#define SL811_HOST_BUF   0x00
 
#define SL811_PERIPH_EP0   0x00
 
#define SL811_PERIPH_EP1   0x10
 
#define SL811_PERIPH_EP2   0x20
 
#define SL811_PERIPH_EP3   0x30
 
#define SL11H_HOSTCTLREG   0
 
#define SL11H_HCTLMASK_ARM   0x01
 
#define SL11H_HCTLMASK_ENABLE   0x02
 
#define SL11H_HCTLMASK_IN   0x00
 
#define SL11H_HCTLMASK_OUT   0x04
 
#define SL11H_HCTLMASK_ISOCH   0x10
 
#define SL11H_HCTLMASK_AFTERSOF   0x20
 
#define SL11H_HCTLMASK_TOGGLE   0x40
 
#define SL11H_HCTLMASK_PREAMBLE   0x80
 
#define SL11H_BUFADDRREG   1
 
#define SL11H_BUFLNTHREG   2
 
#define SL11H_PKTSTATREG   3 /* read */
 
#define SL11H_STATMASK_ACK   0x01
 
#define SL11H_STATMASK_ERROR   0x02
 
#define SL11H_STATMASK_TMOUT   0x04
 
#define SL11H_STATMASK_SEQ   0x08
 
#define SL11H_STATMASK_SETUP   0x10
 
#define SL11H_STATMASK_OVF   0x20
 
#define SL11H_STATMASK_NAK   0x40
 
#define SL11H_STATMASK_STALL   0x80
 
#define SL11H_PIDEPREG   3 /* write */
 
#define SL_SETUP   0xd0
 
#define SL_IN   0x90
 
#define SL_OUT   0x10
 
#define SL_SOF   0x50
 
#define SL_PREAMBLE   0xc0
 
#define SL_NAK   0xa0
 
#define SL_STALL   0xe0
 
#define SL_DATA0   0x30
 
#define SL_DATA1   0xb0
 
#define SL11H_XFERCNTREG   4 /* read */
 
#define SL11H_DEVADDRREG   4 /* write */
 
#define SL11H_CTLREG1   5
 
#define SL11H_CTL1MASK_SOF_ENA   0x01
 
#define SL11H_CTL1MASK_FORCE   0x18
 
#define SL11H_CTL1MASK_NORMAL   0x00
 
#define SL11H_CTL1MASK_SE0   0x08 /* reset */
 
#define SL11H_CTL1MASK_J   0x10
 
#define SL11H_CTL1MASK_K   0x18 /* resume */
 
#define SL11H_CTL1MASK_LSPD   0x20
 
#define SL11H_CTL1MASK_SUSPEND   0x40
 
#define SL11H_IRQ_ENABLE   6
 
#define SL11H_INTMASK_DONE_A   0x01
 
#define SL11H_INTMASK_DONE_B   0x02
 
#define SL11H_INTMASK_SOFINTR   0x10
 
#define SL11H_INTMASK_INSRMV   0x20 /* to/from SE0 */
 
#define SL11H_INTMASK_RD   0x40
 
#define SL11H_INTMASK_DP   0x80 /* only in INTSTATREG */
 
#define SL11S_ADDRESS   7
 
#define SL11H_IRQ_STATUS   0x0D /* write to ack */
 
#define SL11H_HWREVREG   0x0E /* read */
 
#define SL11H_HWRMASK_HWREV   0xF0
 
#define SL11H_SOFLOWREG   0x0E /* write */
 
#define SL11H_SOFTMRREG   0x0F /* read */
 
#define SL811HS_CTLREG2   0x0F
 
#define SL811HS_CTL2MASK_SOF_MASK   0x3F
 
#define SL811HS_CTL2MASK_DSWAP   0x40
 
#define SL811HS_CTL2MASK_HOST   0x80
 
#define SL811HS_CTL2_INIT   (SL811HS_CTL2MASK_HOST | 0x2e)
 
#define H_MAXPACKET   120 /* bytes in A or B fifos */
 
#define SL11H_DATA_START   0x10
 
#define SL811HS_PACKET_BUF(is_a)
 
#define LOG2_PERIODIC_SIZE   5 /* arbitrary; this matches OHCI */
 
#define PERIODIC_SIZE   (1 << LOG2_PERIODIC_SIZE)
 
#define DBG(stuff...)   do{}while(0)
 
#define VDBG(stuff...)   do{}while(0)
 
#define PACKET(stuff...)   do{}while(0)
 
#define ERR(stuff...)   printk(KERN_ERR "sl811: " stuff)
 
#define WARNING(stuff...)   printk(KERN_WARNING "sl811: " stuff)
 
#define INFO(stuff...)   printk(KERN_INFO "sl811: " stuff)
 

Macro Definition Documentation

#define DBG (   stuff...)    do{}while(0)

Definition at line 248 of file sl811.h.

#define ERR (   stuff...)    printk(KERN_ERR "sl811: " stuff)

Definition at line 263 of file sl811.h.

#define H_MAXPACKET   120 /* bytes in A or B fifos */

Definition at line 108 of file sl811.h.

#define INFO (   stuff...)    printk(KERN_INFO "sl811: " stuff)

Definition at line 265 of file sl811.h.

#define LOG2_PERIODIC_SIZE   5 /* arbitrary; this matches OHCI */

Definition at line 117 of file sl811.h.

#define PACKET (   stuff...)    do{}while(0)

Definition at line 260 of file sl811.h.

#define PERIODIC_SIZE   (1 << LOG2_PERIODIC_SIZE)

Definition at line 118 of file sl811.h.

#define SL11H_BUFADDRREG   1

Definition at line 39 of file sl811.h.

#define SL11H_BUFLNTHREG   2

Definition at line 40 of file sl811.h.

#define SL11H_CTL1MASK_FORCE   0x18

Definition at line 68 of file sl811.h.

#define SL11H_CTL1MASK_J   0x10

Definition at line 71 of file sl811.h.

#define SL11H_CTL1MASK_K   0x18 /* resume */

Definition at line 72 of file sl811.h.

#define SL11H_CTL1MASK_LSPD   0x20

Definition at line 73 of file sl811.h.

#define SL11H_CTL1MASK_NORMAL   0x00

Definition at line 69 of file sl811.h.

#define SL11H_CTL1MASK_SE0   0x08 /* reset */

Definition at line 70 of file sl811.h.

#define SL11H_CTL1MASK_SOF_ENA   0x01

Definition at line 67 of file sl811.h.

#define SL11H_CTL1MASK_SUSPEND   0x40

Definition at line 74 of file sl811.h.

#define SL11H_CTLREG1   5

Definition at line 66 of file sl811.h.

#define SL11H_DATA_START   0x10

Definition at line 110 of file sl811.h.

#define SL11H_DEVADDRREG   4 /* write */

Definition at line 61 of file sl811.h.

#define SL11H_HCTLMASK_AFTERSOF   0x20

Definition at line 36 of file sl811.h.

#define SL11H_HCTLMASK_ARM   0x01

Definition at line 31 of file sl811.h.

#define SL11H_HCTLMASK_ENABLE   0x02

Definition at line 32 of file sl811.h.

#define SL11H_HCTLMASK_IN   0x00

Definition at line 33 of file sl811.h.

#define SL11H_HCTLMASK_ISOCH   0x10

Definition at line 35 of file sl811.h.

#define SL11H_HCTLMASK_OUT   0x04

Definition at line 34 of file sl811.h.

#define SL11H_HCTLMASK_PREAMBLE   0x80

Definition at line 38 of file sl811.h.

#define SL11H_HCTLMASK_TOGGLE   0x40

Definition at line 37 of file sl811.h.

#define SL11H_HOSTCTLREG   0

Definition at line 30 of file sl811.h.

#define SL11H_HWREVREG   0x0E /* read */

Definition at line 87 of file sl811.h.

#define SL11H_HWRMASK_HWREV   0xF0

Definition at line 88 of file sl811.h.

#define SL11H_INTMASK_DONE_A   0x01

Definition at line 76 of file sl811.h.

#define SL11H_INTMASK_DONE_B   0x02

Definition at line 77 of file sl811.h.

#define SL11H_INTMASK_DP   0x80 /* only in INTSTATREG */

Definition at line 81 of file sl811.h.

#define SL11H_INTMASK_INSRMV   0x20 /* to/from SE0 */

Definition at line 79 of file sl811.h.

#define SL11H_INTMASK_RD   0x40

Definition at line 80 of file sl811.h.

#define SL11H_INTMASK_SOFINTR   0x10

Definition at line 78 of file sl811.h.

#define SL11H_IRQ_ENABLE   6

Definition at line 75 of file sl811.h.

#define SL11H_IRQ_STATUS   0x0D /* write to ack */

Definition at line 86 of file sl811.h.

#define SL11H_PIDEPREG   3 /* write */

Definition at line 50 of file sl811.h.

#define SL11H_PKTSTATREG   3 /* read */

Definition at line 41 of file sl811.h.

#define SL11H_SOFLOWREG   0x0E /* write */

Definition at line 89 of file sl811.h.

#define SL11H_SOFTMRREG   0x0F /* read */

Definition at line 90 of file sl811.h.

#define SL11H_STATMASK_ACK   0x01

Definition at line 42 of file sl811.h.

#define SL11H_STATMASK_ERROR   0x02

Definition at line 43 of file sl811.h.

#define SL11H_STATMASK_NAK   0x40

Definition at line 48 of file sl811.h.

#define SL11H_STATMASK_OVF   0x20

Definition at line 47 of file sl811.h.

#define SL11H_STATMASK_SEQ   0x08

Definition at line 45 of file sl811.h.

#define SL11H_STATMASK_SETUP   0x10

Definition at line 46 of file sl811.h.

#define SL11H_STATMASK_STALL   0x80

Definition at line 49 of file sl811.h.

#define SL11H_STATMASK_TMOUT   0x04

Definition at line 44 of file sl811.h.

#define SL11H_XFERCNTREG   4 /* read */

Definition at line 60 of file sl811.h.

#define SL11S_ADDRESS   7

Definition at line 82 of file sl811.h.

#define SL811_EP_A (   base)    ((base) + 0)

Definition at line 17 of file sl811.h.

#define SL811_EP_B (   base)    ((base) + 8)

Definition at line 18 of file sl811.h.

#define SL811_HOST_BUF   0x00

Definition at line 20 of file sl811.h.

#define SL811_PERIPH_EP0   0x00

Definition at line 21 of file sl811.h.

#define SL811_PERIPH_EP1   0x10

Definition at line 22 of file sl811.h.

#define SL811_PERIPH_EP2   0x20

Definition at line 23 of file sl811.h.

#define SL811_PERIPH_EP3   0x30

Definition at line 24 of file sl811.h.

#define SL811HS_CTL2_INIT   (SL811HS_CTL2MASK_HOST | 0x2e)

Definition at line 100 of file sl811.h.

#define SL811HS_CTL2MASK_DSWAP   0x40

Definition at line 97 of file sl811.h.

#define SL811HS_CTL2MASK_HOST   0x80

Definition at line 98 of file sl811.h.

#define SL811HS_CTL2MASK_SOF_MASK   0x3F

Definition at line 96 of file sl811.h.

#define SL811HS_CTLREG2   0x0F

Definition at line 95 of file sl811.h.

#define SL811HS_PACKET_BUF (   is_a)
Value:

Definition at line 111 of file sl811.h.

#define SL_DATA0   0x30

Definition at line 58 of file sl811.h.

#define SL_DATA1   0xb0

Definition at line 59 of file sl811.h.

#define SL_IN   0x90

Definition at line 52 of file sl811.h.

#define SL_NAK   0xa0

Definition at line 56 of file sl811.h.

#define SL_OUT   0x10

Definition at line 53 of file sl811.h.

#define SL_PREAMBLE   0xc0

Definition at line 55 of file sl811.h.

#define SL_SETUP   0xd0

Definition at line 51 of file sl811.h.

#define SL_SOF   0x50

Definition at line 54 of file sl811.h.

#define SL_STALL   0xe0

Definition at line 57 of file sl811.h.

#define VDBG (   stuff...)    do{}while(0)

Definition at line 254 of file sl811.h.

#define WARNING (   stuff...)    printk(KERN_WARNING "sl811: " stuff)

Definition at line 264 of file sl811.h.