Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ab3100-core.c File Reference
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/notifier.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/random.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/mfd/core.h>
#include <linux/mfd/ab3100.h>
#include <linux/mfd/abx500.h>

Go to the source code of this file.

Data Structures

struct  ab3100_init_setting
 
struct  ab_family_id
 

Macros

#define AB3100_EVENTA1   0x21
 
#define AB3100_EVENTA2   0x22
 
#define AB3100_EVENTA3   0x23
 
#define AB3100_DIS   0x00
 
#define AB3100_D0C   0x01
 
#define AB3100_D1C   0x02
 
#define AB3100_D2C   0x03
 
#define AB3100_D3C   0x04
 
#define AB3100_CID   0x20
 
#define AB3100_IMRA1   0x24
 
#define AB3100_IMRA2   0x25
 
#define AB3100_IMRA3   0x26
 
#define AB3100_IMRB1   0x2B
 
#define AB3100_IMRB2   0x2C
 
#define AB3100_IMRB3   0x2D
 
#define AB3100_MCA   0x2E
 
#define AB3100_MCB   0x2F
 
#define AB3100_SUP   0x50
 

Functions

int ab3100_event_register (struct ab3100 *ab3100, struct notifier_block *nb)
 
 EXPORT_SYMBOL (ab3100_event_register)
 
int ab3100_event_unregister (struct ab3100 *ab3100, struct notifier_block *nb)
 
 EXPORT_SYMBOL (ab3100_event_unregister)
 
 MODULE_DEVICE_TABLE (i2c, ab3100_id)
 
 subsys_initcall (ab3100_i2c_init)
 
 module_exit (ab3100_i2c_exit)
 
 MODULE_AUTHOR ("Linus Walleij <[email protected]>")
 
 MODULE_DESCRIPTION ("AB3100 core driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define AB3100_CID   0x20

Definition at line 42 of file ab3100-core.c.

#define AB3100_D0C   0x01

Definition at line 36 of file ab3100-core.c.

#define AB3100_D1C   0x02

Definition at line 37 of file ab3100-core.c.

#define AB3100_D2C   0x03

Definition at line 38 of file ab3100-core.c.

#define AB3100_D3C   0x04

Definition at line 39 of file ab3100-core.c.

#define AB3100_DIS   0x00

Definition at line 35 of file ab3100-core.c.

#define AB3100_EVENTA1   0x21

Definition at line 30 of file ab3100-core.c.

#define AB3100_EVENTA2   0x22

Definition at line 31 of file ab3100-core.c.

#define AB3100_EVENTA3   0x23

Definition at line 32 of file ab3100-core.c.

#define AB3100_IMRA1   0x24

Definition at line 45 of file ab3100-core.c.

#define AB3100_IMRA2   0x25

Definition at line 46 of file ab3100-core.c.

#define AB3100_IMRA3   0x26

Definition at line 47 of file ab3100-core.c.

#define AB3100_IMRB1   0x2B

Definition at line 48 of file ab3100-core.c.

#define AB3100_IMRB2   0x2C

Definition at line 49 of file ab3100-core.c.

#define AB3100_IMRB3   0x2D

Definition at line 50 of file ab3100-core.c.

#define AB3100_MCA   0x2E

Definition at line 53 of file ab3100-core.c.

#define AB3100_MCB   0x2F

Definition at line 54 of file ab3100-core.c.

#define AB3100_SUP   0x50

Definition at line 57 of file ab3100-core.c.

Function Documentation

int ab3100_event_register ( struct ab3100 ab3100,
struct notifier_block nb 
)

Definition at line 360 of file ab3100-core.c.

int ab3100_event_unregister ( struct ab3100 ab3100,
struct notifier_block nb 
)

Definition at line 371 of file ab3100-core.c.

EXPORT_SYMBOL ( ab3100_event_register  )
EXPORT_SYMBOL ( ab3100_event_unregister  )
MODULE_AUTHOR ( "Linus Walleij <[email protected]>"  )
MODULE_DESCRIPTION ( "AB3100 core driver )
MODULE_DEVICE_TABLE ( i2c  ,
ab3100_id   
)
module_exit ( ab3100_i2c_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( ab3100_i2c_init  )