b43: Add LP-PHY template
PATCH 1/1 b43: Add LP-PHY template
This adds template code for the LP-PHY.
No actual functionality is implemented.
Signed-off-by Michael Buesch <[email protected]>
---
John, please queue for the next merge window.
drivers/net/wireless/b43/Kconfig +12 -0
@@ -77,12 +77,24 @@ config B43_NPHY Support for the IEEE 802.11n draft. THIS IS BROKEN AND DOES NOT WORK YET. SAY N. +config B43_PHY_LP + bool "IEEE 802.11g LP-PHY support (BROKEN)" + depends on B43 && EXPERIMENTAL && BROKEN + ---help--- + Support for the LP-PHY. + The LP-PHY is an IEEE 802.11g based PHY built into some notebooks + and embedded devices. + + THIS IS BROKEN AND DOES NOT WORK YET. + + SAY N. + # This config option automatically enables b43 LEDS support, # if it's possible. config B43_LEDS bool depends on B43 && MAC80211_LEDS && (LEDS_CLASS = y || LEDS_CLASS = B43) default y
drivers/net/wireless/b43/phy_common.c +4 -1
@@ -27,12 +27,13 @@*/ #include "phy_common.h" #include "phy_g.h" #include "phy_a.h" #include "phy_n.h" +#include "phy_lp.h" #include "b43.h" #include "main.h" int b43_phy_operations_setup (struct b43_wldev *dev) {
@@ -51,13 +52,15 @@ int b43_phy_operations_setup(struct b43_case B43_PHYTYPE_N :#ifdef CONFIG_B43_NPHY phy->ops = &b43_phyops_n;#endif break ;case B43_PHYTYPE_LP : -/* FIXME: Not yet */ +#ifdef CONFIG_B43_PHY_LP + phy->ops = &b43_phyops_lp; +#endif break ; }if (B43_WARN_ON (!phy->ops))return -ENODEV ; err = phy->ops->allocate (dev);
drivers/net/wireless/b43/phy_lp.c new file +142 -0
142 lines not on this page · raw message
drivers/net/wireless/b43/phy_lp.h new file +14 -0
@@ -0,0 +1,14 @@ +#ifndef LINUX_B43_PHY_LP_H_ +#define LINUX_B43_PHY_LP_H_ + +/* Definitions for the LP-PHY */ + +struct b43_phy_lp { +bool initialised; +}; + + +struct b43_phy_operations ; +extern const struct b43_phy_operations b43_phyops_lp; + +#endif /* LINUX_B43_PHY_LP_H_ */
drivers/net/wireless/b43/Makefile +1 -0
@@ -2,12 +2,13 @@ b43-y += main.o b43-y += tables.o b43-$(CONFIG_B43_NPHY) += tables_nphy.o b43-y += phy_common.o b43-y += phy_g.o b43-y += phy_a.o b43-$(CONFIG_B43_NPHY) += phy_n.o +b43-$(CONFIG_B43_PHY_LP) += phy_lp.o b43-y += sysfs.o b43-y += xmit.o b43-y += lo.o b43-y += wa.o b43-y += dma.o b43-$(CONFIG_B43_PIO) += pio.o
drivers/net/wireless/b43/phy_common.h +3 -0
@@ -162,12 +162,13 @@ struct b43_phy_operations {void (*pwork_60sec)(struct b43_wldev *dev); };struct b43_phy_a ;struct b43_phy_g ;struct b43_phy_n ; +struct b43_phy_lp ;struct b43_phy {/* Hardware operation callbacks. */ const struct b43_phy_operations *ops;/* Most hardware context information is stored in the standard-
@@ -182,12 +183,14 @@ struct b43_phy {/* A-PHY specific information */ struct b43_phy_a *a;/* G-PHY specific information */ struct b43_phy_g *g;/* N-PHY specific information */ struct b43_phy_n *n; +/* LP-PHY specific information */ +struct b43_phy_lp *lp; };/* Band support flags. */ bool supports_2ghz;bool supports_5ghz;