#include <linux/usb/net2280.h>
#include <linux/usb/usb338x.h>
#ifdef __KERNEL__
static inline u32 get_idx_reg(struct net2280_regs __iomem *regs, u32 index)
{ … }
static inline void
set_idx_reg(struct net2280_regs __iomem *regs, u32 index, u32 value)
{ … }
#endif
#define PCI_VENDOR_ID_PLX_LEGACY …
#define PLX_LEGACY …
#define PLX_2280 …
#define PLX_SUPERSPEED …
#define PLX_PCIE …
#define REG_DIAG …
#define RETRY_COUNTER …
#define FORCE_PCI_SERR …
#define FORCE_PCI_INTERRUPT …
#define FORCE_USB_INTERRUPT …
#define FORCE_CPU_INTERRUPT …
#define ILLEGAL_BYTE_ENABLES …
#define FAST_TIMES …
#define FORCE_RECEIVE_ERROR …
#define FORCE_TRANSMIT_CRC_ERROR …
#define REG_FRAME …
#define REG_CHIPREV …
#define REG_HS_NAK_RATE …
#define CHIPREV_1 …
#define CHIPREV_1A …
#define DEFECT_7374_NUMBEROF_MAX_WAIT_LOOPS …
#define DEFECT_7374_PROCESSOR_WAIT_TIME …
#define EP0_SS_MAX_PACKET_SIZE …
#define EP0_HS_MAX_PACKET_SIZE …
#ifdef __KERNEL__
struct net2280_dma { … } __aligned(…);
struct net2280_ep { … };
static inline void allow_status(struct net2280_ep *ep)
{ … }
static inline void allow_status_338x(struct net2280_ep *ep)
{ … }
struct net2280_request { … };
struct net2280 { … };
static inline void set_halt(struct net2280_ep *ep)
{ … }
static inline void clear_halt(struct net2280_ep *ep)
{ … }
#define DEFECT7374_FSM_FIELD …
#define DEFECT7374_FSM_WAITING_FOR_CONTROL_READ …
#define DEFECT7374_FSM_NON_SS_CONTROL_READ …
#define DEFECT7374_FSM_SS_CONTROL_READ …
#ifdef USE_RDK_LEDS
static inline void net2280_led_init(struct net2280 *dev)
{ … }
static inline
void net2280_led_speed(struct net2280 *dev, enum usb_device_speed speed)
{ … }
static inline void net2280_led_active(struct net2280 *dev, int is_active)
{ … }
static inline void net2280_led_shutdown(struct net2280 *dev)
{ … }
#else
#define net2280_led_init …
#define net2280_led_speed …
#define net2280_led_shutdown …
#endif
#define ep_dbg(ndev, fmt, args...) …
#define ep_vdbg(ndev, fmt, args...) …
#define ep_info(ndev, fmt, args...) …
#define ep_warn(ndev, fmt, args...) …
#define ep_err(ndev, fmt, args...) …
static inline void set_fifo_bytecount(struct net2280_ep *ep, unsigned count)
{ … }
static inline void start_out_naking(struct net2280_ep *ep)
{ … }
static inline void stop_out_naking(struct net2280_ep *ep)
{ … }
static inline void set_max_speed(struct net2280_ep *ep, u32 max)
{ … }
#endif