Skip to contentSkip to conversation

ath5k: Move PCI bus functions to separate file.

PATCH Superseded Wojciech Dubowik 1 participant 1 message Nov 26, 2010 1 message not in the archive Atheros ATH5K wireless driver

v6 of 7 Superseded Latest is v7 →

lore
Share & tools
lore
#1 lore raw

PATCH v6 3/9 ath5k: Move PCI bus functions to separate file.

In reply to a message not in the archive

From: Felix Fietkau <[email protected]>

---
 drivers/net/wireless/ath/ath5k/Makefile |    1 +
 drivers/net/wireless/ath/ath5k/ath5k.h  |    5 +
 drivers/net/wireless/ath/ath5k/base.c   |  267 +-----------------------------
 drivers/net/wireless/ath/ath5k/pci.c    |  284 +++++++++++++++++++++++++++++++
 4 files changed, 291 insertions(+), 266 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 +5 -0
index fe7eae4..68e1794 100644
@@ -1132,6 +1132,7 @@ struct ath5k_hw {
 /*
  * Prototypes
  */
+extern const struct ieee80211_ops ath5k_hw_ops;
 
 /* Initialization and detach functions */
 int ath5k_init_softc(struct ath5k_softc *sc, const struct ath_bus_ops *bus_ops);
@@ -1142,6 +1143,10 @@ void ath5k_hw_deinit(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 +1 -266

294 lines not on this page · raw message

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

284 lines not on this page · raw message

Signature · 1 line
1.7.1