linux/include/linux/linkmode.h

#ifndef __LINKMODE_H
#define __LINKMODE_H

#include <linux/bitmap.h>
#include <linux/ethtool.h>
#include <uapi/linux/ethtool.h>

static inline void linkmode_zero(unsigned long *dst)
{}

static inline void linkmode_fill(unsigned long *dst)
{}

static inline void linkmode_copy(unsigned long *dst, const unsigned long *src)
{}

static inline void linkmode_and(unsigned long *dst, const unsigned long *a,
				const unsigned long *b)
{}

static inline void linkmode_or(unsigned long *dst, const unsigned long *a,
				const unsigned long *b)
{}

static inline bool linkmode_empty(const unsigned long *src)
{}

static inline bool linkmode_andnot(unsigned long *dst,
				   const unsigned long *src1,
				   const unsigned long *src2)
{}

#define linkmode_test_bit
#define linkmode_set_bit
#define linkmode_clear_bit
#define linkmode_mod_bit

static inline void linkmode_set_bit_array(const int *array, int array_size,
					  unsigned long *addr)
{}

static inline int linkmode_equal(const unsigned long *src1,
				 const unsigned long *src2)
{}

static inline int linkmode_intersects(const unsigned long *src1,
				      const unsigned long *src2)
{}

static inline int linkmode_subset(const unsigned long *src1,
				  const unsigned long *src2)
{}

void linkmode_resolve_pause(const unsigned long *local_adv,
			    const unsigned long *partner_adv,
			    bool *tx_pause, bool *rx_pause);

void linkmode_set_pause(unsigned long *advertisement, bool tx, bool rx);

#endif /* __LINKMODE_H */