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