Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
r8a66597-udc.h File Reference
#include <linux/clk.h>
#include <linux/usb/r8a66597.h>

Go to the source code of this file.

Data Structures

struct  r8a66597_pipe_info
 
struct  r8a66597_request
 
struct  r8a66597_ep
 
struct  r8a66597_dma
 
struct  r8a66597
 

Macros

#define R8A66597_MAX_SAMPLING   10
 
#define R8A66597_MAX_NUM_PIPE   8
 
#define R8A66597_MAX_NUM_BULK   3
 
#define R8A66597_MAX_NUM_ISOC   2
 
#define R8A66597_MAX_NUM_INT   2
 
#define R8A66597_BASE_PIPENUM_BULK   3
 
#define R8A66597_BASE_PIPENUM_ISOC   1
 
#define R8A66597_BASE_PIPENUM_INT   6
 
#define R8A66597_BASE_BUFNUM   6
 
#define R8A66597_MAX_BUFNUM   0x4F
 
#define is_bulk_pipe(pipenum)
 
#define is_interrupt_pipe(pipenum)
 
#define is_isoc_pipe(pipenum)
 
#define r8a66597_is_sudmac(r8a66597)   (r8a66597->pdata->sudmac)
 
#define gadget_to_r8a66597(_gadget)   container_of(_gadget, struct r8a66597, gadget)
 
#define r8a66597_to_gadget(r8a66597)   (&r8a66597->gadget)
 
#define r8a66597_to_dev(r8a66597)   (r8a66597->gadget.dev.parent)
 
#define r8a66597_bclr(r8a66597, val, offset)   r8a66597_mdfy(r8a66597, 0, val, offset)
 
#define r8a66597_bset(r8a66597, val, offset)   r8a66597_mdfy(r8a66597, val, 0, offset)
 
#define get_pipectr_addr(pipenum)   (PIPE1CTR + (pipenum - 1) * 2)
 
#define get_pipetre_addr(pipenum)   (PIPE1TRE + (pipenum - 1) * 4)
 
#define get_pipetrn_addr(pipenum)   (PIPE1TRN + (pipenum - 1) * 4)
 
#define enable_irq_ready(r8a66597, pipenum)   enable_pipe_irq(r8a66597, pipenum, BRDYENB)
 
#define disable_irq_ready(r8a66597, pipenum)   disable_pipe_irq(r8a66597, pipenum, BRDYENB)
 
#define enable_irq_empty(r8a66597, pipenum)   enable_pipe_irq(r8a66597, pipenum, BEMPENB)
 
#define disable_irq_empty(r8a66597, pipenum)   disable_pipe_irq(r8a66597, pipenum, BEMPENB)
 
#define enable_irq_nrdy(r8a66597, pipenum)   enable_pipe_irq(r8a66597, pipenum, NRDYENB)
 
#define disable_irq_nrdy(r8a66597, pipenum)   disable_pipe_irq(r8a66597, pipenum, NRDYENB)
 

Macro Definition Documentation

#define disable_irq_empty (   r8a66597,
  pipenum 
)    disable_pipe_irq(r8a66597, pipenum, BEMPENB)

Definition at line 282 of file r8a66597-udc.h.

#define disable_irq_nrdy (   r8a66597,
  pipenum 
)    disable_pipe_irq(r8a66597, pipenum, NRDYENB)

Definition at line 286 of file r8a66597-udc.h.

#define disable_irq_ready (   r8a66597,
  pipenum 
)    disable_pipe_irq(r8a66597, pipenum, BRDYENB)

Definition at line 278 of file r8a66597-udc.h.

#define enable_irq_empty (   r8a66597,
  pipenum 
)    enable_pipe_irq(r8a66597, pipenum, BEMPENB)

Definition at line 280 of file r8a66597-udc.h.

#define enable_irq_nrdy (   r8a66597,
  pipenum 
)    enable_pipe_irq(r8a66597, pipenum, NRDYENB)

Definition at line 284 of file r8a66597-udc.h.

#define enable_irq_ready (   r8a66597,
  pipenum 
)    enable_pipe_irq(r8a66597, pipenum, BRDYENB)

Definition at line 276 of file r8a66597-udc.h.

#define gadget_to_r8a66597 (   _gadget)    container_of(_gadget, struct r8a66597, gadget)

Definition at line 120 of file r8a66597-udc.h.

#define get_pipectr_addr (   pipenum)    (PIPE1CTR + (pipenum - 1) * 2)

Definition at line 272 of file r8a66597-udc.h.

#define get_pipetre_addr (   pipenum)    (PIPE1TRE + (pipenum - 1) * 4)

Definition at line 273 of file r8a66597-udc.h.

#define get_pipetrn_addr (   pipenum)    (PIPE1TRN + (pipenum - 1) * 4)

Definition at line 274 of file r8a66597-udc.h.

#define is_bulk_pipe (   pipenum)
Value:

Definition at line 33 of file r8a66597-udc.h.

#define is_interrupt_pipe (   pipenum)
Value:

Definition at line 36 of file r8a66597-udc.h.

#define is_isoc_pipe (   pipenum)
Value:

Definition at line 39 of file r8a66597-udc.h.

#define R8A66597_BASE_BUFNUM   6

Definition at line 30 of file r8a66597-udc.h.

#define R8A66597_BASE_PIPENUM_BULK   3

Definition at line 26 of file r8a66597-udc.h.

#define R8A66597_BASE_PIPENUM_INT   6

Definition at line 28 of file r8a66597-udc.h.

#define R8A66597_BASE_PIPENUM_ISOC   1

Definition at line 27 of file r8a66597-udc.h.

#define r8a66597_bclr (   r8a66597,
  val,
  offset 
)    r8a66597_mdfy(r8a66597, 0, val, offset)

Definition at line 192 of file r8a66597-udc.h.

#define r8a66597_bset (   r8a66597,
  val,
  offset 
)    r8a66597_mdfy(r8a66597, val, 0, offset)

Definition at line 194 of file r8a66597-udc.h.

#define r8a66597_is_sudmac (   r8a66597)    (r8a66597->pdata->sudmac)

Definition at line 43 of file r8a66597-udc.h.

#define R8A66597_MAX_BUFNUM   0x4F

Definition at line 31 of file r8a66597-udc.h.

#define R8A66597_MAX_NUM_BULK   3

Definition at line 22 of file r8a66597-udc.h.

#define R8A66597_MAX_NUM_INT   2

Definition at line 24 of file r8a66597-udc.h.

#define R8A66597_MAX_NUM_ISOC   2

Definition at line 23 of file r8a66597-udc.h.

#define R8A66597_MAX_NUM_PIPE   8

Definition at line 21 of file r8a66597-udc.h.

#define R8A66597_MAX_SAMPLING   10

Definition at line 19 of file r8a66597-udc.h.

#define r8a66597_to_dev (   r8a66597)    (r8a66597->gadget.dev.parent)

Definition at line 123 of file r8a66597-udc.h.

#define r8a66597_to_gadget (   r8a66597)    (&r8a66597->gadget)

Definition at line 122 of file r8a66597-udc.h.