linux/include/linux/dsa/ksz_common.h

/* SPDX-License-Identifier: GPL-2.0 */
/* Microchip switch tag common header
 *
 * Copyright (C) 2022 Microchip Technology Inc.
 */

#ifndef _NET_DSA_KSZ_COMMON_H_
#define _NET_DSA_KSZ_COMMON_H_

#include <net/dsa.h>

/* All time stamps from the KSZ consist of 2 bits for seconds and 30 bits for
 * nanoseconds. This is NOT the same as 32 bits for nanoseconds.
 */
#define KSZ_TSTAMP_SEC_MASK
#define KSZ_TSTAMP_NSEC_MASK

static inline ktime_t ksz_decode_tstamp(u32 tstamp)
{}

struct ksz_deferred_xmit_work {};

struct ksz_tagger_data {};

struct ksz_skb_cb {};

#define KSZ_SKB_CB(skb)

static inline struct ksz_tagger_data *
ksz_tagger_data(struct dsa_switch *ds)
{}

#endif /* _NET_DSA_KSZ_COMMON_H_ */