#ifndef __R8A66597_H__
#define __R8A66597_H__
#include <linux/clk.h>
#include <linux/usb/r8a66597.h>
#define R8A66597_MAX_NUM_PIPE …
#define R8A66597_BUF_BSIZE …
#define R8A66597_MAX_DEVICE …
#define R8A66597_MAX_ROOT_HUB …
#define R8A66597_MAX_SAMPLING …
#define R8A66597_RH_POLL_TIME …
#define R8A66597_MAX_DMA_CHANNEL …
#define R8A66597_PIPE_NO_DMA …
#define check_bulk_or_isoc(pipenum) …
#define check_interrupt(pipenum) …
#define make_devsel(addr) …
struct r8a66597_pipe_info { … };
struct r8a66597_pipe { … };
struct r8a66597_td { … };
struct r8a66597_device { … };
struct r8a66597_root_hub { … };
struct r8a66597;
struct r8a66597_timers { … };
struct r8a66597 { … };
static inline struct r8a66597 *hcd_to_r8a66597(struct usb_hcd *hcd)
{ … }
static inline struct usb_hcd *r8a66597_to_hcd(struct r8a66597 *r8a66597)
{ … }
static inline struct r8a66597_td *r8a66597_get_td(struct r8a66597 *r8a66597,
u16 pipenum)
{ … }
static inline struct urb *r8a66597_get_urb(struct r8a66597 *r8a66597,
u16 pipenum)
{ … }
static inline u16 r8a66597_read(struct r8a66597 *r8a66597, unsigned long offset)
{ … }
static inline void r8a66597_read_fifo(struct r8a66597 *r8a66597,
unsigned long offset, u16 *buf,
int len)
{ … }
static inline void r8a66597_write(struct r8a66597 *r8a66597, u16 val,
unsigned long offset)
{ … }
static inline void r8a66597_mdfy(struct r8a66597 *r8a66597,
u16 val, u16 pat, unsigned long offset)
{ … }
#define r8a66597_bclr(r8a66597, val, offset) …
#define r8a66597_bset(r8a66597, val, offset) …
static inline void r8a66597_write_fifo(struct r8a66597 *r8a66597,
struct r8a66597_pipe *pipe, u16 *buf,
int len)
{ … }
static inline unsigned long get_syscfg_reg(int port)
{ … }
static inline unsigned long get_syssts_reg(int port)
{ … }
static inline unsigned long get_dvstctr_reg(int port)
{ … }
static inline unsigned long get_dmacfg_reg(int port)
{ … }
static inline unsigned long get_intenb_reg(int port)
{ … }
static inline unsigned long get_intsts_reg(int port)
{ … }
static inline u16 get_rh_usb_speed(struct r8a66597 *r8a66597, int port)
{ … }
static inline void r8a66597_port_power(struct r8a66597 *r8a66597, int port,
int power)
{ … }
static inline u16 get_xtal_from_pdata(struct r8a66597_platdata *pdata)
{ … }
#define get_pipectr_addr(pipenum) …
#define get_pipetre_addr(pipenum) …
#define get_pipetrn_addr(pipenum) …
#define get_devadd_addr(address) …
#define enable_irq_ready(r8a66597, pipenum) …
#define disable_irq_ready(r8a66597, pipenum) …
#define enable_irq_empty(r8a66597, pipenum) …
#define disable_irq_empty(r8a66597, pipenum) …
#define enable_irq_nrdy(r8a66597, pipenum) …
#define disable_irq_nrdy(r8a66597, pipenum) …
#endif