Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ssb_private.h File Reference
#include <linux/ssb/ssb.h>
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  ssb_freeze_context
 

Macros

#define PFX   "ssb: "
 
#define ssb_printk   printk
 
#define ssb_dprintk(fmt, x...)   do { /* nothing */ } while (0)
 
#define SSB_WARN_ON(x)   __ssb_do_nothing(unlikely(!!(x)))
 
#define SSB_BUG_ON(x)   __ssb_do_nothing(unlikely(!!(x)))
 

Functions

const charssb_core_name (u16 coreid)
 
int ssb_bus_scan (struct ssb_bus *bus, unsigned long baseaddr)
 
void ssb_iounmap (struct ssb_bus *ssb)
 
ssize_t ssb_attr_sprom_show (struct ssb_bus *bus, char *buf, int(*sprom_read)(struct ssb_bus *bus, u16 *sprom))
 
ssize_t ssb_attr_sprom_store (struct ssb_bus *bus, const char *buf, size_t count, int(*sprom_check_crc)(const u16 *sprom, size_t size), int(*sprom_write)(struct ssb_bus *bus, const u16 *sprom))
 
int ssb_fill_sprom_with_fallback (struct ssb_bus *bus, struct ssb_sprom *out)
 
u32 ssb_calc_clock_rate (u32 plltype, u32 n, u32 m)
 
struct ssb_busssb_pci_dev_to_bus (struct pci_dev *pdev)
 
int ssb_for_each_bus_call (unsigned long data, int(*func)(struct ssb_bus *bus, unsigned long data))
 
struct ssb_busssb_pcmcia_dev_to_bus (struct pcmcia_device *pdev)
 
int ssb_devices_freeze (struct ssb_bus *bus, struct ssb_freeze_context *ctx)
 
int ssb_devices_thaw (struct ssb_freeze_context *ctx)
 
u32 ssb_pmu_get_cpu_clock (struct ssb_chipcommon *cc)
 
u32 ssb_pmu_get_controlclock (struct ssb_chipcommon *cc)
 

Macro Definition Documentation

#define PFX   "ssb: "

Definition at line 8 of file ssb_private.h.

#define SSB_BUG_ON (   x)    __ssb_do_nothing(unlikely(!!(x)))

Definition at line 29 of file ssb_private.h.

#define ssb_dprintk (   fmt,
  x... 
)    do { /* nothing */ } while (0)

Definition at line 20 of file ssb_private.h.

#define ssb_printk   printk

Definition at line 13 of file ssb_private.h.

#define SSB_WARN_ON (   x)    __ssb_do_nothing(unlikely(!!(x)))

Definition at line 28 of file ssb_private.h.

Function Documentation

ssize_t ssb_attr_sprom_show ( struct ssb_bus bus,
char buf,
int(*)(struct ssb_bus *bus, u16 *sprom)  sprom_read 
)

Definition at line 67 of file sprom.c.

ssize_t ssb_attr_sprom_store ( struct ssb_bus bus,
const char buf,
size_t  count,
int(*)(const u16 *sprom, size_t size sprom_check_crc,
int(*)(struct ssb_bus *bus, const u16 *sprom)  sprom_write 
)

Definition at line 98 of file sprom.c.

int ssb_bus_scan ( struct ssb_bus bus,
unsigned long  baseaddr 
)

Definition at line 273 of file scan.c.

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

Definition at line 980 of file main.c.

const char* ssb_core_name ( u16  coreid)

Definition at line 26 of file scan.c.

int ssb_devices_freeze ( struct ssb_bus bus,
struct ssb_freeze_context ctx 
)
int ssb_devices_thaw ( struct ssb_freeze_context ctx)
int ssb_fill_sprom_with_fallback ( struct ssb_bus bus,
struct ssb_sprom out 
)

Definition at line 179 of file sprom.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_iounmap ( struct ssb_bus ssb)

Definition at line 204 of file scan.c.

struct ssb_bus* ssb_pci_dev_to_bus ( struct pci_dev pdev)
read
struct ssb_bus* ssb_pcmcia_dev_to_bus ( struct pcmcia_device *  pdev)
read
u32 ssb_pmu_get_controlclock ( struct ssb_chipcommon cc)

Definition at line 634 of file driver_chipcommon_pmu.c.

u32 ssb_pmu_get_cpu_clock ( struct ssb_chipcommon cc)

Definition at line 618 of file driver_chipcommon_pmu.c.