linux/drivers/net/usb/aqc111.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/* Aquantia Corp. Aquantia AQtion USB to 5GbE Controller
 * Copyright (C) 2003-2005 David Hollis <[email protected]>
 * Copyright (C) 2005 Phil Chang <[email protected]>
 * Copyright (C) 2002-2003 TiVo Inc.
 * Copyright (C) 2017-2018 ASIX
 * Copyright (C) 2018 Aquantia Corp.
 */

#ifndef __LINUX_USBNET_AQC111_H
#define __LINUX_USBNET_AQC111_H

#define URB_SIZE

#define AQ_MCAST_FILTER_SIZE
#define AQ_MAX_MCAST

#define AQ_ACCESS_MAC
#define AQ_FLASH_PARAMETERS
#define AQ_PHY_POWER
#define AQ_WOL_CFG
#define AQ_PHY_OPS

#define AQ_USB_PHY_SET_TIMEOUT
#define AQ_USB_SET_TIMEOUT

/* Feature. ********************************************/
#define AQ_SUPPORT_FEATURE

#define AQ_SUPPORT_HW_FEATURE

#define AQ_SUPPORT_VLAN_FEATURE

/* SFR Reg. ********************************************/

#define SFR_GENERAL_STATUS
#define SFR_CHIP_STATUS
#define SFR_RX_CTL
	#define SFR_RX_CTL_TXPADCRC
	#define SFR_RX_CTL_IPE
	#define SFR_RX_CTL_DROPCRCERR
	#define SFR_RX_CTL_START
	#define SFR_RX_CTL_RF_WAK
	#define SFR_RX_CTL_AP
	#define SFR_RX_CTL_AM
	#define SFR_RX_CTL_AB
	#define SFR_RX_CTL_AMALL
	#define SFR_RX_CTL_PRO
	#define SFR_RX_CTL_STOP
#define SFR_INTER_PACKET_GAP_0
#define SFR_NODE_ID
#define SFR_MULTI_FILTER_ARRY
#define SFR_MEDIUM_STATUS_MODE
	#define SFR_MEDIUM_XGMIIMODE
	#define SFR_MEDIUM_FULL_DUPLEX
	#define SFR_MEDIUM_RXFLOW_CTRLEN
	#define SFR_MEDIUM_TXFLOW_CTRLEN
	#define SFR_MEDIUM_JUMBO_EN
	#define SFR_MEDIUM_RECEIVE_EN
#define SFR_MONITOR_MODE
	#define SFR_MONITOR_MODE_EPHYRW
	#define SFR_MONITOR_MODE_RWLC
	#define SFR_MONITOR_MODE_RWMP
	#define SFR_MONITOR_MODE_RWWF
	#define SFR_MONITOR_MODE_RW_FLAG
	#define SFR_MONITOR_MODE_PMEPOL
	#define SFR_MONITOR_MODE_PMETYPE
#define SFR_PHYPWR_RSTCTL
	#define SFR_PHYPWR_RSTCTL_BZ
	#define SFR_PHYPWR_RSTCTL_IPRL
#define SFR_VLAN_ID_ADDRESS
#define SFR_VLAN_ID_CONTROL
	#define SFR_VLAN_CONTROL_WE
	#define SFR_VLAN_CONTROL_RD
	#define SFR_VLAN_CONTROL_VSO
	#define SFR_VLAN_CONTROL_VFE
#define SFR_VLAN_ID_DATA0
#define SFR_VLAN_ID_DATA1
#define SFR_RX_BULKIN_QCTRL
	#define SFR_RX_BULKIN_QCTRL_TIME
	#define SFR_RX_BULKIN_QCTRL_IFG
	#define SFR_RX_BULKIN_QCTRL_SIZE
#define SFR_RX_BULKIN_QTIMR_LOW
#define SFR_RX_BULKIN_QTIMR_HIGH
#define SFR_RX_BULKIN_QSIZE
#define SFR_RX_BULKIN_QIFG
#define SFR_RXCOE_CTL
	#define SFR_RXCOE_IP
	#define SFR_RXCOE_TCP
	#define SFR_RXCOE_UDP
	#define SFR_RXCOE_ICMP
	#define SFR_RXCOE_IGMP
	#define SFR_RXCOE_TCPV6
	#define SFR_RXCOE_UDPV6
	#define SFR_RXCOE_ICMV6
