Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mc13783-pwrbutton.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/input.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/mfd/mc13783.h>
#include <linux/sched.h>
#include <linux/slab.h>

Go to the source code of this file.

Data Structures

struct  mc13783_pwrb
 

Macros

#define MC13783_PWRB_B1_POL_INVERT   (1 << 0)
 
#define MC13783_PWRB_B2_POL_INVERT   (1 << 1)
 
#define MC13783_PWRB_B3_POL_INVERT   (1 << 2)
 
#define MC13783_REG_INTERRUPT_SENSE_1   5
 
#define MC13783_IRQSENSE1_ONOFD1S   (1 << 3)
 
#define MC13783_IRQSENSE1_ONOFD2S   (1 << 4)
 
#define MC13783_IRQSENSE1_ONOFD3S   (1 << 5)
 
#define MC13783_REG_POWER_CONTROL_2   15
 
#define MC13783_POWER_CONTROL_2_ON1BDBNC   4
 
#define MC13783_POWER_CONTROL_2_ON2BDBNC   6
 
#define MC13783_POWER_CONTROL_2_ON3BDBNC   8
 
#define MC13783_POWER_CONTROL_2_ON1BRSTEN   (1 << 1)
 
#define MC13783_POWER_CONTROL_2_ON2BRSTEN   (1 << 2)
 
#define MC13783_POWER_CONTROL_2_ON3BRSTEN   (1 << 3)
 

Functions

 module_platform_driver (mc13783_pwrbutton_driver)
 
 MODULE_ALIAS ("platform:mc13783-pwrbutton")
 
 MODULE_DESCRIPTION ("MC13783 Power Button")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_AUTHOR ("Philippe Retornaz")
 

Macro Definition Documentation

#define MC13783_IRQSENSE1_ONOFD1S   (1 << 3)

Definition at line 44 of file mc13783-pwrbutton.c.

#define MC13783_IRQSENSE1_ONOFD2S   (1 << 4)

Definition at line 45 of file mc13783-pwrbutton.c.

#define MC13783_IRQSENSE1_ONOFD3S   (1 << 5)

Definition at line 46 of file mc13783-pwrbutton.c.

#define MC13783_POWER_CONTROL_2_ON1BDBNC   4

Definition at line 49 of file mc13783-pwrbutton.c.

#define MC13783_POWER_CONTROL_2_ON1BRSTEN   (1 << 1)

Definition at line 52 of file mc13783-pwrbutton.c.

#define MC13783_POWER_CONTROL_2_ON2BDBNC   6

Definition at line 50 of file mc13783-pwrbutton.c.

#define MC13783_POWER_CONTROL_2_ON2BRSTEN   (1 << 2)

Definition at line 53 of file mc13783-pwrbutton.c.

#define MC13783_POWER_CONTROL_2_ON3BDBNC   8

Definition at line 51 of file mc13783-pwrbutton.c.

#define MC13783_POWER_CONTROL_2_ON3BRSTEN   (1 << 3)

Definition at line 54 of file mc13783-pwrbutton.c.

#define MC13783_PWRB_B1_POL_INVERT   (1 << 0)

Definition at line 36 of file mc13783-pwrbutton.c.

#define MC13783_PWRB_B2_POL_INVERT   (1 << 1)

Definition at line 37 of file mc13783-pwrbutton.c.

#define MC13783_PWRB_B3_POL_INVERT   (1 << 2)

Definition at line 38 of file mc13783-pwrbutton.c.

#define MC13783_REG_INTERRUPT_SENSE_1   5

Definition at line 43 of file mc13783-pwrbutton.c.

#define MC13783_REG_POWER_CONTROL_2   15

Definition at line 48 of file mc13783-pwrbutton.c.

Function Documentation

MODULE_ALIAS ( "platform:mc13783-pwrbutton"  )
MODULE_AUTHOR ( "Philippe Retornaz"  )
MODULE_DESCRIPTION ( "MC13783 Power Button"  )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( mc13783_pwrbutton_driver  )