#ifndef __MT76_UTIL_H
#define __MT76_UTIL_H
#include <linux/skbuff.h>
#include <linux/bitops.h>
#include <linux/bitfield.h>
#include <net/mac80211.h>
struct mt76_worker
{ … };
enum { … };
#define MT76_INCR(_var, _size) …
int mt76_wcid_alloc(u32 *mask, int size);
static inline void
mt76_wcid_mask_set(u32 *mask, int idx)
{ … }
static inline void
mt76_wcid_mask_clear(u32 *mask, int idx)
{ … }
static inline void
mt76_skb_set_moredata(struct sk_buff *skb, bool enable)
{ … }
int __mt76_worker_fn(void *ptr);
static inline int
mt76_worker_setup(struct ieee80211_hw *hw, struct mt76_worker *w,
void (*fn)(struct mt76_worker *),
const char *name)
{ … }
static inline void mt76_worker_schedule(struct mt76_worker *w)
{ … }
static inline void mt76_worker_disable(struct mt76_worker *w)
{ … }
static inline void mt76_worker_enable(struct mt76_worker *w)
{ … }
static inline void mt76_worker_teardown(struct mt76_worker *w)
{ … }
#endif