linux/drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c

// SPDX-License-Identifier: GPL-2.0+
/* Microchip Sparx5 Switch driver
 *
 * Copyright (c) 2021 Microchip Technology Inc. and its subsidiaries.
 */

#include "sparx5_main_regs.h"
#include "sparx5_main.h"
#include "sparx5_port.h"
#include "sparx5_tc.h"

/* The IFH bit position of the first VSTAX bit. This is because the
 * VSTAX bit positions in Data sheet is starting from zero.
 */
#define VSTAX

#define ifh_encode_bitfield(ifh, value, pos, _width)

static void __ifh_encode_bitfield(void *ifh, u64 value, u32 pos, u32 width)
{}

void sparx5_set_port_ifh(void *ifh_hdr, u16 portno)
{}

void sparx5_set_port_ifh_rew_op(void *ifh_hdr, u32 rew_op)
{}

void sparx5_set_port_ifh_pdu_type(void *ifh_hdr, u32 pdu_type)
{}

void sparx5_set_port_ifh_pdu_w16_offset(void *ifh_hdr, u32 pdu_w16_offset)
{}

void sparx5_set_port_ifh_timestamp(void *ifh_hdr, u64 timestamp)
{}

static int sparx5_port_open(struct net_device *ndev)
{}

static int sparx5_port_stop(struct net_device *ndev)
{}

static void sparx5_set_rx_mode(struct net_device *dev)
{}

static int sparx5_port_get_phys_port_name(struct net_device *dev,
					  char *buf, size_t len)
{}

static int sparx5_set_mac_address(struct net_device *dev, void *p)
{}

static int sparx5_get_port_parent_id(struct net_device *dev,
				     struct netdev_phys_item_id *ppid)
{}

static int sparx5_port_hwtstamp_get(struct net_device *dev,
				    struct kernel_hwtstamp_config *cfg)
{}

static int sparx5_port_hwtstamp_set(struct net_device *dev,
				    struct kernel_hwtstamp_config *cfg,
				    struct netlink_ext_ack *extack)
{}

static const struct net_device_ops sparx5_port_netdev_ops =;

bool sparx5_netdevice_check(const struct net_device *dev)
{}

struct net_device *sparx5_create_netdev(struct sparx5 *sparx5, u32 portno)
{}

int sparx5_register_netdevs(struct sparx5 *sparx5)
{}

void sparx5_destroy_netdevs(struct sparx5 *sparx5)
{}

void sparx5_unregister_netdevs(struct sparx5 *sparx5)
{}