#include "bcma_private.h"
#include <linux/slab.h>
#include <linux/bcma/bcma.h>
#include <linux/pci.h>
#include <linux/module.h>
static void bcma_host_pci_switch_core(struct bcma_device *core)
{ … }
static u16 bcma_host_pci_provide_access_to_core(struct bcma_device *core)
{ … }
static u8 bcma_host_pci_read8(struct bcma_device *core, u16 offset)
{ … }
static u16 bcma_host_pci_read16(struct bcma_device *core, u16 offset)
{ … }
static u32 bcma_host_pci_read32(struct bcma_device *core, u16 offset)
{ … }
static void bcma_host_pci_write8(struct bcma_device *core, u16 offset,
u8 value)
{ … }
static void bcma_host_pci_write16(struct bcma_device *core, u16 offset,
u16 value)
{ … }
static void bcma_host_pci_write32(struct bcma_device *core, u16 offset,
u32 value)
{ … }
#ifdef CONFIG_BCMA_BLOCKIO
static void bcma_host_pci_block_read(struct bcma_device *core, void *buffer,
size_t count, u16 offset, u8 reg_width)
{ … }
static void bcma_host_pci_block_write(struct bcma_device *core,
const void *buffer, size_t count,
u16 offset, u8 reg_width)
{ … }
#endif
static u32 bcma_host_pci_aread32(struct bcma_device *core, u16 offset)
{ … }
static void bcma_host_pci_awrite32(struct bcma_device *core, u16 offset,
u32 value)
{ … }
static const struct bcma_host_ops bcma_host_pci_ops = …;
static int bcma_host_pci_probe(struct pci_dev *dev,
const struct pci_device_id *id)
{ … }
static void bcma_host_pci_remove(struct pci_dev *dev)
{ … }
#ifdef CONFIG_PM_SLEEP
static int bcma_host_pci_suspend(struct device *dev)
{ … }
static int bcma_host_pci_resume(struct device *dev)
{ … }
static SIMPLE_DEV_PM_OPS(bcma_pm_ops, bcma_host_pci_suspend,
bcma_host_pci_resume);
#define BCMA_PM_OPS …
#else
#define BCMA_PM_OPS …
#endif
static const struct pci_device_id bcma_pci_bridge_tbl[] = …;
MODULE_DEVICE_TABLE(pci, bcma_pci_bridge_tbl);
static struct pci_driver bcma_pci_bridge_driver = …;
int __init bcma_host_pci_init(void)
{ … }
void __exit bcma_host_pci_exit(void)
{ … }
void bcma_host_pci_up(struct bcma_bus *bus)
{ … }
EXPORT_SYMBOL_GPL(…);
void bcma_host_pci_down(struct bcma_bus *bus)
{ … }
EXPORT_SYMBOL_GPL(…);
int bcma_host_pci_irq_ctl(struct bcma_bus *bus, struct bcma_device *core,
bool enable)
{ … }
EXPORT_SYMBOL_GPL(…);