Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Enumerations | Functions | Variables
clock.c File Reference
#include <linux/clk.h>
#include <linux/cpufreq.h>
#include <linux/errno.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
#include <asm/clock.h>
#include <asm/mach-loongson/loongson.h>

Go to the source code of this file.

Enumerations

enum  {
  DC_ZERO, DC_25PT = 2, DC_37PT, DC_50PT,
  DC_62PT, DC_75PT, DC_87PT, DC_DISABLE,
  DC_RESV
}
 

Functions

 EXPORT_SYMBOL_GPL (loongson2_clockmod_table)
 
struct clkclk_get (struct device *dev, const char *id)
 
 EXPORT_SYMBOL (clk_get)
 
int clk_enable (struct clk *clk)
 
 EXPORT_SYMBOL (clk_enable)
 
void clk_disable (struct clk *clk)
 
 EXPORT_SYMBOL (clk_disable)
 
unsigned long clk_get_rate (struct clk *clk)
 
 EXPORT_SYMBOL (clk_get_rate)
 
void clk_put (struct clk *clk)
 
 EXPORT_SYMBOL (clk_put)
 
int clk_set_rate (struct clk *clk, unsigned long rate)
 
 EXPORT_SYMBOL_GPL (clk_set_rate)
 
long clk_round_rate (struct clk *clk, unsigned long rate)
 
 EXPORT_SYMBOL_GPL (clk_round_rate)
 

Variables

struct cpufreq_frequency_table loongson2_clockmod_table []
 

Enumeration Type Documentation

anonymous enum
Enumerator:
DC_ZERO 
DC_25PT 
DC_37PT 
DC_50PT 
DC_62PT 
DC_75PT 
DC_87PT 
DC_DISABLE 
DC_RESV 

Definition at line 26 of file clock.c.

Function Documentation

void clk_disable ( struct clk clk)

Definition at line 77 of file clock.c.

int clk_enable ( struct clk clk)

Definition at line 71 of file clock.c.

struct clk* clk_get ( struct device dev,
const char id 
)
read

Definition at line 51 of file clock.c.

unsigned long clk_get_rate ( struct clk clk)

Definition at line 82 of file clock.c.

void clk_put ( struct clk clk)

Definition at line 88 of file clock.c.

long clk_round_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 131 of file clock.c.

int clk_set_rate ( struct clk clk,
unsigned long  rate 
)

Definition at line 93 of file clock.c.

EXPORT_SYMBOL ( clk_get  )
EXPORT_SYMBOL ( clk_enable  )
EXPORT_SYMBOL ( clk_disable  )
EXPORT_SYMBOL ( clk_get_rate  )
EXPORT_SYMBOL ( clk_put  )
EXPORT_SYMBOL_GPL ( loongson2_clockmod_table  )
EXPORT_SYMBOL_GPL ( clk_set_rate  )
EXPORT_SYMBOL_GPL ( clk_round_rate  )

Variable Documentation

struct cpufreq_frequency_table loongson2_clockmod_table[]
Initial value:

Definition at line 31 of file clock.c.