Skip to content

Commit

Permalink
ath9k: move PCI code into separate file
Browse files Browse the repository at this point in the history
Now that we have converted all bus specific routines to replaceable, we
can move the PCI specific codes into a separate file.

Changes-licensed-under: ISC

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
Tested-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Gabor Juhos authored and John W. Linville committed Jan 29, 2009
1 parent 39c3c2f commit 6baff7f
Show file tree
Hide file tree
Showing 4 changed files with 328 additions and 279 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/ath9k/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ath9k-y += hw.o \
xmit.o \
rc.o

ath9k-$(CONFIG_PCI) += pci.o
ath9k-$(CONFIG_ATH9K_DEBUG) += debug.o

obj-$(CONFIG_ATH9K) += ath9k.o
19 changes: 18 additions & 1 deletion drivers/net/wireless/ath9k/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#define CORE_H

#include <linux/etherdevice.h>
#include <linux/pci.h>
#include <linux/device.h>
#include <net/mac80211.h>
#include <linux/leds.h>
#include <linux/rfkill.h>
Expand Down Expand Up @@ -767,4 +767,21 @@ static inline void ath_bus_cleanup(struct ath_softc *sc)
sc->bus_ops->cleanup(sc);
}

extern struct ieee80211_ops ath9k_ops;

irqreturn_t ath_isr(int irq, void *dev);
void ath_cleanup(struct ath_softc *sc);
int ath_attach(u16 devid, struct ath_softc *sc);
void ath_detach(struct ath_softc *sc);
const char *ath_mac_bb_name(u32 mac_bb_version);
const char *ath_rf_name(u16 rf_version);

#ifdef CONFIG_PCI
int ath_pci_init(void);
void ath_pci_exit(void);
#else
static inline int ath_pci_init(void) { return 0; };
static inline void ath_pci_exit(void) {};
#endif

#endif /* CORE_H */
Loading

0 comments on commit 6baff7f

Please sign in to comment.