#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/kernel.h>
#include <linux/acpi.h>
#include <linux/timer.h>
#include <linux/jiffies.h>
#include <linux/delay.h>
#include <linux/power_supply.h>
#include "sbshc.h"
Go to the source code of this file.
#define ACPI_AC_CLASS "ac_adapter" |
Definition at line 50 of file sbs.c.
#define ACPI_AC_DIR_NAME "AC0" |
Definition at line 57 of file sbs.c.
#define ACPI_BATTERY_CLASS "battery" |
Definition at line 51 of file sbs.c.
#define ACPI_BATTERY_DIR_NAME "BAT%i" |
Definition at line 56 of file sbs.c.
#define ACPI_SBS_BLOCK_MAX 32 |
Definition at line 76 of file sbs.c.
#define ACPI_SBS_CLASS "sbs" |
Definition at line 49 of file sbs.c.
#define ACPI_SBS_DEVICE_NAME "Smart Battery System" |
Definition at line 52 of file sbs.c.
#define ACPI_SBS_FILE_ALARM "alarm" |
Definition at line 55 of file sbs.c.
#define ACPI_SBS_FILE_INFO "info" |
Definition at line 53 of file sbs.c.
#define ACPI_SBS_FILE_STATE "state" |
Definition at line 54 of file sbs.c.
#define ACPI_SBS_NOTIFY_INFO 0x81 |
Definition at line 60 of file sbs.c.
#define ACPI_SBS_NOTIFY_STATUS 0x80 |
Definition at line 59 of file sbs.c.
Definition at line 75 of file sbs.c.
Definition at line 47 of file sbs.c.
MODULE_DEVICE_TABLE |
( |
acpi |
, |
|
|
sbs_device_ids |
|
|
) |
| |
module_exit |
( |
acpi_sbs_exit |
| ) |
|
module_init |
( |
acpi_sbs_init |
| ) |
|
module_param |
( |
cache_time |
, |
|
|
uint |
, |
|
|
0644 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
cache_time |
, |
|
|
"cache time in milliseconds" |
|
|
) |
| |