linux/drivers/bcma/host_pci.c

/*
 * Broadcom specific AMBA
 * PCI Host
 *
 * Licensed under the GNU/GPL. See COPYING for details.
 */

#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)
{}

/* Provides access to the requested core. Returns base offset that has to be
 * used. It makes use of fixed windows when possible. */
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 /* CONFIG_PM_SLEEP */

#define BCMA_PM_OPS

#endif /* CONFIG_PM_SLEEP */

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)
{}

/**************************************************
 * Runtime ops for drivers.
 **************************************************/

/* See also pcicore_up */
void bcma_host_pci_up(struct bcma_bus *bus)
{}
EXPORT_SYMBOL_GPL();

/* See also pcicore_down */
void bcma_host_pci_down(struct bcma_bus *bus)
{}
EXPORT_SYMBOL_GPL();

/* See also si_pci_setup */
int bcma_host_pci_irq_ctl(struct bcma_bus *bus, struct bcma_device *core,
			  bool enable)
{}
EXPORT_SYMBOL_GPL();