xref: /freebsd/sys/dev/rtwn/rtl8188e/pci/r88ee.h (revision af23369a6deaaeb612ab266eb88b8bb8d560c322)
1 /*-
2  * Copyright (c) 2018 Farhan Khan <khanzf@gmail.com>
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 RTL8188EE_H
20 #define RTL8188EE_H
21 
22 #include <dev/rtwn/rtl8188e/r88e.h>
23 
24 /*
25  * Global definitions.
26  */
27 #define R88EE_PUBQ_NPAGES	115
28 #define R88EE_HPQ_NPAGES	41
29 #define R88EE_NPQ_NPAGES	1
30 #define R88EE_LPQ_NPAGES	13
31 #define R88EE_TX_PAGE_COUNT	\
32 	(R88EE_PUBQ_NPAGES + R88EE_HPQ_NPAGES + \
33 	 R88EE_NPQ_NPAGES + R88EE_LPQ_NPAGES)
34 
35 /*
36  * Function declarations.
37  */
38 /* r88ee_init.c */
39 void	r88ee_init_bb(struct rtwn_softc *);
40 void	r88ee_init_intr(struct rtwn_softc *);
41 int	r88ee_power_on(struct rtwn_softc *);
42 void	r88ee_power_off(struct rtwn_softc *);
43 
44 /* r88ee_rx.c */
45 int	r88ee_get_intr_status(struct rtwn_pci_softc *, int *);
46 void	r88ee_enable_intr(struct rtwn_pci_softc *);
47 void	r88ee_start_xfers(struct rtwn_softc *);
48 void	r88ee_post_init(struct rtwn_softc *);
49 
50 #endif	/* RTL8188EE_H */
51