linux/drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c

// SPDX-License-Identifier: ISC
/*
 * Copyright (c) 2010 Broadcom Corporation
 */

#define pr_fmt(fmt)

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

#include <brcmu_utils.h>

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();

struct sk_buff *brcmu_pkt_buf_get_skb(uint len)
{}
EXPORT_SYMBOL();

/* Free the driver packet. Free the tag if present */
void brcmu_pkt_buf_free_skb(struct sk_buff *skb)
{}
EXPORT_SYMBOL();

/*
 * osl multiple-precedence packet queue
 * hi_prec is always >= the number of the highest non-empty precedence
 */
struct sk_buff *brcmu_pktq_penq(struct pktq *pq, int prec,
				      struct sk_buff *p)
{}
EXPORT_SYMBOL();

struct sk_buff *brcmu_pktq_penq_head(struct pktq *pq, int prec,
					   struct sk_buff *p)
{}
EXPORT_SYMBOL();

struct sk_buff *brcmu_pktq_pdeq(struct pktq *pq, int prec)
{}
EXPORT_SYMBOL();

/*
 * precedence based dequeue with match function. Passing a NULL pointer
 * for the match function parameter is considered to be a wildcard so
 * any packet on the queue is returned. In that case it is no different
 * from brcmu_pktq_pdeq() above.
 */
struct sk_buff *brcmu_pktq_pdeq_match(struct pktq *pq, int prec,
				      bool (*match_fn)(struct sk_buff *skb,
						       void *arg), void *arg)
{}
EXPORT_SYMBOL();

struct sk_buff *brcmu_pktq_pdeq_tail(struct pktq *pq, int prec)
{}
EXPORT_SYMBOL();

void
brcmu_pktq_pflush(struct pktq *pq, int prec, bool dir,
		  bool (*fn)(struct sk_buff *, void *), void *arg)
{}
EXPORT_SYMBOL();

void brcmu_pktq_flush(struct pktq *pq, bool dir,
		      bool (*fn)(struct sk_buff *, void *), void *arg)
{}
EXPORT_SYMBOL();

void brcmu_pktq_init(struct pktq *pq, int num_prec, int max_len)
{}
EXPORT_SYMBOL();

struct sk_buff *brcmu_pktq_peek_tail(struct pktq *pq, int *prec_out)
{}
EXPORT_SYMBOL();

/* Return sum of lengths of a specific set of precedences */
int brcmu_pktq_mlen(struct pktq *pq, uint prec_bmp)
{}
EXPORT_SYMBOL();

/* Priority dequeue from a specific set of precedences */
struct sk_buff *brcmu_pktq_mdeq(struct pktq *pq, uint prec_bmp,
				      int *prec_out)
{}
EXPORT_SYMBOL();

/* Produce a human-readable string for boardrev */
char *brcmu_boardrev_str(u32 brev, char *buf)
{}
EXPORT_SYMBOL();

char *brcmu_dotrev_str(u32 dotrev, char *buf)
{}
EXPORT_SYMBOL();

#if defined(DEBUG)
/* pretty hex print a pkt buffer chain */
void brcmu_prpkt(const char *msg, struct sk_buff *p0)
{}
EXPORT_SYMBOL();

void brcmu_dbg_hex_dump(const void *data, size_t size, const char *fmt, ...)
{}
EXPORT_SYMBOL();

#endif				/* defined(DEBUG) */