linux/drivers/net/ethernet/apm/xgene/xgene_enet_hw.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* Applied Micro X-Gene SoC Ethernet Driver
 *
 * Copyright (c) 2014, Applied Micro Circuits Corporation
 * Authors: Iyappan Subramanian <[email protected]>
 *	    Ravi Patel <[email protected]>
 *	    Keyur Chudgar <[email protected]>
 */

#include "xgene_enet_main.h"
#include "xgene_enet_hw.h"

static void xgene_enet_ring_init(struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_ring_set_type(struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_ring_set_recombbuf(struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_ring_wr32(struct xgene_enet_desc_ring *ring,
				 u32 offset, u32 data)
{}

static void xgene_enet_ring_rd32(struct xgene_enet_desc_ring *ring,
				 u32 offset, u32 *data)
{}

static void xgene_enet_write_ring_state(struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_clr_ring_state(struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_set_ring_state(struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_set_ring_id(struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_clr_desc_ring_id(struct xgene_enet_desc_ring *ring)
{}

static struct xgene_enet_desc_ring *xgene_enet_setup_ring(
				    struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_clear_ring(struct xgene_enet_desc_ring *ring)
{}

static void xgene_enet_wr_cmd(struct xgene_enet_desc_ring *ring, int count)
{}

static u32 xgene_enet_ring_len(struct xgene_enet_desc_ring *ring)
{}

void xgene_enet_parse_error(struct xgene_enet_desc_ring *ring,
			    enum xgene_enet_err_code status)
{}

static void xgene_enet_wr_csr(struct xgene_enet_pdata *pdata,
			      u32 offset, u32 val)
{}

static void xgene_enet_wr_ring_if(struct xgene_enet_pdata *pdata,
				  u32 offset, u32 val)
{}

static void xgene_enet_wr_diag_csr(struct xgene_enet_pdata *pdata,
				   u32 offset, u32 val)
{}

static void xgene_enet_wr_mcx_csr(struct xgene_enet_pdata *pdata,
				  u32 offset, u32 val)
{}

void xgene_enet_wr_mac(struct xgene_enet_pdata *pdata, u32 wr_addr, u32 wr_data)
{}

static void xgene_enet_rd_csr(struct xgene_enet_pdata *pdata,
			      u32 offset, u32 *val)
{}

static void xgene_enet_rd_diag_csr(struct xgene_enet_pdata *pdata,
				   u32 offset, u32 *val)
{}

static void xgene_enet_rd_mcx_csr(struct xgene_enet_pdata *pdata,
				  u32 offset, u32 *val)
{}

u32 xgene_enet_rd_mac(struct xgene_enet_pdata *pdata, u32 rd_addr)
{}

u32 xgene_enet_rd_stat(struct xgene_enet_pdata *pdata, u32 rd_addr)
{}

static void xgene_gmac_set_mac_addr(struct xgene_enet_pdata *pdata)
{}

static int xgene_enet_ecc_init(struct xgene_enet_pdata *pdata)
{}

static void xgene_gmac_reset(struct xgene_enet_pdata *pdata)
{}

static void xgene_enet_configure_clock(struct xgene_enet_pdata *pdata)
{}

static void xgene_gmac_set_speed(struct xgene_enet_pdata *pdata)
{}

static void xgene_enet_set_frame_size(struct xgene_enet_pdata *pdata, int size)
{}

static void xgene_gmac_enable_tx_pause(struct xgene_enet_pdata *pdata,
				       bool enable)
{}

static void xgene_gmac_flowctl_tx(struct xgene_enet_pdata *pdata, bool enable)
{}

static void xgene_gmac_flowctl_rx(struct xgene_enet_pdata *pdata, bool enable)
{}

static void xgene_gmac_init(struct xgene_enet_pdata *pdata)
{}

static void xgene_gmac_get_drop_cnt(struct xgene_enet_pdata *pdata,
				    u32 *rx, u32 *tx)
{}

static void xgene_enet_config_ring_if_assoc(struct xgene_enet_pdata *pdata)
{}

static void xgene_enet_cle_bypass(struct xgene_enet_pdata *pdata,
				  u32 dst_ring_num, u16 bufpool_id,
				  u16 nxtbufpool_id)
{}

static void xgene_gmac_rx_enable(struct xgene_enet_pdata *pdata)
{}

static void xgene_gmac_tx_enable(struct xgene_enet_pdata *pdata)
{}

static void xgene_gmac_rx_disable(struct xgene_enet_pdata *pdata)
{}

static void xgene_gmac_tx_disable(struct xgene_enet_pdata *pdata)
{}

bool xgene_ring_mgr_init(struct xgene_enet_pdata *p)
{}

static int xgene_enet_reset(struct xgene_enet_pdata *pdata)
{}

static void xgene_enet_clear(struct xgene_enet_pdata *pdata,
			     struct xgene_enet_desc_ring *ring)
{}

static void xgene_gport_shutdown(struct xgene_enet_pdata *pdata)
{}

static u32 xgene_enet_flowctrl_cfg(struct net_device *ndev)
{}

static void xgene_enet_adjust_link(struct net_device *ndev)
{}

#ifdef CONFIG_ACPI
static struct acpi_device *acpi_phy_find_device(struct device *dev)
{}
#endif

int xgene_enet_phy_connect(struct net_device *ndev)
{}

static int xgene_mdiobus_register(struct xgene_enet_pdata *pdata,
				  struct mii_bus *mdio)
{}

int xgene_enet_mdio_config(struct xgene_enet_pdata *pdata)
{}

void xgene_enet_phy_disconnect(struct xgene_enet_pdata *pdata)
{}

void xgene_enet_mdio_remove(struct xgene_enet_pdata *pdata)
{}

const struct xgene_mac_ops xgene_gmac_ops =;

const struct xgene_port_ops xgene_gport_ops =;

struct xgene_ring_ops xgene_ring1_ops =;