linux/drivers/net/wireless/quantenna/qtnfmac/bus.h

/* SPDX-License-Identifier: GPL-2.0+ */
/* Copyright (c) 2015 Quantenna Communications. All rights reserved. */

#ifndef QTNFMAC_BUS_H
#define QTNFMAC_BUS_H

#include <linux/netdevice.h>
#include <linux/workqueue.h>

#include "trans.h"
#include "core.h"

#define QTNF_MAX_MAC

#define HBM_FRAME_META_MAGIC_PATTERN_S
#define HBM_FRAME_META_MAGIC_PATTERN_E

struct qtnf_frame_meta_info {} __packed;

enum qtnf_fw_state {};

struct qtnf_bus;

struct qtnf_bus_ops {};

struct qtnf_bus {};

static inline bool qtnf_fw_is_up(struct qtnf_bus *bus)
{}

static inline bool qtnf_fw_is_attached(struct qtnf_bus *bus)
{}

static inline void *get_bus_priv(struct qtnf_bus *bus)
{}

/* callback wrappers */

static inline int qtnf_bus_preinit(struct qtnf_bus *bus)
{}

static inline void qtnf_bus_stop(struct qtnf_bus *bus)
{}

static inline int qtnf_bus_data_tx(struct qtnf_bus *bus, struct sk_buff *skb,
				   unsigned int macid, unsigned int vifid)
{}

static inline void
qtnf_bus_data_tx_timeout(struct qtnf_bus *bus, struct net_device *ndev)
{}

static inline int qtnf_bus_control_tx(struct qtnf_bus *bus, struct sk_buff *skb)
{}

static inline void qtnf_bus_data_rx_start(struct qtnf_bus *bus)
{}

static inline void qtnf_bus_data_rx_stop(struct qtnf_bus *bus)
{}

static __always_inline void qtnf_bus_lock(struct qtnf_bus *bus)
{}

static __always_inline void qtnf_bus_unlock(struct qtnf_bus *bus)
{}

/* interface functions from common layer */

int qtnf_core_attach(struct qtnf_bus *bus);
void qtnf_core_detach(struct qtnf_bus *bus);

#endif /* QTNFMAC_BUS_H */