linux/drivers/net/ethernet/microchip/sparx5/sparx5_packet.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"

#define XTR_EOF_0
#define XTR_EOF_1
#define XTR_EOF_2
#define XTR_EOF_3
#define XTR_PRUNED
#define XTR_ABORT
#define XTR_ESCAPE
#define XTR_NOT_READY

#define XTR_VALID_BYTES(x)

#define INJ_TIMEOUT_NS

void sparx5_xtr_flush(struct sparx5 *sparx5, u8 grp)
{}

void sparx5_ifh_parse(u32 *ifh, struct frame_info *info)
{}

static void sparx5_xtr_grp(struct sparx5 *sparx5, u8 grp, bool byte_swap)
{}

static int sparx5_inject(struct sparx5 *sparx5,
			 u32 *ifh,
			 struct sk_buff *skb,
			 struct net_device *ndev)
{}

netdev_tx_t sparx5_port_xmit_impl(struct sk_buff *skb, struct net_device *dev)
{}

static enum hrtimer_restart sparx5_injection_timeout(struct hrtimer *tmr)
{}

int sparx5_manual_injection_mode(struct sparx5 *sparx5)
{}

irqreturn_t sparx5_xtr_handler(int irq, void *_sparx5)
{}

void sparx5_port_inj_timer_setup(struct sparx5_port *port)
{}