linux/drivers/net/ethernet/aquantia/atlantic/aq_hw.h

/* SPDX-License-Identifier: GPL-2.0-only */
/* Atlantic Network Driver
 *
 * Copyright (C) 2014-2019 aQuantia Corporation
 * Copyright (C) 2019-2020 Marvell International Ltd.
 */

/* File aq_hw.h: Declaration of abstract interface for NIC hardware specific
 * functions.
 */

#ifndef AQ_HW_H
#define AQ_HW_H

#include "aq_common.h"
#include "aq_rss.h"
#include "hw_atl/hw_atl_utils.h"

#define AQ_HW_MAC_COUNTER_HZ
#define AQ_HW_PHY_COUNTER_HZ

enum aq_tc_mode {};

#define AQ_RX_FIRST_LOC_FVLANID
#define AQ_RX_LAST_LOC_FVLANID
#define AQ_RX_FIRST_LOC_FETHERT
#define AQ_RX_LAST_LOC_FETHERT
#define AQ_RX_FIRST_LOC_FL3L4
#define AQ_RX_LAST_LOC_FL3L4
#define AQ_RX_MAX_RXNFC_LOC
#define AQ_VLAN_MAX_FILTERS
#define AQ_RX_QUEUE_NOT_ASSIGNED

#define AQ_FRAC_PER_NS

/* Used for rate to Mbps conversion */
#define AQ_MBPS_DIVISOR

/* NIC H/W capabilities */
struct aq_hw_caps_s {};

struct aq_hw_link_status_s {};

struct aq_stats_s {};

#define AQ_HW_IRQ_INVALID
#define AQ_HW_IRQ_INTX
#define AQ_HW_IRQ_MSI
#define AQ_HW_IRQ_MSIX

#define AQ_HW_SERVICE_IRQS

#define AQ_HW_POWER_STATE_D0
#define AQ_HW_POWER_STATE_D3

#define AQ_HW_FLAG_STARTED
#define AQ_HW_FLAG_STOPPING
#define AQ_HW_FLAG_RESETTING
#define AQ_HW_FLAG_CLOSING
#define AQ_HW_PTP_AVAILABLE
#define AQ_HW_LINK_DOWN
#define AQ_HW_FLAG_ERR_UNPLUG
#define AQ_HW_FLAG_ERR_HW

#define AQ_HW_FLAG_ERRORS

#define AQ_NIC_FLAGS_IS_NOT_READY

#define AQ_NIC_FLAGS_IS_NOT_TX_READY

#define AQ_HW_MEDIA_TYPE_TP
#define AQ_HW_MEDIA_TYPE_FIBRE

#define AQ_HW_TXD_MULTIPLE
#define AQ_HW_RXD_MULTIPLE

#define AQ_HW_QUEUES_MAX
#define AQ_HW_MULTICAST_ADDRESS_MAX

#define AQ_HW_PTP_TC

#define AQ_HW_LED_BLINK
#define AQ_HW_LED_DEFAULT

#define AQ_HW_MEDIA_DETECT_CNT

enum aq_priv_flags {};

#define AQ_HW_LOOPBACK_MASK

#define ATL_HW_CHIP_MIPS
#define ATL_HW_CHIP_TPO2
#define ATL_HW_CHIP_RPF2
#define ATL_HW_CHIP_MPI_AQ
#define ATL_HW_CHIP_ATLANTIC
#define ATL_HW_CHIP_REVISION_A0
#define ATL_HW_CHIP_REVISION_B0
#define ATL_HW_CHIP_REVISION_B1
#define ATL_HW_CHIP_ANTIGUA

#define ATL_HW_IS_CHIP_FEATURE(_HW_, _F_)

struct aq_hw_s {};

struct aq_ring_s;
struct aq_ring_param_s;
struct sk_buff;
struct aq_rx_filter_l3l4;

struct aq_hw_ops {};

struct aq_fw_ops {};

#endif /* AQ_HW_H */