diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2020-09-12 19:33:25 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2020-09-12 19:33:25 +0000 |
commit | 752c173687a3f220c24e8e251a98b448dbeed3ff (patch) | |
tree | 355b76d1a6f3b353a476194481bb93fbcff4c37c /sys/dev/rtwn/rtl8192c | |
parent | c55ffe543826f574f6560b05642ee4c06178853c (diff) | |
download | src-test2-752c173687a3f220c24e8e251a98b448dbeed3ff.tar.gz src-test2-752c173687a3f220c24e8e251a98b448dbeed3ff.zip |
Notes
Diffstat (limited to 'sys/dev/rtwn/rtl8192c')
32 files changed, 1 insertions, 43 deletions
diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce.h b/sys/dev/rtwn/rtl8192c/pci/r92ce.h index 5d13f1608dd3..39e08b4afb12 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce.h +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce.h @@ -25,7 +25,6 @@ #include <dev/rtwn/rtl8192c/r92c.h> - /* * Global definitions. */ @@ -35,7 +34,6 @@ #define R92CE_TX_PAGE_COUNT \ (R92CE_PUBQ_NPAGES + R92CE_HPQ_NPAGES + R92CE_LPQ_NPAGES) - /* * Function declarations. */ diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c b/sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c index bff91b743383..d3f653741977 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c @@ -61,7 +61,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/pci/r92ce_reg.h> #include <dev/rtwn/rtl8192c/pci/r92ce_tx_desc.h> - static struct rtwn_r92c_txpwr r92c_txpwr; void r92ce_attach(struct rtwn_pci_softc *); diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce_calib.c b/sys/dev/rtwn/rtl8192c/pci/r92ce_calib.c index aebf60ae62bc..f4e68e12af28 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce_calib.c +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce_calib.c @@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/pci/r92ce.h> #include <dev/rtwn/rtl8192c/pci/r92ce_reg.h> - /* Registers to save and restore during IQ calibration. */ struct r92ce_iq_cal_reg_vals { uint32_t adda[16]; diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce_fw.c b/sys/dev/rtwn/rtl8192c/pci/r92ce_fw.c index b28104463b6c..b28f80ce0805 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce_fw.c +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce_fw.c @@ -54,7 +54,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/pci/r92ce.h> - #ifndef RTWN_WITHOUT_UCODE void r92ce_fw_reset(struct rtwn_softc *sc, int reason) diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce_init.c b/sys/dev/rtwn/rtl8192c/pci/r92ce_init.c index 5b7f9a0e1987..7b07f6cfc518 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce_init.c +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce_init.c @@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/pci/r92ce.h> #include <dev/rtwn/rtl8192c/pci/r92ce_reg.h> - void r92ce_init_intr(struct rtwn_softc *sc) { diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce_priv.h b/sys/dev/rtwn/rtl8192c/pci/r92ce_priv.h index 7416516cd986..08172a607f27 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce_priv.h +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce_priv.h @@ -25,7 +25,6 @@ #include <dev/rtwn/rtl8192c/r92c_priv.h> - /* * MAC initialization values. */ @@ -53,7 +52,6 @@ static const struct rtwn_mac_prog rtl8192ce_mac[] = { { 0x70b, 0x87 } }; - /* * Baseband initialization values. */ diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce_reg.h b/sys/dev/rtwn/rtl8192c/pci/r92ce_reg.h index 355d8f4622cd..d76cc64e2c7f 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce_reg.h +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce_reg.h @@ -51,7 +51,6 @@ #define R92C_UART_TX_DES 0x370 #define R92C_UART_RX_DES 0x378 - /* Bits for R92C_GPIO_MUXCFG. */ #define R92C_GPIO_MUXCFG_RFKILL 0x0008 diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce_rx.c b/sys/dev/rtwn/rtl8192c/pci/r92ce_rx.c index d8b3c5e0b53e..7cd6283ea18a 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce_rx.c +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce_rx.c @@ -56,7 +56,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/pci/r92ce.h> #include <dev/rtwn/rtl8192c/pci/r92ce_reg.h> - int r92ce_get_intr_status(struct rtwn_pci_softc *pc, int *rings) { diff --git a/sys/dev/rtwn/rtl8192c/pci/r92ce_tx.c b/sys/dev/rtwn/rtl8192c/pci/r92ce_tx.c index 19de15b5a63e..ea6535f46b5f 100644 --- a/sys/dev/rtwn/rtl8192c/pci/r92ce_tx.c +++ b/sys/dev/rtwn/rtl8192c/pci/r92ce_tx.c @@ -56,7 +56,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/pci/r92ce.h> #include <dev/rtwn/rtl8192c/pci/r92ce_tx_desc.h> - void r92ce_setup_tx_desc(struct rtwn_pci_softc *pc, void *desc, uint32_t next_desc_addr) diff --git a/sys/dev/rtwn/rtl8192c/r92c.h b/sys/dev/rtwn/rtl8192c/r92c.h index f215e34fd8ce..4d4307c786a4 100644 --- a/sys/dev/rtwn/rtl8192c/r92c.h +++ b/sys/dev/rtwn/rtl8192c/r92c.h @@ -35,7 +35,6 @@ #define R92C_CALIB_THRESHOLD 2 - /* * Function declarations. */ diff --git a/sys/dev/rtwn/rtl8192c/r92c_attach.c b/sys/dev/rtwn/rtl8192c/r92c_attach.c index a0df8ec7688d..d71a595dc6a7 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_attach.c +++ b/sys/dev/rtwn/rtl8192c/r92c_attach.c @@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c_reg.h> #include <dev/rtwn/rtl8192c/r92c_var.h> - void r92c_detach_private(struct rtwn_softc *sc) { diff --git a/sys/dev/rtwn/rtl8192c/r92c_beacon.c b/sys/dev/rtwn/rtl8192c/r92c_beacon.c index 15af77a06fea..477358bbf931 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_beacon.c +++ b/sys/dev/rtwn/rtl8192c/r92c_beacon.c @@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c_reg.h> #include <dev/rtwn/rtl8192c/r92c_tx_desc.h> - void r92c_beacon_init(struct rtwn_softc *sc, void *buf, int id) { diff --git a/sys/dev/rtwn/rtl8192c/r92c_calib.c b/sys/dev/rtwn/rtl8192c/r92c_calib.c index 7a2e998c1bfb..c340c816c727 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_calib.c +++ b/sys/dev/rtwn/rtl8192c/r92c_calib.c @@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c.h> #include <dev/rtwn/rtl8192c/r92c_reg.h> - /* Registers to save and restore during IQ calibration. */ struct r92c_iq_cal_reg_vals { uint32_t adda[16]; diff --git a/sys/dev/rtwn/rtl8192c/r92c_chan.c b/sys/dev/rtwn/rtl8192c/r92c_chan.c index 94a1284fed18..01e0cfb629f1 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_chan.c +++ b/sys/dev/rtwn/rtl8192c/r92c_chan.c @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c_reg.h> #include <dev/rtwn/rtl8192c/r92c_var.h> - static int r92c_get_power_group(struct rtwn_softc *sc, struct ieee80211_channel *c) { diff --git a/sys/dev/rtwn/rtl8192c/r92c_fw.c b/sys/dev/rtwn/rtl8192c/r92c_fw.c index 0791990a0c00..7ad6d7d2dfe6 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_fw.c +++ b/sys/dev/rtwn/rtl8192c/r92c_fw.c @@ -60,7 +60,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c_fw_cmd.h> #include <dev/rtwn/rtl8192c/r92c_tx_desc.h> - #ifndef RTWN_WITHOUT_UCODE static int r92c_fw_cmd(struct rtwn_softc *sc, uint8_t id, const void *buf, int len) diff --git a/sys/dev/rtwn/rtl8192c/r92c_init.c b/sys/dev/rtwn/rtl8192c/r92c_init.c index bf043b8e376f..4e29fe0b033c 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_init.c +++ b/sys/dev/rtwn/rtl8192c/r92c_init.c @@ -53,7 +53,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c_reg.h> #include <dev/rtwn/rtl8192c/r92c_var.h> - int r92c_check_condition(struct rtwn_softc *sc, const uint8_t cond[]) { diff --git a/sys/dev/rtwn/rtl8192c/r92c_priv.h b/sys/dev/rtwn/rtl8192c/r92c_priv.h index 80f058284941..645f07a58704 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_priv.h +++ b/sys/dev/rtwn/rtl8192c/r92c_priv.h @@ -36,7 +36,6 @@ struct rtwn_r92c_txpwr { int8_t ht20_max_pwr[R92C_MAX_CHAINS][R92C_GROUP_2G]; }; - /* * Baseband initialization values (shared parts). */ @@ -132,7 +131,6 @@ static const struct rtwn_agc_prog rtl8192ce_agc[] = { } }; - /* * RF initialization values. */ @@ -331,7 +329,6 @@ static const struct rtwn_rf_prog rtl8192c_rf[] = { { 0, NULL, NULL, { 0 }, NULL } }; - struct rtwn_r92c_txagc { uint8_t pwr[R92C_GROUP_2G][28]; /* RTWN_RIDX_HT_MCS(15) + 1 */ }; diff --git a/sys/dev/rtwn/rtl8192c/r92c_reg.h b/sys/dev/rtwn/rtl8192c/r92c_reg.h index c3def33e21bb..d01168fe395a 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_reg.h +++ b/sys/dev/rtwn/rtl8192c/r92c_reg.h @@ -224,7 +224,6 @@ #define R92C_MACID1 0x700 #define R92C_BSSID1 0x708 - #define R92C_MACID(id) ((id) == 0 ? R92C_MACID0 : R92C_MACID1) #define R92C_BSSID(id) ((id) == 0 ? R92C_BSSID0 : R92C_BSSID1) @@ -628,7 +627,6 @@ #define R92C_CAMCMD_CLR 0x40000000 #define R92C_CAMCMD_POLLING 0x80000000 - /* * CAM entries. */ @@ -666,7 +664,6 @@ #define R92C_RXFLTMAP_SUBTYPE(subtype) \ (1 << ((subtype) >> IEEE80211_FC0_SUBTYPE_SHIFT)) - /* * Baseband registers. */ @@ -850,7 +847,6 @@ #define R92C_POWER_IQK_RESULT_S 16 #define R92C_POWER_IQK_RESULT_M 0x03ff0000 - /* * RF (6052) registers. */ diff --git a/sys/dev/rtwn/rtl8192c/r92c_rf.c b/sys/dev/rtwn/rtl8192c/r92c_rf.c index f36f035f2a9b..c547a06ea980 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_rf.c +++ b/sys/dev/rtwn/rtl8192c/r92c_rf.c @@ -52,7 +52,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c_var.h> #include <dev/rtwn/rtl8192c/r92c_rom_defs.h> - uint32_t r92c_rf_read(struct rtwn_softc *sc, int chain, uint8_t addr) { diff --git a/sys/dev/rtwn/rtl8192c/r92c_rom.c b/sys/dev/rtwn/rtl8192c/r92c_rom.c index 0a85c817b2f8..ea3f3a253df0 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_rom.c +++ b/sys/dev/rtwn/rtl8192c/r92c_rom.c @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c_var.h> #include <dev/rtwn/rtl8192c/r92c_rom_image.h> - static void r92c_set_chains(struct rtwn_softc *sc) { diff --git a/sys/dev/rtwn/rtl8192c/r92c_rx.c b/sys/dev/rtwn/rtl8192c/r92c_rx.c index 24759d1bb0f9..258b914d4465 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_rx.c +++ b/sys/dev/rtwn/rtl8192c/r92c_rx.c @@ -51,7 +51,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c.h> #include <dev/rtwn/rtl8192c/r92c_rx_desc.h> - int r92c_classify_intr(struct rtwn_softc *sc, void *buf, int len) { diff --git a/sys/dev/rtwn/rtl8192c/r92c_tx.c b/sys/dev/rtwn/rtl8192c/r92c_tx.c index 07f787e75bab..ab2d05635358 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_tx.c +++ b/sys/dev/rtwn/rtl8192c/r92c_tx.c @@ -54,7 +54,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/r92c_var.h> #include <dev/rtwn/rtl8192c/r92c_tx_desc.h> - static int r92c_tx_get_sco(struct rtwn_softc *sc, struct ieee80211_channel *c) { diff --git a/sys/dev/rtwn/rtl8192c/r92c_tx_desc.h b/sys/dev/rtwn/rtl8192c/r92c_tx_desc.h index c3bc87caa31f..c65ece0e3c02 100644 --- a/sys/dev/rtwn/rtl8192c/r92c_tx_desc.h +++ b/sys/dev/rtwn/rtl8192c/r92c_tx_desc.h @@ -109,7 +109,6 @@ struct r92c_tx_desc { #define R92C_TXDW6_MAX_AGG_S 11 } __packed __attribute__((aligned(4))); - /* Rate adaptation modes. */ #define R92C_RAID_11BGN 0 #define R92C_RAID_11GN 1 diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu.h b/sys/dev/rtwn/rtl8192c/usb/r92cu.h index 4cc010494a18..f9b9861867bc 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu.h +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu.h @@ -23,14 +23,12 @@ #include <dev/rtwn/rtl8192c/r92c.h> - /* * Global definitions. */ #define R92CU_PUBQ_NPAGES 231 #define R92CU_TX_PAGE_COUNT 248 - /* * Function declarations. */ diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_attach.c b/sys/dev/rtwn/rtl8192c/usb/r92cu_attach.c index 4a7698410c56..ef436ee3ed01 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu_attach.c +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_attach.c @@ -57,7 +57,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/usb/r92cu_reg.h> #include <dev/rtwn/rtl8192c/usb/r92cu_tx_desc.h> - static struct rtwn_r92c_txpwr r92c_txpwr; void r92cu_attach(struct rtwn_usb_softc *); diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c b/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c index 13ccd50adbb8..94563fed635e 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c @@ -55,7 +55,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/usb/r92cu.h> #include <dev/rtwn/rtl8192c/usb/r92cu_reg.h> - void r92cu_init_bb(struct rtwn_softc *sc) { diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_led.c b/sys/dev/rtwn/rtl8192c/usb/r92cu_led.c index 724320946639..534987b6a1c0 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu_led.c +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_led.c @@ -50,7 +50,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/usb/r92cu.h> - void r92cu_set_led(struct rtwn_softc *sc, int led, int on) { diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_priv.h b/sys/dev/rtwn/rtl8192c/usb/r92cu_priv.h index 8e3203f082f3..a7f9e8d49596 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu_priv.h +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_priv.h @@ -23,7 +23,6 @@ #include <dev/rtwn/rtl8192c/r92c_priv.h> - /* * MAC initialization values. */ @@ -52,7 +51,6 @@ static const struct rtwn_mac_prog rtl8192cu_mac[] = { { 0x70a, 0x65 }, { 0x70b, 0x87 } }; - /* * Baseband initialization values. */ @@ -274,7 +272,6 @@ static const struct rtwn_bb_prog rtl8192cu_bb[] = { } }; - static const uint32_t rtl8188ru_agc_vals[] = { 0x7b000001, 0x7b010001, 0x7b020001, 0x7b030001, 0x7b040001, 0x7b050001, 0x7b060001, 0x7b070001, 0x7b080001, 0x7a090001, diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_reg.h b/sys/dev/rtwn/rtl8192c/usb/r92cu_reg.h index a9db29ccbca4..f8ab133f5371 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu_reg.h +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_reg.h @@ -23,14 +23,12 @@ #include <dev/rtwn/rtl8192c/r92c_reg.h> - /* * MAC registers. */ /* System Configuration. */ #define R92C_USB_SIE_INTF 0x0e0 - /* * USB registers. */ diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_rx.c b/sys/dev/rtwn/rtl8192c/usb/r92cu_rx.c index fcd760b6136b..6710b1a8fa3c 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu_rx.c +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_rx.c @@ -48,7 +48,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/usb/r92cu.h> - int r92cu_align_rx(int totlen, int len) { diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_tx.c b/sys/dev/rtwn/rtl8192c/usb/r92cu_tx.c index 04dbade0651a..a9e37ba819de 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu_tx.c +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_tx.c @@ -46,7 +46,6 @@ __FBSDID("$FreeBSD$"); #include <dev/rtwn/rtl8192c/usb/r92cu.h> #include <dev/rtwn/rtl8192c/usb/r92cu_tx_desc.h> - void r92cu_dump_tx_desc(struct rtwn_softc *sc, const void *desc) { diff --git a/sys/dev/rtwn/rtl8192c/usb/r92cu_tx_desc.h b/sys/dev/rtwn/rtl8192c/usb/r92cu_tx_desc.h index 16c2d0587e4c..f160f1310913 100644 --- a/sys/dev/rtwn/rtl8192c/usb/r92cu_tx_desc.h +++ b/sys/dev/rtwn/rtl8192c/usb/r92cu_tx_desc.h @@ -42,4 +42,4 @@ struct r92cu_tx_desc { uint16_t pad; } __packed __attribute__((aligned(4))); -#endif /* R92CU_TX_DESC_H */
\ No newline at end of file +#endif /* R92CU_TX_DESC_H */ |