Linux Kernel
3.7.1
|
#include <linux/device.h>
#include <linux/list.h>
#include <linux/types.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include <linux/mod_devicetable.h>
#include <linux/dma-mapping.h>
#include <linux/ssb/ssb_regs.h>
#include <linux/ssb/ssb_driver_chipcommon.h>
#include <linux/ssb/ssb_driver_mips.h>
#include <linux/ssb/ssb_driver_extif.h>
#include <linux/ssb/ssb_driver_pci.h>
Go to the source code of this file.
Data Structures | |
struct | ssb_sprom_core_pwr_info |
struct | ssb_sprom |
struct | ssb_boardinfo |
struct | ssb_bus_ops |
struct | __ssb_dev_wrapper |
struct | ssb_device |
struct | ssb_driver |
struct | ssb_bus |
struct | ssb_init_invariants |
Typedefs | |
typedef int(* | ssb_invariants_func_t )(struct ssb_bus *bus, struct ssb_init_invariants *iv) |
Enumerations | |
enum | ssb_bustype { SSB_BUSTYPE_SSB, SSB_BUSTYPE_PCI, SSB_BUSTYPE_PCMCIA, SSB_BUSTYPE_SDIO } |
enum | ssb_quirks { SSB_QUIRK_SDIO_READ_AFTER_WRITE32 = (1 << 0) } |
#define drv_to_ssb_drv | ( | _drv | ) | container_of(_drv, struct ssb_driver, drv) |
#define ssb_driver_register | ( | drv | ) | __ssb_driver_register(drv, THIS_MODULE) |
enum ssb_bustype |
enum ssb_quirks |
int __ssb_driver_register | ( | struct ssb_driver * | drv, |
struct module * | owner | ||
) |
int ssb_arch_register_fallback_sprom | ( | int(*)(struct ssb_bus *bus, struct ssb_sprom *out) | sprom_callback | ) |
ssb_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 only used for PCI based SSB devices, where no valid SPROM can be found in the shadow registers.
This function is useful for weird architectures that have a half-assed SSB device hardwired to their PCI bus.
Note that it does only work with PCI attached SSB devices. PCMCIA devices currently don't use this fallback. Architectures must provide the SPROM for native SSB devices anyway, so the fallback also isn't used for native devices.
This function is available for architecture code, only. So it is not exported.
int ssb_bus_ssbbus_register | ( | struct ssb_bus * | bus, |
unsigned long | baseaddr, | ||
ssb_invariants_func_t | get_invariants | ||
) |
void ssb_device_disable | ( | struct ssb_device * | dev, |
u32 | core_specific_flags | ||
) |
void ssb_device_enable | ( | struct ssb_device * | dev, |
u32 | core_specific_flags | ||
) |
int ssb_device_is_enabled | ( | struct ssb_device * | dev | ) |
u32 ssb_dma_translation | ( | struct ssb_device * | dev | ) |
void ssb_driver_unregister | ( | struct ssb_driver * | drv | ) |