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 /* 26 * Global definitions. 27 */ 28 #define R88EE_PUBQ_NPAGES 115 29 #define R88EE_HPQ_NPAGES 41 30 #define R88EE_NPQ_NPAGES 1 31 #define R88EE_LPQ_NPAGES 13 32 #define R88EE_TX_PAGE_COUNT \ 33 (R88EE_PUBQ_NPAGES + R88EE_HPQ_NPAGES + \ 34 R88EE_NPQ_NPAGES + R88EE_LPQ_NPAGES) 35 36 37 /* 38 * Function declarations. 39 */ 40 /* r88ee_init.c */ 41 void r88ee_init_bb(struct rtwn_softc *); 42 void r88ee_init_intr(struct rtwn_softc *); 43 int r88ee_power_on(struct rtwn_softc *); 44 void r88ee_power_off(struct rtwn_softc *); 45 46 /* r88ee_rx.c */ 47 int r88ee_get_intr_status(struct rtwn_pci_softc *, int *); 48 void r88ee_enable_intr(struct rtwn_pci_softc *); 49 void r88ee_start_xfers(struct rtwn_softc *); 50 void r88ee_post_init(struct rtwn_softc *); 51 52 #endif /* RTL8188EE_H */ 53 54