Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ab3100.h File Reference
#include <linux/regulator/machine.h>

Go to the source code of this file.

Data Structures

struct  ab3100
 
struct  ab3100_platform_data
 

Macros

#define AB3100_P1A   0xc0
 
#define AB3100_P1B   0xc1
 
#define AB3100_P1C   0xc2
 
#define AB3100_P1D   0xc3
 
#define AB3100_P1E   0xc4
 
#define AB3100_P1F   0xc5
 
#define AB3100_P1G   0xc6
 
#define AB3100_R2A   0xc7
 
#define AB3100_R2B   0xc8
 
#define AB3100_EVENTA1_ONSWA   (0x01<<16)
 
#define AB3100_EVENTA1_ONSWB   (0x02<<16)
 
#define AB3100_EVENTA1_ONSWC   (0x04<<16)
 
#define AB3100_EVENTA1_DCIO   (0x08<<16)
 
#define AB3100_EVENTA1_OVER_TEMP   (0x10<<16)
 
#define AB3100_EVENTA1_SIM_OFF   (0x20<<16)
 
#define AB3100_EVENTA1_VBUS   (0x40<<16)
 
#define AB3100_EVENTA1_VSET_USB   (0x80<<16)
 
#define AB3100_EVENTA2_READY_TX   (0x01<<8)
 
#define AB3100_EVENTA2_READY_RX   (0x02<<8)
 
#define AB3100_EVENTA2_OVERRUN_ERROR   (0x04<<8)
 
#define AB3100_EVENTA2_FRAMING_ERROR   (0x08<<8)
 
#define AB3100_EVENTA2_CHARG_OVERCURRENT   (0x10<<8)
 
#define AB3100_EVENTA2_MIDR   (0x20<<8)
 
#define AB3100_EVENTA2_BATTERY_REM   (0x40<<8)
 
#define AB3100_EVENTA2_ALARM   (0x80<<8)
 
#define AB3100_EVENTA3_ADC_TRIG5   (0x01)
 
#define AB3100_EVENTA3_ADC_TRIG4   (0x02)
 
#define AB3100_EVENTA3_ADC_TRIG3   (0x04)
 
#define AB3100_EVENTA3_ADC_TRIG2   (0x08)
 
#define AB3100_EVENTA3_ADC_TRIGVBAT   (0x10)
 
#define AB3100_EVENTA3_ADC_TRIGVTX   (0x20)
 
#define AB3100_EVENTA3_ADC_TRIG1   (0x40)
 
#define AB3100_EVENTA3_ADC_TRIG0   (0x80)
 
#define AB3100_STR_ONSWA   (0x01)
 
#define AB3100_STR_ONSWB   (0x02)
 
#define AB3100_STR_ONSWC   (0x04)
 
#define AB3100_STR_DCIO   (0x08)
 
#define AB3100_STR_BOOT_MODE   (0x10)
 
#define AB3100_STR_SIM_OFF   (0x20)
 
#define AB3100_STR_BATT_REMOVAL   (0x40)
 
#define AB3100_STR_VBUS   (0x80)
 
#define AB3100_NUM_REGULATORS   10
 

Functions

int ab3100_event_register (struct ab3100 *ab3100, struct notifier_block *nb)
 
int ab3100_event_unregister (struct ab3100 *ab3100, struct notifier_block *nb)
 

Macro Definition Documentation

#define AB3100_EVENTA1_DCIO   (0x08<<16)

Definition at line 35 of file ab3100.h.

#define AB3100_EVENTA1_ONSWA   (0x01<<16)

Definition at line 32 of file ab3100.h.

#define AB3100_EVENTA1_ONSWB   (0x02<<16)

Definition at line 33 of file ab3100.h.

#define AB3100_EVENTA1_ONSWC   (0x04<<16)

Definition at line 34 of file ab3100.h.

#define AB3100_EVENTA1_OVER_TEMP   (0x10<<16)

Definition at line 36 of file ab3100.h.

#define AB3100_EVENTA1_SIM_OFF   (0x20<<16)

