linux/drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c

// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
/* Copyright 2019 NXP */

#include <linux/acpi.h>
#include <linux/pcs-lynx.h>
#include <linux/phy/phy.h>
#include <linux/property.h>

#include "dpaa2-eth.h"
#include "dpaa2-mac.h"

#define phylink_to_dpaa2_mac(config)

#define DPMAC_PROTOCOL_CHANGE_VER_MAJOR
#define DPMAC_PROTOCOL_CHANGE_VER_MINOR

#define DPAA2_MAC_FEATURE_PROTOCOL_CHANGE

static int dpaa2_mac_cmp_ver(struct dpaa2_mac *mac,
			     u16 ver_major, u16 ver_minor)
{}

static void dpaa2_mac_detect_features(struct dpaa2_mac *mac)
{}

static int phy_mode(enum dpmac_eth_if eth_if, phy_interface_t *if_mode)
{}

static enum dpmac_eth_if dpmac_eth_if_mode(phy_interface_t if_mode)
{}

static struct fwnode_handle *dpaa2_mac_get_node(struct device *dev,
						u16 dpmac_id)
{}

static int dpaa2_mac_get_if_mode(struct fwnode_handle *dpmac_node,
				 struct dpmac_attr attr)
{}

static struct phylink_pcs *dpaa2_mac_select_pcs(struct phylink_config *config,
						phy_interface_t interface)
{}

static void dpaa2_mac_config(struct phylink_config *config, unsigned int mode,
			     const struct phylink_link_state *state)
{}

static void dpaa2_mac_link_up(struct phylink_config *config,
			      struct phy_device *phy,
			      unsigned int mode, phy_interface_t interface,
			      int speed, int duplex,
			      bool tx_pause, bool rx_pause)
{}

static void dpaa2_mac_link_down(struct phylink_config *config,
				unsigned int mode,
				phy_interface_t interface)
{}

static const struct phylink_mac_ops dpaa2_mac_phylink_ops =;

static int dpaa2_pcs_create(struct dpaa2_mac *mac,
			    struct fwnode_handle *dpmac_node,
			    int id)
{}

static void dpaa2_pcs_destroy(struct dpaa2_mac *mac)
{}

static void dpaa2_mac_set_supported_interfaces(struct dpaa2_mac *mac)
{}

void dpaa2_mac_start(struct dpaa2_mac *mac)
{}

void dpaa2_mac_stop(struct dpaa2_mac *mac)
{}

int dpaa2_mac_connect(struct dpaa2_mac *mac)
{}

void dpaa2_mac_disconnect(struct dpaa2_mac *mac)
{}

int dpaa2_mac_open(struct dpaa2_mac *mac)
{}

void dpaa2_mac_close(struct dpaa2_mac *mac)
{}

static char dpaa2_mac_ethtool_stats[][ETH_GSTRING_LEN] =;

#define DPAA2_MAC_NUM_STATS

int dpaa2_mac_get_sset_count(void)
{}

void dpaa2_mac_get_strings(u8 *data)
{}

void dpaa2_mac_get_ethtool_stats(struct dpaa2_mac *mac, u64 *data)
{}