Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
pcc-cpufreq.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/smp.h>
#include <linux/sched.h>
#include <linux/cpufreq.h>
#include <linux/compiler.h>
#include <linux/slab.h>
#include <linux/acpi.h>
#include <linux/io.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <acpi/processor.h>

Go to the source code of this file.

Data Structures

struct  pcc_register_resource
 
struct  pcc_memory_resource
 
struct  pcc_header
 
struct  pcc_cpu
 

Macros

#define PCC_VERSION   "1.10.00"
 
#define POLL_LOOPS   300
 
#define CMD_COMPLETE   0x1
 
#define CMD_GET_FREQ   0x0
 
#define CMD_SET_FREQ   0x1
 
#define BUF_SZ   4
 

Functions

struct pcc_register_resource __attribute__ ((packed))
 
 MODULE_AUTHOR ("Matthew Garrett, Naga Chumbalkar")
 
 MODULE_VERSION (PCC_VERSION)
 
 MODULE_DESCRIPTION ("Processor Clocking Control interface driver")
 
 MODULE_LICENSE ("GPL")
 
 late_initcall (pcc_cpufreq_init)
 
 module_exit (pcc_cpufreq_exit)
 

Variables

u8 descriptor
 
u16 length
 
u8 space_id
 
u8 bit_width
 
u8 bit_offset
 
u8 access_size
 
u64 address
 
u8 resource_usage
 
u8 type_specific
 
u64 granularity
 
u64 minimum
 
u64 maximum
 
u64 translation_offset
 
u64 address_length
 
struct pcc_header __attribute__
 

Macro Definition Documentation

#define BUF_SZ   4

Definition at line 49 of file pcc-cpufreq.c.

#define CMD_COMPLETE   0x1

Definition at line 45 of file pcc-cpufreq.c.

#define CMD_GET_FREQ   0x0

Definition at line 46 of file pcc-cpufreq.c.

#define CMD_SET_FREQ   0x1

Definition at line 47 of file pcc-cpufreq.c.

#define PCC_VERSION   "1.10.00"

Definition at line 42 of file pcc-cpufreq.c.

#define POLL_LOOPS   300

Definition at line 43 of file pcc-cpufreq.c.

Function Documentation

Definition at line 171 of file esd_usb2.c.

late_initcall ( pcc_cpufreq_init  )
MODULE_AUTHOR ( "Matthew  Garrett,
Naga Chumbalkar"   
)
MODULE_DESCRIPTION ( "Processor Clocking Control interface driver )
module_exit ( pcc_cpufreq_exit  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( PCC_VERSION  )

Variable Documentation

u8 access_size

Definition at line 65 of file pcc-cpufreq.c.

Definition at line 66 of file pcc-cpufreq.c.

u64 address_length

Definition at line 82 of file pcc-cpufreq.c.

u8 bit_offset

Definition at line 64 of file pcc-cpufreq.c.

u8 bit_width

Definition at line 63 of file pcc-cpufreq.c.

Definition at line 60 of file pcc-cpufreq.c.

u64 granularity

Definition at line 78 of file pcc-cpufreq.c.

u16 length

Definition at line 61 of file pcc-cpufreq.c.

u64 maximum

Definition at line 80 of file pcc-cpufreq.c.

u64 minimum

Definition at line 79 of file pcc-cpufreq.c.

u8 resource_usage

Definition at line 76 of file pcc-cpufreq.c.

u8 space_id

Definition at line 62 of file pcc-cpufreq.c.

u64 translation_offset

Definition at line 81 of file pcc-cpufreq.c.

u8 type_specific

Definition at line 77 of file pcc-cpufreq.c.