Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ac.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/power_supply.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>

Go to the source code of this file.

Data Structures

struct  acpi_ac
 

Macros

#define PREFIX   "ACPI: "
 
#define ACPI_AC_CLASS   "ac_adapter"
 
#define ACPI_AC_DEVICE_NAME   "AC Adapter"
 
#define ACPI_AC_FILE_STATE   "state"
 
#define ACPI_AC_NOTIFY_STATUS   0x80
 
#define ACPI_AC_STATUS_OFFLINE   0x00
 
#define ACPI_AC_STATUS_ONLINE   0x01
 
#define ACPI_AC_STATUS_UNKNOWN   0xFF
 
#define _COMPONENT   ACPI_AC_COMPONENT
 
#define to_acpi_ac(x)   container_of(x, struct acpi_ac, charger)
 

Functions

 ACPI_MODULE_NAME ("ac")
 
 MODULE_AUTHOR ("Paul Diefenbaugh")
 
 MODULE_DESCRIPTION ("ACPI AC Adapter Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (acpi, ac_device_ids)
 
 module_init (acpi_ac_init)
 
 module_exit (acpi_ac_exit)
 

Macro Definition Documentation

#define _COMPONENT   ACPI_AC_COMPONENT

Definition at line 49 of file ac.c.

#define ACPI_AC_CLASS   "ac_adapter"

Definition at line 41 of file ac.c.

#define ACPI_AC_DEVICE_NAME   "AC Adapter"

Definition at line 42 of file ac.c.

#define ACPI_AC_FILE_STATE   "state"

Definition at line 43 of file ac.c.

#define ACPI_AC_NOTIFY_STATUS   0x80

Definition at line 44 of file ac.c.

#define ACPI_AC_STATUS_OFFLINE   0x00

Definition at line 45 of file ac.c.

#define ACPI_AC_STATUS_ONLINE   0x01

Definition at line 46 of file ac.c.

#define ACPI_AC_STATUS_UNKNOWN   0xFF

Definition at line 47 of file ac.c.

#define PREFIX   "ACPI: "

Definition at line 39 of file ac.c.

#define to_acpi_ac (   x)    container_of(x, struct acpi_ac, charger)

Definition at line 96 of file ac.c.

Function Documentation

ACPI_MODULE_NAME ( "ac"  )
MODULE_AUTHOR ( "Paul Diefenbaugh"  )
MODULE_DESCRIPTION ( "ACPI AC Adapter Driver"  )
MODULE_DEVICE_TABLE ( acpi  ,
ac_device_ids   
)
module_exit ( acpi_ac_exit  )
module_init ( acpi_ac_init  )
MODULE_LICENSE ( "GPL"  )