Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pmc.c File Reference
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/module.h>
#include <asm/io.h>
#include <asm/oplib.h>
#include <asm/uaccess.h>
#include <asm/auxio.h>

Go to the source code of this file.

Macros

#define PMC_OBPNAME   "SUNW,pmc"
 
#define PMC_DEVNAME   "pmc"
 
#define PMC_IDLE_REG   0x00
 
#define PMC_IDLE_ON   0x01
 
#define pmc_readb(offs)   (sbus_readb(regs+offs))
 
#define pmc_writeb(val, offs)   (sbus_writeb(val, regs+offs))
 

Functions

 MODULE_DEVICE_TABLE (of, pmc_match)
 
 __initcall (pmc_init)
 

Macro Definition Documentation

#define PMC_DEVNAME   "pmc"

Definition at line 28 of file pmc.c.

#define PMC_IDLE_ON   0x01

Definition at line 31 of file pmc.c.

#define PMC_IDLE_REG   0x00

Definition at line 30 of file pmc.c.

#define PMC_OBPNAME   "SUNW,pmc"

Definition at line 27 of file pmc.c.

#define pmc_readb (   offs)    (sbus_readb(regs+offs))

Definition at line 35 of file pmc.c.

#define pmc_writeb (   val,
  offs 
)    (sbus_writeb(val, regs+offs))

Definition at line 36 of file pmc.c.

Function Documentation

__initcall ( pmc_init  )
MODULE_DEVICE_TABLE ( of  ,
pmc_match   
)