linux/drivers/usb/gadget/udc/r8a66597-udc.h

// SPDX-License-Identifier: GPL-2.0
/*
 * R8A66597 UDC
 *
 * Copyright (C) 2007-2009 Renesas Solutions Corp.
 *
 * Author : Yoshihiro Shimoda <[email protected]>
 */

#ifndef __R8A66597_H__
#define __R8A66597_H__

#include <linux/clk.h>
#include <linux/usb/r8a66597.h>

#define R8A66597_MAX_SAMPLING

#define R8A66597_MAX_NUM_PIPE
#define R8A66597_MAX_NUM_BULK
#define R8A66597_MAX_NUM_ISOC
#define R8A66597_MAX_NUM_INT

#define R8A66597_BASE_PIPENUM_BULK
#define R8A66597_BASE_PIPENUM_ISOC
#define R8A66597_BASE_PIPENUM_INT

#define R8A66597_BASE_BUFNUM
#define R8A66597_MAX_BUFNUM

#define is_bulk_pipe(pipenum)
#define is_interrupt_pipe(pipenum)
#define is_isoc_pipe(pipenum)

#define r8a66597_is_sudmac(r8a66597)
struct r8a66597_pipe_info {};

struct r8a66597_request {};

struct r8a66597_ep {};

struct r8a66597_dma {};

struct r8a66597 {};

#define gadget_to_r8a66597(_gadget)
#define r8a66597_to_gadget(r8a66597)
#define r8a66597_to_dev(r8a66597)

static inline u16 r8a66597_read(struct r8a66597 *r8a66597, unsigned long offset)
{}

static inline void r8a66597_read_fifo(struct r8a66597 *r8a66597,
				      unsigned long offset,
				      unsigned char *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_ep *ep,
				       unsigned char *buf,
				       int len)
{}

static inline u16 get_xtal_from_pdata(struct r8a66597_platdata *pdata)
{}

static inline u32 r8a66597_sudmac_read(struct r8a66597 *r8a66597,
				       unsigned long offset)
{}

static inline void r8a66597_sudmac_write(struct r8a66597 *r8a66597, u32 val,
					 unsigned long offset)
{}

#define get_pipectr_addr(pipenum)
#define get_pipetre_addr(pipenum)
#define get_pipetrn_addr(pipenum)

#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	/* __R8A66597_H__ */