Skip to contentSkip to conversation

ath5k: AHB port. Move pci related functions to separate file.

PATCH In review Wojciech Dubowik 2 participants 2 messages Nov 11, 2010 – Nov 12, 2010 1 message not in the archive Atheros ATH5K wireless driver

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 21800237.971289487370894.JavaMail.wlan@CHBU500181

#1 lore raw

PATCH 3/9 ath5k: AHB port. Move pci related functions to separate file.

Separate PCI related functions from base into own file.

---
 drivers/net/wireless/ath/ath5k/Makefile |    1 +
 drivers/net/wireless/ath/ath5k/ath5k.h  |    6 +
 drivers/net/wireless/ath/ath5k/base.c   |  269 +-----------------------------
 drivers/net/wireless/ath/ath5k/pci.c    |  285 +++++++++++++++++++++++++++++++
 4 files changed, 294 insertions(+), 267 deletions(-)
 create mode 100644 drivers/net/wireless/ath/ath5k/pci.c
drivers/net/wireless/ath/ath5k/Makefile +1 -0
index 2242a14..dae881c 100644
@@ -15,4 +15,5 @@ ath5k-y				+= rfkill.o
 ath5k-y				+= ani.o
 ath5k-y				+= sysfs.o
 ath5k-$(CONFIG_ATH5K_DEBUG)	+= debug.o
+ath5k-y				+= pci.o
 obj-$(CONFIG_ATH5K)		+= ath5k.o
drivers/net/wireless/ath/ath5k/ath5k.h +6 -0
index 09c3ede..2524a6c 100644
@@ -1131,14 +1131,20 @@ struct ath5k_hw {
 /*
  * Prototypes
  */
+extern const struct ieee80211_ops ath5k_hw_ops;
 
 /* Attach/Detach Functions */
+int ath5k_attach(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops);
+void ath5k_detach(struct ath5k_softc *sc);
 int ath5k_hw_attach(struct ath5k_softc *sc);
 void ath5k_hw_detach(struct ath5k_hw *ah);
 
 int ath5k_sysfs_register(struct ath5k_softc *sc);
 void ath5k_sysfs_unregister(struct ath5k_softc *sc);
 
+/*chip id helper function */
+const char * ath5k_chip_name(enum ath5k_srev_type type, u_int16_t val);
+
 /* LED functions */
 int ath5k_init_leds(struct ath5k_softc *sc);
 void ath5k_led_enable(struct ath5k_softc *sc);
drivers/net/wireless/ath/ath5k/base.c +2 -267

302 lines not on this page · raw message

drivers/net/wireless/ath/ath5k/pci.c new file +285 -0

285 lines not on this page · raw message

Signature · 1 line
1.7.1