1 /* $OpenBSD: if_rtwnreg.h,v 1.3 2015/06/14 08:02:47 stsp Exp $ */
4 * Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
5 * Copyright (c) 2015 Stefan Sperling <stsp@openbsd.org>
6 * Copyright (c) 2016 Andriy Voskoboinyk <avos@FreeBSD.org>
8 * Permission to use, copy, modify, and distribute this software for any
9 * purpose with or without fee is hereby granted, provided that the above
10 * copyright notice and this permission notice appear in all copies.
12 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
13 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
14 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
15 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
16 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
17 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26 #include <dev/rtwn/rtl8192c/r92c.h>
32 #define R92CE_PUBQ_NPAGES 176
33 #define R92CE_HPQ_NPAGES 41
34 #define R92CE_LPQ_NPAGES 28
35 #define R92CE_TX_PAGE_COUNT \
36 (R92CE_PUBQ_NPAGES + R92CE_HPQ_NPAGES + R92CE_LPQ_NPAGES)
40 * Function declarations.
43 void r92ce_iq_calib(struct rtwn_softc *);
46 #ifndef RTWN_WITHOUT_UCODE
47 void r92ce_fw_reset(struct rtwn_softc *, int);
51 void r92ce_init_intr(struct rtwn_softc *);
52 void r92ce_init_edca(struct rtwn_softc *);
53 void r92ce_init_bb(struct rtwn_softc *);
54 int r92ce_power_on(struct rtwn_softc *);
55 void r92ce_power_off(struct rtwn_softc *);
56 void r92ce_init_ampdu(struct rtwn_softc *);
57 void r92ce_post_init(struct rtwn_softc *);
60 void r92ce_set_led(struct rtwn_softc *, int, int);
63 int r92ce_get_intr_status(struct rtwn_pci_softc *, int *);
64 void r92ce_enable_intr(struct rtwn_pci_softc *);
65 void r92ce_start_xfers(struct rtwn_softc *);
68 void r92ce_setup_tx_desc(struct rtwn_pci_softc *, void *, uint32_t);
69 void r92ce_tx_postsetup(struct rtwn_pci_softc *, void *,
71 void r92ce_copy_tx_desc(void *, const void *);
72 void r92ce_dump_tx_desc(struct rtwn_softc *, const void *);
74 #endif /* RTL8192CE_H */