#ifndef _ISP1760_CORE_H_
#define _ISP1760_CORE_H_
#include <linux/ioport.h>
#include <linux/regmap.h>
#include "isp1760-hcd.h"
#include "isp1760-udc.h"
struct device;
struct gpio_desc;
#define ISP1760_FLAG_BUS_WIDTH_16 …
#define ISP1760_FLAG_PERIPHERAL_EN …
#define ISP1760_FLAG_ANALOG_OC …
#define ISP1760_FLAG_DACK_POL_HIGH …
#define ISP1760_FLAG_DREQ_POL_HIGH …
#define ISP1760_FLAG_ISP1761 …
#define ISP1760_FLAG_INTR_POL_HIGH …
#define ISP1760_FLAG_INTR_EDGE_TRIG …
#define ISP1760_FLAG_ISP1763 …
#define ISP1760_FLAG_BUS_WIDTH_8 …
struct isp1760_device { … };
int isp1760_register(struct resource *mem, int irq, unsigned long irqflags,
struct device *dev, unsigned int devflags);
void isp1760_unregister(struct device *dev);
void isp1760_set_pullup(struct isp1760_device *isp, bool enable);
static inline u32 isp1760_field_read(struct regmap_field **fields, u32 field)
{ … }
static inline void isp1760_field_write(struct regmap_field **fields, u32 field,
u32 val)
{ … }
static inline void isp1760_field_set(struct regmap_field **fields, u32 field)
{ … }
static inline void isp1760_field_clear(struct regmap_field **fields, u32 field)
{ … }
static inline u32 isp1760_reg_read(struct regmap *regs, u32 reg)
{ … }
static inline void isp1760_reg_write(struct regmap *regs, u32 reg, u32 val)
{ … }
#endif