Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
apc.c File Reference
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/miscdevice.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>
#include <asm/apc.h>

Go to the source code of this file.

Macros

#define APC_MINOR   MISC_DYNAMIC_MINOR
 
#define APC_OBPNAME   "power-management"
 
#define APC_DEVNAME   "apc"
 
#define apc_readb(offs)   (sbus_readb(regs+offs))
 
#define apc_writeb(val, offs)   (sbus_writeb(val, regs+offs))
 

Functions

 __setup ("apc=", apc_setup)
 
 MODULE_DEVICE_TABLE (of, apc_match)
 
 __initcall (apc_init)
 

Macro Definition Documentation

#define APC_DEVNAME   "apc"

Definition at line 31 of file apc.c.

#define APC_MINOR   MISC_DYNAMIC_MINOR

Definition at line 29 of file apc.c.

#define APC_OBPNAME   "power-management"

Definition at line 30 of file apc.c.

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

Definition at line 36 of file apc.c.

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

Definition at line 37 of file apc.c.

Function Documentation

__initcall ( apc_init  )
__setup ( )
MODULE_DEVICE_TABLE ( of  ,
apc_match   
)