xref: /freebsd/sys/dev/rtwn/if_rtwn_nop.h (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
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 
17 #ifndef IF_RTWN_NOP_H
18 #define IF_RTWN_NOP_H
19 
20 static __inline void
21 rtwn_nop_softc(struct rtwn_softc *sc)
22 {
23 }
24 
25 static __inline int
26 rtwn_nop_int_softc(struct rtwn_softc *sc)
27 {
28 	return (0);
29 }
30 
31 static __inline int
32 rtwn_nop_int_softc_mbuf(struct rtwn_softc *sc, struct mbuf *m)
33 {
34 	return (0);
35 }
36 
37 static __inline void
38 rtwn_nop_softc_int(struct rtwn_softc *sc, int id)
39 {
40 }
41 
42 static __inline void
43 rtwn_nop_softc_uint32(struct rtwn_softc *sc, uint32_t reg)
44 {
45 }
46 
47 static __inline void
48 rtwn_nop_softc_chan(struct rtwn_softc *sc, struct ieee80211_channel *c)
49 {
50 }
51 
52 static __inline void
53 rtwn_nop_softc_vap(struct rtwn_softc *sc, struct ieee80211vap *vap)
54 {
55 }
56 
57 static __inline void
58 rtwn_nop_softc_uint8_int(struct rtwn_softc *sc, uint8_t *buf, int len)
59 {
60 }
61 
62 static __inline void
63 rtwn_nop_void_int(void *buf, int is5ghz)
64 {
65 }
66 
67 #endif	/* IF_RTWN_NOP_H */
68