Linux Kernel
3.7.1
|
#include <linux/pci.h>
#include <linux/mod_devicetable.h>
#include <linux/bcma/bcma_driver_chipcommon.h>
#include <linux/bcma/bcma_driver_pci.h>
#include <linux/bcma/bcma_driver_mips.h>
#include <linux/bcma/bcma_driver_gmac_cmn.h>
#include <linux/ssb/ssb.h>
#include <linux/bcma/bcma_regs.h>
Go to the source code of this file.
Data Structures | |
struct | bcma_chipinfo |
struct | bcma_boardinfo |
struct | bcma_host_ops |
struct | bcma_device |
struct | bcma_driver |
struct | bcma_bus |
Enumerations | |
enum | bcma_hosttype { BCMA_HOSTTYPE_PCI, BCMA_HOSTTYPE_SDIO, BCMA_HOSTTYPE_SOC } |
enum | bcma_clkmode { BCMA_CLKMODE_FAST, BCMA_CLKMODE_DYNAMIC } |
Functions | |
int | __bcma_driver_register (struct bcma_driver *drv, struct module *owner) |
void | bcma_driver_unregister (struct bcma_driver *drv) |
int | bcma_arch_register_fallback_sprom (int(*sprom_callback)(struct bcma_bus *bus, struct ssb_sprom *out)) |
struct bcma_device * | bcma_find_core (struct bcma_bus *bus, u16 coreid) |
bool | bcma_core_is_enabled (struct bcma_device *core) |
void | bcma_core_disable (struct bcma_device *core, u32 flags) |
int | bcma_core_enable (struct bcma_device *core, u32 flags) |
void | bcma_core_set_clockmode (struct bcma_device *core, enum bcma_clkmode clkmode) |
void | bcma_core_pll_ctl (struct bcma_device *core, u32 req, u32 status, bool on) |
u32 | bcma_core_dma_translation (struct bcma_device *core) |
#define BCMA_CORE_AMEMC 0x52E /* DDR1/2 memory controller core */ |
#define BCMA_CORE_SDR_DDR1_MEM_CTL 0x835 /* SDR/DDR1 memory controller core */ |
#define BCMA_CORE_SHIM 0x837 /* SHIM component in ubus/6362 */ |
#define BCMA_DMA_TRANSLATION_DMA32_CMT 0x40000000 /* Client Mode Translation for 32-bit DMA */ |
#define BCMA_DMA_TRANSLATION_DMA64_CMT 0x80000000 /* Client Mode Translation for 64-bit DMA */ |
#define bcma_driver_register | ( | drv | ) | __bcma_driver_register(drv, THIS_MODULE) |
enum bcma_clkmode |
enum bcma_hosttype |
int __bcma_driver_register | ( | struct bcma_driver * | drv, |
struct module * | owner | ||
) |
int bcma_arch_register_fallback_sprom | ( | int(*)(struct bcma_bus *bus, struct ssb_sprom *out) | sprom_callback | ) |
bcma_arch_register_fallback_sprom - Registers a method providing a fallback SPROM if no SPROM is found.
: The callback function.
With this function the architecture implementation may register a callback handler which fills the SPROM data structure. The fallback is used for PCI based BCMA devices, where no valid SPROM can be found in the shadow registers and to provide the SPROM for SoCs where BCMA is to controll the system bus.
This function is useful for weird architectures that have a half-assed BCMA device hardwired to their PCI bus.
This function is available for architecture code, only. So it is not exported.
void bcma_core_disable | ( | struct bcma_device * | core, |
u32 | flags | ||
) |
u32 bcma_core_dma_translation | ( | struct bcma_device * | core | ) |
bool bcma_core_is_enabled | ( | struct bcma_device * | core | ) |
void bcma_core_set_clockmode | ( | struct bcma_device * | core, |
enum bcma_clkmode | clkmode | ||
) |
void bcma_driver_unregister | ( | struct bcma_driver * | drv | ) |