Linux Kernel
3.7.1
|
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/swab.h>
#include <linux/i2c.h>
#include <linux/idr.h>
#include <linux/power_supply.h>
#include <linux/slab.h>
#include <linux/ds2782_battery.h>
Go to the source code of this file.
Data Structures | |
struct | ds278x_battery_ops |
struct | ds278x_info |
Macros | |
#define | DS2782_REG_RARC 0x06 /* Remaining active relative capacity */ |
#define | DS278x_REG_VOLT_MSB 0x0c |
#define | DS278x_REG_TEMP_MSB 0x0a |
#define | DS278x_REG_CURRENT_MSB 0x0e |
#define | DS2782_REG_RSNSP 0x69 /* Sense resistor value */ |
#define | DS2782_CURRENT_UNITS 1563 |
#define | DS2786_REG_RARC 0x02 /* Remaining active relative capacity */ |
#define | DS2786_CURRENT_UNITS 25 |
#define | to_ds278x_info(x) container_of(x, struct ds278x_info, battery) |
Enumerations | |
enum | ds278x_num_id { DS2782 = 0, DS2786 } |
Functions | |
MODULE_DEVICE_TABLE (i2c, ds278x_id) | |
module_i2c_driver (ds278x_battery_driver) | |
MODULE_AUTHOR ("Ryan Mallon") | |
MODULE_DESCRIPTION ("Maxim/Dallas DS2782 Stand-Alone Fuel Gauage IC driver") | |
MODULE_LICENSE ("GPL") | |
#define DS2782_CURRENT_UNITS 1563 |
Definition at line 37 of file ds2782_battery.c.
#define DS2782_REG_RARC 0x06 /* Remaining active relative capacity */ |
Definition at line 27 of file ds2782_battery.c.
#define DS2782_REG_RSNSP 0x69 /* Sense resistor value */ |
Definition at line 34 of file ds2782_battery.c.
#define DS2786_CURRENT_UNITS 25 |
Definition at line 41 of file ds2782_battery.c.
#define DS2786_REG_RARC 0x02 /* Remaining active relative capacity */ |
Definition at line 39 of file ds2782_battery.c.
#define DS278x_REG_CURRENT_MSB 0x0e |
Definition at line 31 of file ds2782_battery.c.
#define DS278x_REG_TEMP_MSB 0x0a |
Definition at line 30 of file ds2782_battery.c.
#define DS278x_REG_VOLT_MSB 0x0c |
Definition at line 29 of file ds2782_battery.c.
#define to_ds278x_info | ( | x | ) | container_of(x, struct ds278x_info, battery) |
Definition at line 51 of file ds2782_battery.c.
enum ds278x_num_id |
Definition at line 302 of file ds2782_battery.c.
MODULE_AUTHOR | ( | "Ryan Mallon" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
ds278x_id | |||
) |
module_i2c_driver | ( | ds278x_battery_driver | ) |
MODULE_LICENSE | ( | "GPL" | ) |