Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
toshiba_acpi.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/backlight.h>
#include <linux/rfkill.h>
#include <linux/input.h>
#include <linux/input/sparse-keymap.h>
#include <linux/leds.h>
#include <linux/slab.h>
#include <linux/workqueue.h>
#include <linux/i8042.h>
#include <asm/uaccess.h>
#include <acpi/acpi_drivers.h>

Go to the source code of this file.

Data Structures

struct  toshiba_acpi_dev
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define TOSHIBA_ACPI_VERSION   "0.19"
 
#define PROC_INTERFACE_VERSION   1
 
#define TOSHIBA_WMI_EVENT_GUID   "59142400-C6A3-40FA-BADB-8A2652834100"
 
#define TOS1900_FN_SCAN   0x6e
 
#define METHOD_VIDEO_OUT   "\\_SB_.VALX.DSSX"
 
#define HCI_WORDS   6
 
#define HCI_SET   0xff00
 
#define HCI_GET   0xfe00
 
#define HCI_SUCCESS   0x0000
 
#define HCI_FAILURE   0x1000
 
#define HCI_NOT_SUPPORTED   0x8000
 
#define HCI_EMPTY   0x8c00
 
#define HCI_FAN   0x0004
 
#define HCI_TR_BACKLIGHT   0x0005
 
#define HCI_SYSTEM_EVENT   0x0016
 
#define HCI_VIDEO_OUT   0x001c
 
#define HCI_HOTKEY_EVENT   0x001e
 
#define HCI_LCD_BRIGHTNESS   0x002a
 
#define HCI_WIRELESS   0x0056
 
#define HCI_HOTKEY_DISABLE   0x0b
 
#define HCI_HOTKEY_ENABLE   0x09
 
#define HCI_LCD_BRIGHTNESS_BITS   3
 
#define HCI_LCD_BRIGHTNESS_SHIFT   (16-HCI_LCD_BRIGHTNESS_BITS)
 
#define HCI_LCD_BRIGHTNESS_LEVELS   (1 << HCI_LCD_BRIGHTNESS_BITS)
 
#define HCI_VIDEO_OUT_LCD   0x1
 
#define HCI_VIDEO_OUT_CRT   0x2
 
#define HCI_VIDEO_OUT_TV   0x4
 
#define HCI_WIRELESS_KILL_SWITCH   0x01
 
#define HCI_WIRELESS_BT_PRESENT   0x0f
 
#define HCI_WIRELESS_BT_ATTACH   0x40
 
#define HCI_WIRELESS_BT_POWER   0x80
 
#define PROC_TOSHIBA   "toshiba"
 

Functions

 MODULE_AUTHOR ("John Belmonte")
 
 MODULE_DESCRIPTION ("Toshiba Laptop ACPI Extras Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (acpi, toshiba_device_ids)
 
 module_init (toshiba_acpi_init)
 
 module_exit (toshiba_acpi_exit)
 

Macro Definition Documentation

#define HCI_EMPTY   0x8c00

Definition at line 94 of file toshiba_acpi.c.

#define HCI_FAILURE   0x1000

Definition at line 92 of file toshiba_acpi.c.

#define HCI_FAN   0x0004

Definition at line 97 of file toshiba_acpi.c.

#define HCI_GET   0xfe00

Definition at line 88 of file toshiba_acpi.c.

#define HCI_HOTKEY_DISABLE   0x0b

Definition at line 106 of file toshiba_acpi.c.

#define HCI_HOTKEY_ENABLE   0x09

Definition at line 107 of file toshiba_acpi.c.

#define HCI_HOTKEY_EVENT   0x001e

Definition at line 101 of file toshiba_acpi.c.

#define HCI_LCD_BRIGHTNESS   0x002a

Definition at line 102 of file toshiba_acpi.c.

#define HCI_LCD_BRIGHTNESS_BITS   3

Definition at line 108 of file toshiba_acpi.c.

#define HCI_LCD_BRIGHTNESS_LEVELS   (1 << HCI_LCD_BRIGHTNESS_BITS)

Definition at line 110 of file toshiba_acpi.c.

#define HCI_LCD_BRIGHTNESS_SHIFT   (16-HCI_LCD_BRIGHTNESS_BITS)

Definition at line 109 of file toshiba_acpi.c.

#define HCI_NOT_SUPPORTED   0x8000

Definition at line 93 of file toshiba_acpi.c.

#define HCI_SET   0xff00

Definition at line 87 of file toshiba_acpi.c.

#define HCI_SUCCESS   0x0000

Definition at line 91 of file toshiba_acpi.c.

#define HCI_SYSTEM_EVENT   0x0016

Definition at line 99 of file toshiba_acpi.c.

#define HCI_TR_BACKLIGHT   0x0005

Definition at line 98 of file toshiba_acpi.c.

#define HCI_VIDEO_OUT   0x001c

Definition at line 100 of file toshiba_acpi.c.

#define HCI_VIDEO_OUT_CRT   0x2

Definition at line 112 of file toshiba_acpi.c.

#define HCI_VIDEO_OUT_LCD   0x1

Definition at line 111 of file toshiba_acpi.c.

#define HCI_VIDEO_OUT_TV   0x4

Definition at line 113 of file toshiba_acpi.c.

#define HCI_WIRELESS   0x0056

Definition at line 103 of file toshiba_acpi.c.

#define HCI_WIRELESS_BT_ATTACH   0x40

Definition at line 116 of file toshiba_acpi.c.

#define HCI_WIRELESS_BT_POWER   0x80

Definition at line 117 of file toshiba_acpi.c.

#define HCI_WIRELESS_BT_PRESENT   0x0f

Definition at line 115 of file toshiba_acpi.c.

#define HCI_WIRELESS_KILL_SWITCH   0x01

Definition at line 114 of file toshiba_acpi.c.

#define HCI_WORDS   6

Definition at line 84 of file toshiba_acpi.c.

#define METHOD_VIDEO_OUT   "\\_SB_.VALX.DSSX"

Definition at line 72 of file toshiba_acpi.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 38 of file toshiba_acpi.c.

#define PROC_INTERFACE_VERSION   1

Definition at line 41 of file toshiba_acpi.c.

#define PROC_TOSHIBA   "toshiba"

Definition at line 876 of file toshiba_acpi.c.

#define TOS1900_FN_SCAN   0x6e

Definition at line 69 of file toshiba_acpi.c.

#define TOSHIBA_ACPI_VERSION   "0.19"

Definition at line 40 of file toshiba_acpi.c.

#define TOSHIBA_WMI_EVENT_GUID   "59142400-C6A3-40FA-BADB-8A2652834100"

Definition at line 66 of file toshiba_acpi.c.

Function Documentation

MODULE_AUTHOR ( "John Belmonte"  )
MODULE_DESCRIPTION ( "Toshiba Laptop ACPI Extras Driver"  )
MODULE_DEVICE_TABLE ( acpi  ,
toshiba_device_ids   
)
module_exit ( toshiba_acpi_exit  )
module_init ( toshiba_acpi_init  )
MODULE_LICENSE ( "GPL"  )