linux/drivers/net/wireless/intersil/p54/p54usb.h

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef P54USB_H
#define P54USB_H

/*
 * Defines for USB based mac80211 Prism54 driver
 *
 * Copyright (c) 2006, Michael Wu <[email protected]>
 *
 * Based on the islsm (softmac prism54) driver, which is:
 * Copyright 2004-2006 Jean-Baptiste Note <[email protected]>, et al.
 */

/* for isl3886 register definitions used on ver 1 devices */
#include "p54pci.h"
#include <linux/usb/net2280.h>

/* pci */
#define NET2280_BASE
#define NET2280_BASE2

/* gpio */
#define P54U_BRG_POWER_UP
#define P54U_BRG_POWER_DOWN

/* devinit */
#define NET2280_CLK_4Mhz
#define NET2280_CLK_30Mhz
#define NET2280_CLK_60Mhz
#define NET2280_CLK_STOP
#define NET2280_PCI_ENABLE
#define NET2280_PCI_SOFT_RESET

/* endpoints */
#define NET2280_CLEAR_NAK_OUT_PACKETS_MODE
#define NET2280_FIFO_FLUSH

/* irq */
#define NET2280_USB_INTERRUPT_ENABLE
#define NET2280_PCI_INTA_INTERRUPT
#define NET2280_PCI_INTA_INTERRUPT_ENABLE

/* registers */
#define NET2280_DEVINIT
#define NET2280_USBIRQENB1
#define NET2280_IRQSTAT1
#define NET2280_FIFOCTL
#define NET2280_GPIOCTL
#define NET2280_RELNUM
#define NET2280_EPA_RSP
#define NET2280_EPA_STAT
#define NET2280_EPB_STAT
#define NET2280_EPC_RSP
#define NET2280_EPC_STAT
#define NET2280_EPD_STAT

#define NET2280_EPA_CFG
#define NET2280_EPB_CFG
#define NET2280_EPC_CFG
#define NET2280_EPD_CFG
#define NET2280_EPE_CFG
#define NET2280_EPF_CFG
#define P54U_DEV_BASE

struct net2280_tx_hdr {} __packed;

struct lm87_tx_hdr {} __packed;

/* Some flags for the isl hardware registers controlling DMA inside the
 * chip */
#define ISL38XX_DMA_STATUS_DONE
#define ISL38XX_DMA_STATUS_READY
#define NET2280_EPA_FIFO_PCI_ADDR
#define ISL38XX_DMA_MASTER_CONTROL_TRIGGER

enum net2280_op_type {};

struct net2280_reg_write {} __packed;

struct net2280_reg_read {} __packed;

#define P54U_FW_BLOCK

#define X2_SIGNATURE
#define X2_SIGNATURE_SIZE

struct x2_header {} __packed;

/* pipes 3 and 4 are not used by the driver */
#define P54U_PIPE_NUMBER

enum p54u_pipe_addr {};

struct p54u_rx_info {};

enum p54u_hw_type {};

struct p54u_priv {};

#endif /* P54USB_H */