| 1 | Kernel driver `smartbatt.o' |
|---|
| 2 | ========================== |
|---|
| 3 | |
|---|
| 4 | Status: Alpha |
|---|
| 5 | |
|---|
| 6 | Supported chips: |
|---|
| 7 | * Smart batteries |
|---|
| 8 | Prefix: 'smartbatt' |
|---|
| 9 | Address scanned: 0x0b |
|---|
| 10 | Datasheet: Smart Battery Data Specification Revision 1.1 |
|---|
| 11 | http://www.sbs-forum.org/ |
|---|
| 12 | |
|---|
| 13 | Author: M. Studebaker <mdsxyz123@yahoo.com> |
|---|
| 14 | |
|---|
| 15 | License: GPL |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | Module Parameters |
|---|
| 19 | ----------------- |
|---|
| 20 | |
|---|
| 21 | * force: short array (min = 1, max = 48) |
|---|
| 22 | List of adapter,address pairs to boldly assume to be present |
|---|
| 23 | * force_smartbatt: short array (min = 1, max = 48) |
|---|
| 24 | List of adapter,address pairs which are unquestionably assumed to contain |
|---|
| 25 | a `smartbatt' chip |
|---|
| 26 | * probe: short array (min = 1, max = 48) |
|---|
| 27 | List of adapter,address pairs to scan additionally |
|---|
| 28 | * probe_range: short array (min = 1, max = 48) |
|---|
| 29 | List of adapter,start-addr,end-addr triples to scan additionally |
|---|
| 30 | * ignore: short array (min = 1, max = 48) |
|---|
| 31 | List of adapter,address pairs not to scan |
|---|
| 32 | * ignore_range: short array (min = 1, max = 48) |
|---|
| 33 | List of adapter,start-addr,end-addr triples not to scan |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | Detection |
|---|
| 37 | --------- |
|---|
| 38 | |
|---|
| 39 | Very poor. Just looks for the presence of some registers. |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | Uses |
|---|
| 43 | ---- |
|---|
| 44 | |
|---|
| 45 | Provides read-only access to battery voltage, current, temperature, |
|---|
| 46 | charge status, time remaining, and alarms. |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | /proc entries |
|---|
| 50 | ------------- |
|---|
| 51 | |
|---|
| 52 | Average readings are one minute rolling averages. |
|---|
| 53 | |
|---|
| 54 | alarms bitmask |
|---|
| 55 | charge relative charge, absolute charge (%) |
|---|
| 56 | i average current, instantaneous current (A) |
|---|
| 57 | temp temperature (deg. C) |
|---|
| 58 | time avg. time to empty, avg. time to full, |
|---|
| 59 | instantaneous time to full (min) |
|---|
| 60 | v max voltage, current voltage (V) |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | To do |
|---|
| 64 | ----- |
|---|
| 65 | |
|---|
| 66 | More features. |
|---|