Definition at line 37 of file ab3100.h.

#define AB3100_EVENTA1_VBUS   (0x40<<16)

Definition at line 38 of file ab3100.h.

#define AB3100_EVENTA1_VSET_USB   (0x80<<16)

Definition at line 39 of file ab3100.h.

#define AB3100_EVENTA2_ALARM   (0x80<<8)

Definition at line 48 of file ab3100.h.

#define AB3100_EVENTA2_BATTERY_REM   (0x40<<8)

Definition at line 47 of file ab3100.h.

#define AB3100_EVENTA2_CHARG_OVERCURRENT   (0x10<<8)

Definition at line 45 of file ab3100.h.

#define AB3100_EVENTA2_FRAMING_ERROR   (0x08<<8)

Definition at line 44 of file ab3100.h.

#define AB3100_EVENTA2_MIDR   (0x20<<8)

Definition at line 46 of file ab3100.h.

#define AB3100_EVENTA2_OVERRUN_ERROR   (0x04<<8)

Definition at line 43 of file ab3100.h.

#define AB3100_EVENTA2_READY_RX   (0x02<<8)

Definition at line 42 of file ab3100.h.

#define AB3100_EVENTA2_READY_TX   (0x01<<8)

Definition at line 41 of file ab3100.h.

#define AB3100_EVENTA3_ADC_TRIG0   (0x80)

Definition at line 57 of file ab3100.h.

#define AB3100_EVENTA3_ADC_TRIG1   (0x40)

Definition at line 56 of file ab3100.h.

#define AB3100_EVENTA3_ADC_TRIG2   (0x08)

Definition at line 53 of file ab3100.h.

#define AB3100_EVENTA3_ADC_TRIG3   (0x04)

Definition at line 52 of file ab3100.h.

#define AB3100_EVENTA3_ADC_TRIG4   (0x02)

Definition at line 51 of file ab3100.h.

#define AB3100_EVENTA3_ADC_TRIG5   (0x01)

Definition at line 50 of file ab3100.h.

#define AB3100_EVENTA3_ADC_TRIGVBAT   (0x10)

Definition at line 54 of file ab3100.h.

#define AB3100_EVENTA3_ADC_TRIGVTX   (0x20)

Definition at line 55 of file ab3100.h.

#define AB3100_NUM_REGULATORS   10

Definition at line 75 of file ab3100.h.

#define AB3100_P1A   0xc0

Definition at line 17 of file ab3100.h.

#define AB3100_P1B   0xc1

Definition at line 18 of file ab3100.h.

#define AB3100_P1C   0xc2

Definition at line 19 of file ab3100.h.

#define AB3100_P1D   0xc3

Definition at line 20 of file ab3100.h.

#define AB3100_P1E   0xc4

Definition at line 21 of file ab3100.h.

#define AB3100_P1F   0xc5

Definition at line 22 of file ab3100.h.

#define AB3100_P1G   0xc6

Definition at line 23 of file ab3100.h.

#define AB3100_R2A   0xc7

Definition at line 24 of file ab3100.h.

#define AB3100_R2B   0xc8

Definition at line 25 of file ab3100.h.

#define AB3100_STR_BATT_REMOVAL   (0x40)

Definition at line 66 of file ab3100.h.

#define AB3100_STR_BOOT_MODE   (0x10)

Definition at line 64 of file ab3100.h.

#define AB3100_STR_DCIO   (0x08)

Definition at line 63 of file ab3100.h.

#define AB3100_STR_ONSWA   (0x01)

Definition at line 60 of file ab3100.h.

#define AB3100_STR_ONSWB   (0x02)

Definition at line 61 of file ab3100.h.

#define AB3100_STR_ONSWC   (0x04)

Definition at line 62 of file ab3100.h.

#define AB3100_STR_SIM_OFF   (0x20)

Definition at line 65 of file ab3100.h.

#define AB3100_STR_VBUS   (0x80)

Definition at line 67 of file ab3100.h.

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.