Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
sharpsl_pm.h File Reference

Go to the source code of this file.

Data Structures

struct  sharpsl_charger_machinfo
 
struct  battery_thresh
 
struct  battery_stat
 
struct  sharpsl_pm_status
 

Macros

#define SHARPSL_BATT_VOLT   1
 
#define SHARPSL_BATT_TEMP   2
 
#define SHARPSL_ACIN_VOLT   3
 
#define SHARPSL_STATUS_ACIN   4
 
#define SHARPSL_STATUS_LOCK   5
 
#define SHARPSL_STATUS_CHRGFULL   6
 
#define SHARPSL_STATUS_FATAL   7
 
#define CHRG_ERROR   (-1)
 
#define CHRG_OFF   (0)
 
#define CHRG_ON   (1)
 
#define CHRG_DONE   (2)
 
#define SHARPSL_SUSPENDED   (1 << 0) /* Device is Suspended */
 
#define SHARPSL_ALARM_ACTIVE   (1 << 1) /* Alarm is for charging event (not user) */
 
#define SHARPSL_BL_LIMIT   (1 << 2) /* Backlight Intensity Limited */
 
#define SHARPSL_APM_QUEUED   (1 << 3) /* APM Event Queued */
 
#define SHARPSL_DO_OFFLINE_CHRG   (1 << 4) /* Trigger the offline charger */
 
#define SHARPSL_LED_ERROR   2
 
#define SHARPSL_LED_ON   1
 
#define SHARPSL_LED_OFF   0
 
#define MAX1111_BATT_VOLT   4u
 
#define MAX1111_BATT_TEMP   2u
 
#define MAX1111_ACIN_VOLT   6u
 

Functions

void sharpsl_battery_kick (void)
 
void sharpsl_pm_led (int val)
 
int sharpsl_pm_pxa_read_max1111 (int channel)
 
void corgi_lcd_limit_intensity (int limit)
 

Variables

struct sharpsl_pm_status sharpsl_pm
 
struct battery_thresh sharpsl_battery_levels_acin []
 
struct battery_thresh sharpsl_battery_levels_noac []
 

Macro Definition Documentation

#define CHRG_DONE   (2)

Definition at line 79 of file sharpsl_pm.h.

#define CHRG_ERROR   (-1)

Definition at line 76 of file sharpsl_pm.h.

#define CHRG_OFF   (0)

Definition at line 77 of file sharpsl_pm.h.

#define CHRG_ON   (1)

Definition at line 78 of file sharpsl_pm.h.

#define MAX1111_ACIN_VOLT   6u

Definition at line 109 of file sharpsl_pm.h.

#define MAX1111_BATT_TEMP   2u

Definition at line 108 of file sharpsl_pm.h.

#define MAX1111_BATT_VOLT   4u

Definition at line 107 of file sharpsl_pm.h.

#define SHARPSL_ACIN_VOLT   3

Definition at line 32 of file sharpsl_pm.h.

#define SHARPSL_ALARM_ACTIVE   (1 << 1) /* Alarm is for charging event (not user) */

Definition at line 83 of file sharpsl_pm.h.

#define SHARPSL_APM_QUEUED   (1 << 3) /* APM Event Queued */

Definition at line 85 of file sharpsl_pm.h.

#define SHARPSL_BATT_TEMP   2

Definition at line 31 of file sharpsl_pm.h.

#define SHARPSL_BATT_VOLT   1

Definition at line 30 of file sharpsl_pm.h.

#define SHARPSL_BL_LIMIT   (1 << 2) /* Backlight Intensity Limited */

Definition at line 84 of file sharpsl_pm.h.

#define SHARPSL_DO_OFFLINE_CHRG   (1 << 4) /* Trigger the offline charger */

Definition at line 86 of file sharpsl_pm.h.

#define SHARPSL_LED_ERROR   2

Definition at line 99 of file sharpsl_pm.h.

#define SHARPSL_LED_OFF   0

Definition at line 101 of file sharpsl_pm.h.

#define SHARPSL_LED_ON   1

Definition at line 100 of file sharpsl_pm.h.

#define SHARPSL_STATUS_ACIN   4

Definition at line 33 of file sharpsl_pm.h.

#define SHARPSL_STATUS_CHRGFULL   6

Definition at line 35 of file sharpsl_pm.h.

#define SHARPSL_STATUS_FATAL   7

Definition at line 36 of file sharpsl_pm.h.

#define SHARPSL_STATUS_LOCK   5

Definition at line 34 of file sharpsl_pm.h.

#define SHARPSL_SUSPENDED   (1 << 0) /* Device is Suspended */

Definition at line 82 of file sharpsl_pm.h.

Function Documentation

void corgi_lcd_limit_intensity ( int  limit)

Definition at line 444 of file corgi_lcd.c.

void sharpsl_battery_kick ( void  )

Definition at line 223 of file sharpsl_pm.c.

void sharpsl_pm_led ( int  val)

Definition at line 283 of file sharpsl_pm.c.

int sharpsl_pm_pxa_read_max1111 ( int  channel)

Definition at line 175 of file sharpsl_pm.c.

Variable Documentation

struct battery_thresh sharpsl_battery_levels_acin[]

Definition at line 77 of file sharpsl_pm.c.

struct battery_thresh sharpsl_battery_levels_noac[]

Definition at line 120 of file sharpsl_pm.c.

Definition at line 70 of file sharpsl_pm.c.