#define SFR_TXCOE_CTL
	#define SFR_TXCOE_IP
	#define SFR_TXCOE_TCP
	#define SFR_TXCOE_UDP
	#define SFR_TXCOE_ICMP
	#define SFR_TXCOE_IGMP
	#define SFR_TXCOE_TCPV6
	#define SFR_TXCOE_UDPV6
	#define SFR_TXCOE_ICMV6
#define SFR_BM_INT_MASK
#define SFR_BMRX_DMA_CONTROL
	#define SFR_BMRX_DMA_EN
#define SFR_BMTX_DMA_CONTROL
#define SFR_PAUSE_WATERLVL_LOW
#define SFR_PAUSE_WATERLVL_HIGH
#define SFR_ARC_CTRL
#define SFR_SWP_CTRL
#define SFR_TX_PAUSE_RESEND_T
#define SFR_ETH_MAC_PATH
	#define SFR_RX_PATH_READY
#define SFR_BULK_OUT_CTRL
	#define SFR_BULK_OUT_FLUSH_EN
	#define SFR_BULK_OUT_EFF_EN

#define AQ_FW_VER_MAJOR
#define AQ_FW_VER_MINOR
#define AQ_FW_VER_REV

/*PHY_OPS**********************************************************************/

#define AQ_ADV_100M
#define AQ_ADV_1G
#define AQ_ADV_2G5
#define AQ_ADV_5G
#define AQ_ADV_MASK

#define AQ_PAUSE
#define AQ_ASYM_PAUSE
#define AQ_LOW_POWER
#define AQ_PHY_POWER_EN
#define AQ_WOL
#define AQ_DOWNSHIFT

#define AQ_DSH_RETRIES_SHIFT
#define AQ_DSH_RETRIES_MASK

#define AQ_WOL_FLAG_MP

/******************************************************************************/

struct aqc111_wol_cfg {} __packed;

#define WOL_CFG_SIZE

struct aqc111_data {};

#define AQ_LS_MASK
#define AQ_SPEED_MASK
#define AQ_SPEED_SHIFT
#define AQ_INT_SPEED_5G
#define AQ_INT_SPEED_2_5G
#define AQ_INT_SPEED_1G
#define AQ_INT_SPEED_100M

/* TX Descriptor */
#define AQ_TX_DESC_LEN_MASK
#define AQ_TX_DESC_DROP_PADD
#define AQ_TX_DESC_VLAN
#define AQ_TX_DESC_MSS_MASK
#define AQ_TX_DESC_MSS_SHIFT
#define AQ_TX_DESC_VLAN_MASK
#define AQ_TX_DESC_VLAN_SHIFT

#define AQ_RX_HW_PAD

/* RX Packet Descriptor */
#define AQ_RX_PD_L4_ERR
#define AQ_RX_PD_L3_ERR
#define AQ_RX_PD_L4_TYPE_MASK
#define AQ_RX_PD_L4_UDP
#define AQ_RX_PD_L4_TCP
#define AQ_RX_PD_L3_TYPE_MASK
#define AQ_RX_PD_L3_IP
#define AQ_RX_PD_L3_IP6

#define AQ_RX_PD_VLAN
#define AQ_RX_PD_RX_OK
#define AQ_RX_PD_DROP
#define AQ_RX_PD_LEN_MASK
#define AQ_RX_PD_LEN_SHIFT
#define AQ_RX_PD_VLAN_SHIFT

/* RX Descriptor header */
#define AQ_RX_DH_PKT_CNT_MASK
#define AQ_RX_DH_DESC_OFFSET_MASK
#define AQ_RX_DH_DESC_OFFSET_SHIFT

static struct {} AQC111_BULKIN_SIZE[] =;

#endif /* __LINUX_USBNET_AQC111_H */