Skip to contentSkip to conversation

b43: N-PHY: put 2056-radio's specific code in separated file

PATCH New Rafał Miłecki 1 participant 1 message Oct 14, 2010 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH v2 4/4 b43: N-PHY: put 2056-radio's specific code in separated file

---
V2: Update comments:
1) We just split tables into separated: PHY and radio
2) Remove Michael from Copyrights of radio_2056.c (it came from copy & paste)

---
 drivers/net/wireless/b43/Makefile      |    1 +
 drivers/net/wireless/b43/phy_n.c       |    1 +
 drivers/net/wireless/b43/radio_2056.c  |   43 ++++++++++++++++++++++++++++++++
 drivers/net/wireless/b43/radio_2056.h  |   42 +++++++++++++++++++++++++++++++
 drivers/net/wireless/b43/tables_nphy.c |   20 +--------------
 drivers/net/wireless/b43/tables_nphy.h |   11 --------
 6 files changed, 88 insertions(+), 30 deletions(-)
 create mode 100644 drivers/net/wireless/b43/radio_2056.c
 create mode 100644 drivers/net/wireless/b43/radio_2056.h
drivers/net/wireless/b43/Makefile +1 -0
index 0398c7c..69d4af0 100644
@@ -2,6 +2,7 @@ b43-y				+= main.o
 b43-y				+= tables.o
 b43-$(CONFIG_B43_NPHY)		+= tables_nphy.o
 b43-$(CONFIG_B43_NPHY)		+= radio_2055.o
+b43-$(CONFIG_B43_NPHY)		+= radio_2056.o
 b43-y				+= phy_common.o
 b43-y				+= phy_g.o
 b43-y				+= phy_a.o
drivers/net/wireless/b43/phy_n.c +1 -0
index 45fa2bb..dfec549 100644
@@ -30,6 +30,7 @@
 #include "phy_n.h"
 #include "tables_nphy.h"
 #include "radio_2055.h"
+#include "radio_2056.h"
 #include "main.h"
 
 struct nphy_txgains {
drivers/net/wireless/b43/radio_2056.c new file +43 -0

43 lines not on this page · raw message

drivers/net/wireless/b43/radio_2056.h new file +42 -0

42 lines not on this page · raw message

drivers/net/wireless/b43/tables_nphy.c +1 -19
index cff7bd3..d60db07 100644
@@ -1,7 +1,7 @@
 /*
 
   Broadcom B43 wireless driver
-  IEEE 802.11n PHY and radio device data tables
+  IEEE 802.11n PHY data tables
 
   Copyright (c) 2008 Michael Buesch <[email protected]>
 
@@ -27,24 +27,6 @@
 #include "phy_common.h"
 #include "phy_n.h"
 
-static const struct b43_nphy_channeltab_entry_rev3 b43_nphy_channeltab_rev3[] = {
-};
-
-const struct b43_nphy_channeltab_entry_rev3 *
-b43_nphy_get_chantabent_rev3(struct b43_wldev *dev, u16 freq)
-{
-	const struct b43_nphy_channeltab_entry_rev3 *e;
-	unsigned int i;
-
-	for (i = 0; i < ARRAY_SIZE(b43_nphy_channeltab_rev3); i++) {
-		e = &(b43_nphy_channeltab_rev3[i]);
-		if (e->freq == freq)
-			return e;
-	}
-
-	return NULL;
-}
-
 static const u8 b43_ntab_adjustpower0[] = {
 	0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01,
 	0x02, 0x02, 0x02, 0x02, 0x03, 0x03, 0x03, 0x03,
drivers/net/wireless/b43/tables_nphy.h +0 -11
index cb06d39..4ec593b 100644
@@ -12,17 +12,6 @@ struct b43_phy_n_sfo_cfg {
 	u16 phy_bw6;
 };
 
-struct b43_nphy_channeltab_entry_rev3 {
-	/* The channel number */
-	u8 channel;
-	/* The channel frequency in MHz */
-	u16 freq;
-	/* Radio register values on channelswitch */
-	/* TODO */
-	/* PHY register values on channelswitch */
-	struct b43_phy_n_sfo_cfg phy_regs;
-};
-
 struct b43_wldev;
 
 struct nphy_txiqcal_ladder {
Signature · 1 line
1.7.1