#define pr_fmt(fmt) …
#include <linux/nl80211.h>
#include <linux/pci.h>
#include <linux/etherdevice.h>
#include <linux/module.h>
#include "../ath.h"
#include "ath5k.h"
#include "debug.h"
#include "base.h"
#include "reg.h"
static const struct pci_device_id ath5k_pci_id_table[] = …;
MODULE_DEVICE_TABLE(pci, ath5k_pci_id_table);
static void ath5k_pci_read_cachesize(struct ath_common *common, int *csz)
{ … }
static bool
ath5k_pci_eeprom_read(struct ath_common *common, u32 offset, u16 *data)
{ … }
int ath5k_hw_read_srev(struct ath5k_hw *ah)
{ … }
static int ath5k_pci_eeprom_read_mac(struct ath5k_hw *ah, u8 *mac)
{ … }
static const struct ath_bus_ops ath_pci_bus_ops = …;
static int
ath5k_pci_probe(struct pci_dev *pdev,
const struct pci_device_id *id)
{ … }
static void
ath5k_pci_remove(struct pci_dev *pdev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int ath5k_pci_suspend(struct device *dev)
{ … }
static int ath5k_pci_resume(struct device *dev)
{ … }
static SIMPLE_DEV_PM_OPS(ath5k_pm_ops, ath5k_pci_suspend, ath5k_pci_resume);
#define ATH5K_PM_OPS …
#else
#define ATH5K_PM_OPS …
#endif
static struct pci_driver ath5k_pci_driver = …;
module_pci_driver(…) …;