Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
panasonic-laptop.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/backlight.h>
#include <linux/ctype.h>
#include <linux/seq_file.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <acpi/acpi_bus.h>
#include <acpi/acpi_drivers.h>
#include <linux/input.h>
#include <linux/input/sparse-keymap.h>

Go to the source code of this file.

Data Structures

struct  pcc_acpi
 
struct  pcc_keyinput
 

Macros

#define ACPI_HOTKEY_COMPONENT   0x10000000
 
#define _COMPONENT   ACPI_HOTKEY_COMPONENT
 
#define LOGPREFIX   "pcc_acpi: "
 
#define METHOD_HKEY_QUERY   "HINF"
 
#define METHOD_HKEY_SQTY   "SQTY"
 
#define METHOD_HKEY_SINF   "SINF"
 
#define METHOD_HKEY_SSET   "SSET"
 
#define HKEY_NOTIFY   0x80
 
#define ACPI_PCC_DRIVER_NAME   "Panasonic Laptop Support"
 
#define ACPI_PCC_DEVICE_NAME   "Hotkey"
 
#define ACPI_PCC_CLASS   "pcc"
 
#define ACPI_PCC_INPUT_PHYS   "panasonic/hkey0"
 

Enumerations

enum  SINF_BITS {
  SINF_NUM_BATTERIES = 0, SINF_LCD_TYPE, SINF_AC_MAX_BRIGHT, SINF_AC_MIN_BRIGHT,
  SINF_AC_CUR_BRIGHT, SINF_DC_MAX_BRIGHT, SINF_DC_MIN_BRIGHT, SINF_DC_CUR_BRIGHT,
  SINF_MUTE, SINF_RESERVED, SINF_ENV_STATE, SINF_STICKY_KEY = 0x80
}
 

Functions

 MODULE_AUTHOR ("Hiroshi Miura, David Bronaugh and Harald Welte")
 
 MODULE_DESCRIPTION ("ACPI HotKey driver for Panasonic Let's Note laptops")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (acpi, pcc_device_ids)
 
 module_init (acpi_pcc_init)
 
 module_exit (acpi_pcc_exit)
 

Macro Definition Documentation

#define _COMPONENT   ACPI_HOTKEY_COMPONENT

Definition at line 138 of file panasonic-laptop.c.

#define ACPI_HOTKEY_COMPONENT   0x10000000

Definition at line 135 of file panasonic-laptop.c.

#define ACPI_PCC_CLASS   "pcc"

Definition at line 156 of file panasonic-laptop.c.

#define ACPI_PCC_DEVICE_NAME   "Hotkey"

Definition at line 155 of file panasonic-laptop.c.

#define ACPI_PCC_DRIVER_NAME   "Panasonic Laptop Support"

Definition at line 154 of file panasonic-laptop.c.

#define ACPI_PCC_INPUT_PHYS   "panasonic/hkey0"

Definition at line 158 of file panasonic-laptop.c.

#define HKEY_NOTIFY   0x80

Definition at line 152 of file panasonic-laptop.c.

#define LOGPREFIX   "pcc_acpi: "

Definition at line 144 of file panasonic-laptop.c.

#define METHOD_HKEY_QUERY   "HINF"

Definition at line 148 of file panasonic-laptop.c.

#define METHOD_HKEY_SINF   "SINF"

Definition at line 150 of file panasonic-laptop.c.

#define METHOD_HKEY_SQTY   "SQTY"

Definition at line 149 of file panasonic-laptop.c.

#define METHOD_HKEY_SSET   "SSET"

Definition at line 151 of file panasonic-laptop.c.

Enumeration Type Documentation

enum SINF_BITS
Enumerator:
SINF_NUM_BATTERIES 
SINF_LCD_TYPE 
SINF_AC_MAX_BRIGHT 
SINF_AC_MIN_BRIGHT 
SINF_AC_CUR_BRIGHT 
SINF_DC_MAX_BRIGHT 
SINF_DC_MIN_BRIGHT 
SINF_DC_CUR_BRIGHT 
SINF_MUTE 
SINF_RESERVED 
SINF_ENV_STATE 
SINF_STICKY_KEY 

Definition at line 163 of file panasonic-laptop.c.

Function Documentation

MODULE_AUTHOR ( "Hiroshi  Miura,
David Bronaugh and Harald Welte"   
)
MODULE_DESCRIPTION ( "ACPI HotKey driver for Panasonic Let's Note laptops"  )
MODULE_DEVICE_TABLE ( acpi  ,
pcc_device_ids   
)
module_exit ( acpi_pcc_exit  )
module_init ( acpi_pcc_init  )
MODULE_LICENSE ( "GPL"  )