linux/drivers/net/wireless/marvell/mwifiex/util.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * NXP Wireless LAN device driver: utility functions
 *
 * Copyright 2011-2020 NXP
 */

#ifndef _MWIFIEX_UTIL_H_
#define _MWIFIEX_UTIL_H_

struct mwifiex_private;

struct mwifiex_dma_mapping {};

struct mwifiex_cb {};

/* size/addr for mwifiex_debug_info */
#define item_size(n)
#define item_addr(n)

/* size/addr for struct mwifiex_adapter */
#define adapter_item_size(n)
#define adapter_item_addr(n)

struct mwifiex_debug_data {};

static inline struct mwifiex_rxinfo *MWIFIEX_SKB_RXCB(struct sk_buff *skb)
{}

static inline struct mwifiex_txinfo *MWIFIEX_SKB_TXCB(struct sk_buff *skb)
{}

static inline void mwifiex_store_mapping(struct sk_buff *skb,
					 struct mwifiex_dma_mapping *mapping)
{}

static inline void mwifiex_get_mapping(struct sk_buff *skb,
				       struct mwifiex_dma_mapping *mapping)
{}

static inline dma_addr_t MWIFIEX_SKB_DMA_ADDR(struct sk_buff *skb)
{}

int mwifiex_debug_info_to_buffer(struct mwifiex_private *priv, char *buf,
				 struct mwifiex_debug_info *info);

static inline void le16_unaligned_add_cpu(__le16 *var, u16 val)
{}

#endif /* !_MWIFIEX_UTIL_H_ */