Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ams-pmu.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/adb.h>
#include <linux/pmu.h>
#include "ams.h"

Go to the source code of this file.

Macros

#define AMS_X   0x00
 
#define AMS_Y   0x01
 
#define AMS_Z   0x02
 
#define AMS_VENDOR   0x03
 
#define AMS_FF_CLEAR   0x04
 
#define AMS_FF_ENABLE   0x05
 
#define AMS_FF_LOW_LIMIT   0x06
 
#define AMS_FF_DEBOUNCE   0x07
 
#define AMS_SHOCK_CLEAR   0x08
 
#define AMS_SHOCK_ENABLE   0x09
 
#define AMS_SHOCK_HIGH_LIMIT   0x0a
 
#define AMS_SHOCK_DEBOUNCE   0x0b
 
#define AMS_CONTROL   0x0c
 

Functions

int __init ams_pmu_init (struct device_node *np)
 

Macro Definition Documentation

#define AMS_CONTROL   0x0c

Definition at line 42 of file ams-pmu.c.

#define AMS_FF_CLEAR   0x04

Definition at line 30 of file ams-pmu.c.

#define AMS_FF_DEBOUNCE   0x07

Definition at line 33 of file ams-pmu.c.

#define AMS_FF_ENABLE   0x05

Definition at line 31 of file ams-pmu.c.

#define AMS_FF_LOW_LIMIT   0x06

Definition at line 32 of file ams-pmu.c.

#define AMS_SHOCK_CLEAR   0x08

Definition at line 36 of file ams-pmu.c.

#define AMS_SHOCK_DEBOUNCE   0x0b

Definition at line 39 of file ams-pmu.c.

#define AMS_SHOCK_ENABLE   0x09

Definition at line 37 of file ams-pmu.c.

#define AMS_SHOCK_HIGH_LIMIT   0x0a

Definition at line 38 of file ams-pmu.c.

#define AMS_VENDOR   0x03

Definition at line 27 of file ams-pmu.c.

#define AMS_X   0x00

Definition at line 22 of file ams-pmu.c.

#define AMS_Y   0x01

Definition at line 23 of file ams-pmu.c.

#define AMS_Z   0x02

Definition at line 24 of file ams-pmu.c.

Function Documentation

int __init ams_pmu_init ( struct device_node np)

Definition at line 149 of file ams-pmu.c.