summaryrefslogtreecommitdiffstats
path: root/sys/dev/bwn/if_bwn_phy_g.h
diff options
context:
space:
mode:
authoradrian <adrian@FreeBSD.org>2016-05-14 23:38:21 +0000
committeradrian <adrian@FreeBSD.org>2016-05-14 23:38:21 +0000
commitcc11086634aba5c816a85dfad6f8659173a6021c (patch)
tree27a0113d35dd40f2da433a11a6c51ebf87d92ac6 /sys/dev/bwn/if_bwn_phy_g.h
parentaa409d9c0fb0a7137427356b4b1848468f2eefba (diff)
downloadFreeBSD-src-cc11086634aba5c816a85dfad6f8659173a6021c.zip
FreeBSD-src-cc11086634aba5c816a85dfad6f8659173a6021c.tar.gz
[bwn] add new types, prepare for PHY-N; prepare for rev 5xx firmware.
This is a big commit with a whole lot of little changes, all in preparation for PHY-N and rev 5xx firmware. * add in a write method that does an explicit flush * change the txpwr recalc type to return an enum, versus just an int. * add in PHY-N RX frame format bits, for decoding RX RSSI and such * add in the header space calculation for rev 5xx firmware. * add in a whole bunch of new types that the newer and 5g phy code needs. Notably, broadcom has a split 5GHz band concept - 5G-Low, 5G(-Mid) and 5G-High. I kept encountering this at my day job and wondered whether it was just some marketing thing. Nope, turns out it isn't; it's an actual PHY thing. * Add a "am I a siba bus device" method, that returns true. The aim is to convert all the siba/bhnd specific bits in if_bwn over to be wrapped in this check, so when landon does a BHND drive through he knows which bits need updating. Now, this the /complete/ set of changes for rev 5xx firmware. Notably, the TX descriptor handling isn't at all done yet and the format has changed. So don' try blindly flipping this on just yet!
Diffstat (limited to 'sys/dev/bwn/if_bwn_phy_g.h')
-rw-r--r--sys/dev/bwn/if_bwn_phy_g.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/bwn/if_bwn_phy_g.h b/sys/dev/bwn/if_bwn_phy_g.h
index 2de14e8..77c6fbb 100644
--- a/sys/dev/bwn/if_bwn_phy_g.h
+++ b/sys/dev/bwn/if_bwn_phy_g.h
@@ -49,7 +49,7 @@ extern int bwn_phy_g_switch_channel(struct bwn_mac *mac, uint32_t newchan);
extern uint32_t bwn_phy_g_get_default_chan(struct bwn_mac *mac);
extern void bwn_phy_g_set_antenna(struct bwn_mac *mac, int antenna);
extern int bwn_phy_g_im(struct bwn_mac *mac, int mode);
-extern int bwn_phy_g_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi);
+extern bwn_txpwr_result_t bwn_phy_g_recalc_txpwr(struct bwn_mac *mac, int ignore_tssi);
extern void bwn_phy_g_set_txpwr(struct bwn_mac *mac);
extern void bwn_phy_g_task_15s(struct bwn_mac *mac);
extern void bwn_phy_g_task_60s(struct bwn_mac *mac);
OpenPOWER on IntegriCloud