Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
main.c File Reference
#include "ssb_private.h"
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/ssb/ssb.h>
#include <linux/ssb/ssb_regs.h>
#include <linux/ssb/ssb_driver_gige.h>
#include <linux/dma-mapping.h>
#include <linux/pci.h>
#include <linux/mmc/sdio_func.h>
#include <linux/slab.h>
#include <pcmcia/cistpl.h>
#include <pcmcia/ds.h>

Go to the source code of this file.

Macros

#define ssb_config_attr(attrib, field, format_string)
 

Functions

 MODULE_DESCRIPTION ("Sonics Silicon Backplane driver")
 
 MODULE_LICENSE ("GPL")
 
int ssb_for_each_bus_call (unsigned long data, int(*func)(struct ssb_bus *bus, unsigned long data))
 
int ssb_bus_resume (struct ssb_bus *bus)
 
 EXPORT_SYMBOL (ssb_bus_resume)
 
int ssb_bus_suspend (struct ssb_bus *bus)
 
 EXPORT_SYMBOL (ssb_bus_suspend)
 
 ssb_config_attr (core_num, core_index,"%u\n")
 
void ssb_bus_unregister (struct ssb_bus *bus)
 
 EXPORT_SYMBOL (ssb_bus_unregister)
 
int __devinit ssb_bus_ssbbus_register (struct ssb_bus *bus, unsigned long baseaddr, ssb_invariants_func_t get_invariants)
 
int __ssb_driver_register (struct ssb_driver *drv, struct module *owner)
 
 EXPORT_SYMBOL (__ssb_driver_register)
 
void ssb_driver_unregister (struct ssb_driver *drv)
 
 EXPORT_SYMBOL (ssb_driver_unregister)
 
void ssb_set_devtypedata (struct ssb_device *dev, void *data)
 
 EXPORT_SYMBOL (ssb_set_devtypedata)
 
u32 ssb_calc_clock_rate (u32 plltype, u32 n, u32 m)
 
u32 ssb_clockspeed (struct ssb_bus *bus)
 
 EXPORT_SYMBOL (ssb_clockspeed)
 
int ssb_device_is_enabled (struct ssb_device *dev)
 
 EXPORT_SYMBOL (ssb_device_is_enabled)
 
void ssb_device_enable (struct ssb_device *dev, u32 core_specific_flags)
 
 EXPORT_SYMBOL (ssb_device_enable)
 
void ssb_device_disable (struct ssb_device *dev, u32 core_specific_flags)
 
 EXPORT_SYMBOL (ssb_device_disable)
 
u32 ssb_dma_translation (struct ssb_device *dev)
 
 EXPORT_SYMBOL (ssb_dma_translation)
 
int ssb_bus_may_powerdown (struct ssb_bus *bus)
 
 EXPORT_SYMBOL (ssb_bus_may_powerdown)
 
int ssb_bus_powerup (struct ssb_bus *bus, bool dynamic_pctl)
 
 EXPORT_SYMBOL (ssb_bus_powerup)
 
void ssb_commit_settings (struct ssb_bus *bus)
 
 EXPORT_SYMBOL (ssb_commit_settings)
 
u32 ssb_admatch_base (u32 adm)
 
 EXPORT_SYMBOL (ssb_admatch_base)
 
u32 ssb_admatch_size (u32 adm)
 
 EXPORT_SYMBOL (ssb_admatch_size)
 
 fs_initcall (ssb_modinit)
 

Macro Definition Documentation

#define ssb_config_attr (   attrib,
  field,
  format_string 
)
Value:
static ssize_t \
attrib##_show(struct device *dev, struct device_attribute *attr, char *buf) \
{ \
return sprintf(buf, format_string, dev_to_ssb_dev(dev)->field); \
}

Definition at line 371 of file main.c.

Function Documentation

int __ssb_driver_register ( struct ssb_driver drv,
struct module owner 
)

Definition at line 925 of file main.c.

EXPORT_SYMBOL ( ssb_bus_resume  )
EXPORT_SYMBOL ( ssb_bus_suspend  )
EXPORT_SYMBOL ( ssb_bus_unregister  )
EXPORT_SYMBOL ( __ssb_driver_register  )
EXPORT_SYMBOL ( ssb_driver_unregister  )
EXPORT_SYMBOL ( ssb_set_devtypedata  )
EXPORT_SYMBOL ( ssb_clockspeed  )
EXPORT_SYMBOL ( ssb_device_is_enabled  )
EXPORT_SYMBOL ( ssb_device_enable  )
EXPORT_SYMBOL ( ssb_device_disable  )
EXPORT_SYMBOL ( ssb_dma_translation  )
EXPORT_SYMBOL ( ssb_bus_may_powerdown  )
EXPORT_SYMBOL ( ssb_bus_powerup  )
EXPORT_SYMBOL ( ssb_commit_settings  )
EXPORT_SYMBOL ( ssb_admatch_base  )
EXPORT_SYMBOL ( ssb_admatch_size  )
fs_initcall ( ssb_modinit  )
MODULE_DESCRIPTION ( "Sonics Silicon Backplane driver )
MODULE_LICENSE ( "GPL"  )
u32 ssb_admatch_base ( u32  adm)

Definition at line 1373 of file main.c.

u32 ssb_admatch_size ( u32  adm)

Definition at line 1397 of file main.c.

int ssb_bus_may_powerdown ( struct ssb_bus bus)

Definition at line 1286 of file main.c.

int ssb_bus_powerup ( struct ssb_bus bus,
bool  dynamic_pctl 
)

Definition at line 1319 of file main.c.

int ssb_bus_resume ( struct ssb_bus bus)

Definition at line 177 of file main.c.

int __devinit ssb_bus_ssbbus_register ( struct ssb_bus bus,
unsigned long  baseaddr,
ssb_invariants_func_t  get_invariants 
)

Definition at line 907 of file main.c.

int ssb_bus_suspend ( struct ssb_bus bus)

Definition at line 203 of file main.c.

void ssb_bus_unregister ( struct ssb_bus bus)

Definition at line 438 of file main.c.

u32 ssb_calc_clock_rate ( u32  plltype,
u32  n,
u32  m 
)

Definition at line 980 of file main.c.

u32 ssb_clockspeed ( struct ssb_bus bus)

Definition at line 1075 of file main.c.

void ssb_commit_settings ( struct ssb_bus bus)

Definition at line 1357 of file main.c.

ssb_config_attr ( core_num  ,
core_index  ,
"%u\n"   
)

Definition at line 378 of file main.c.

void ssb_device_disable ( struct ssb_device dev,
u32  core_specific_flags 
)

Definition at line 1209 of file main.c.

void ssb_device_enable ( struct ssb_device dev,
u32  core_specific_flags 
)

Definition at line 1152 of file main.c.

int ssb_device_is_enabled ( struct ssb_device dev)

Definition at line 1127 of file main.c.

u32 ssb_dma_translation ( struct ssb_device dev)

Definition at line 1264 of file main.c.

void ssb_driver_unregister ( struct ssb_driver drv)

Definition at line 935 of file main.c.

int ssb_for_each_bus_call ( unsigned long  data,
int(*)(struct ssb_bus *bus, unsigned long data func 
)

Definition at line 111 of file main.c.

void ssb_set_devtypedata ( struct ssb_device dev,
void data 
)

Definition at line 941 of file main.c.