xref: /freebsd/sys/dev/rtwn/if_rtwn_nop.h (revision 0957b409a90fd597c1e9124cbaf3edd2b488f4ac)
1 /*-
2  * Copyright (c) 2016 Andriy Voskoboinyk <avos@FreeBSD.org>
3  *
4  * Permission to use, copy, modify, and distribute this software for any
5  * purpose with or without fee is hereby granted, provided that the above
6  * copyright notice and this permission notice appear in all copies.
7  *
8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15  *
16  * $FreeBSD$
17  */
18 
19 #ifndef IF_RTWN_NOP_H
20 #define IF_RTWN_NOP_H
21 
22 static __inline void
23 rtwn_nop_softc(struct rtwn_softc *sc)
24 {
25 }
26 
27 static __inline int
28 rtwn_nop_int_softc(struct rtwn_softc *sc)
29 {
30 	return (0);
31 }
32 
33 static __inline int
34 rtwn_nop_int_softc_mbuf(struct rtwn_softc *sc, struct mbuf *m)
35 {
36 	return (0);
37 }
38 
39 static __inline void
40 rtwn_nop_softc_int(struct rtwn_softc *sc, int id)
41 {
42 }
43 
44 static __inline void
45 rtwn_nop_softc_uint32(struct rtwn_softc *sc, uint32_t reg)
46 {
47 }
48 
49 static __inline void
50 rtwn_nop_softc_chan(struct rtwn_softc *sc, struct ieee80211_channel *c)
51 {
52 }
53 
54 static __inline void
55 rtwn_nop_softc_vap(struct rtwn_softc *sc, struct ieee80211vap *vap)
56 {
57 }
58 
59 static __inline void
60 rtwn_nop_softc_uint8_int(struct rtwn_softc *sc, uint8_t *buf, int len)
61 {
62 }
63 
64 static __inline void
65 rtwn_nop_void_int(void *buf, int is5ghz)
66 {
67 }
68 
69 #endif	/* IF_RTWN_NOP_H */
70