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

Go to the source code of this file.

Data Structures

struct  clk_lookup
 

Macros

#define CLKDEV_INIT(d, n, c)
 

Functions

struct clk_lookupclkdev_alloc (struct clk *clk, const char *con_id, const char *dev_fmt,...)
 
void clkdev_add (struct clk_lookup *cl)
 
void clkdev_drop (struct clk_lookup *cl)
 
void clkdev_add_table (struct clk_lookup *, size_t)
 
int clk_add_alias (const char *, const char *, char *, struct device *)
 
int clk_register_clkdev (struct clk *, const char *, const char *,...)
 
int clk_register_clkdevs (struct clk *, struct clk_lookup *, size_t)
 

Macro Definition Documentation

#define CLKDEV_INIT (   d,
  n,
  c 
)
Value:
{ \
.dev_id = d, \
.con_id = n, \
.clk = c, \
}

Definition at line 27 of file clkdev.h.

Function Documentation

int clk_add_alias ( const char ,
const char ,
char ,
struct device  
)

clk_add_alias - add a new clock alias : name for clock alias : device name : platform specific clock name : device

Allows using generic clock names for drivers by adding a new alias. Assumes clkdev, see clkdev.h for more info.

Definition at line 239 of file clkdev.c.

int clk_register_clkdev ( struct clk clk,
const char con_id,
const char dev_fmt,
  ... 
)

clk_register_clkdev - register one clock lookup for a struct clk : struct clk to associate with all clk_lookups : connection ID string on device : format string describing device name

con_id or dev_id may be NULL as a wildcard, just as in the rest of clkdev.

To make things easier for mass registration, we detect error clks from a previous clk_register() call, and return the error code for those. This is to permit this function to be called immediately after clk_register().

Definition at line 283 of file clkdev.c.

int clk_register_clkdevs ( struct clk clk,
struct clk_lookup cl,
size_t  num 
)

clk_register_clkdevs - register a set of clk_lookup for a struct clk : struct clk to associate with all clk_lookups : array of clk_lookup structures with con_id and dev_id pre-initialized : number of clk_lookup structures to register

To make things easier for mass registration, we detect error clks from a previous clk_register() call, and return the error code for those. This is to permit this function to be called immediately after clk_register().

Definition at line 315 of file clkdev.c.

void clkdev_add ( struct clk_lookup cl)

Definition at line 174 of file clkdev.c.

void clkdev_add_table ( struct clk_lookup ,
size_t   
)

Definition at line 182 of file clkdev.c.

struct clk_lookup* clkdev_alloc ( struct clk clk,
const char con_id,
const char dev_fmt,
  ... 
)
read

Definition at line 226 of file clkdev.c.

void clkdev_drop ( struct clk_lookup cl)

Definition at line 260 of file clkdev.c.