138 if ((
val & 0x0000ff00) != 0)
143 DBG(
"ath9K: PCI memory map error\n") ;
150 DBG(
"ath9k: No memory for net80211_device\n");
171 DBG(
"ath9k: Failed to initialize device\n");
176 DBG(
"ath9k: %s mem=0x%lx, irq=%d\n",
177 hw_name, (
unsigned long)mem, pdev->
irq);
unsigned long membase
Memory base.
uint8_t irq
Interrupt number.
#define PCI_CACHE_LINE_SIZE
PCI cache line size.
void net80211_free(struct net80211_device *dev)
Free 802.11 device.
#define PCI_LATENCY_TIMER
PCI latency timer.
int pci_read_config_word(struct pci_device *pci, unsigned int where, uint16_t *value)
Read 16-bit word from PCI configuration space.
void adjust_pci_device(struct pci_device *pci)
Enable PCI device.
#define PCI_SUBSYSTEM_ID
PCI subsystem ID.
struct net80211_device * dev
static void pci_set_drvdata(struct pci_device *pci, void *priv)
Set PCI driver-private data.
#define ENOMEM
Not enough space.
uint16_t device
Device ID.
int pci_read_config_dword(struct pci_device *pci, unsigned int where, uint32_t *value)
Read 32-bit dword from PCI configuration space.
void * priv
Driver private data.
struct net80211_device * net80211_alloc(size_t priv_size)
Allocate 802.11 device.
static const struct ath_bus_ops ath_pci_bus_ops
int pci_write_config_byte(struct pci_device *pci, unsigned int where, uint8_t value)
Write byte to PCI configuration space.
Structure encapsulating the complete state of an 802.11 device.
struct device * dev
Underlying hardware device.
struct net_device * netdev
The net_device that wraps us.
int ath9k_init_device(u16 devid, struct ath_softc *sc, u16 subsysid, const struct ath_bus_ops *bus_ops)
#define EIO
Input/output error.
int pci_write_config_dword(struct pci_device *pci, unsigned int where, uint32_t value)
Write 32-bit dword to PCI configuration space.
void iounmap(volatile const void *io_addr)
Unmap I/O address.
#define DBG(...)
Print a debugging message.
void * pci_ioremap(struct pci_device *pci, unsigned long bus_addr, size_t len)
Map PCI bus address as an I/O address.
void ath9k_hw_name(struct ath_hw *ah, char *hw_name, size_t len)
int pci_read_config_byte(struct pci_device *pci, unsigned int where, uint8_t *value)
Read byte from PCI configuration space.