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

Go to the source code of this file.

Data Structures

struct  ebook_switch
 

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MODULE_NAME   "xo15-ebook"
 
#define XO15_EBOOK_CLASS   MODULE_NAME
 
#define XO15_EBOOK_TYPE_UNKNOWN   0x00
 
#define XO15_EBOOK_NOTIFY_STATUS   0x80
 
#define XO15_EBOOK_SUBCLASS   "ebook"
 
#define XO15_EBOOK_HID   "XO15EBK"
 
#define XO15_EBOOK_DEVICE_NAME   "EBook Switch"
 

Functions

 ACPI_MODULE_NAME (MODULE_NAME)
 
 MODULE_DESCRIPTION ("OLPC XO-1.5 ebook switch driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (acpi, ebook_device_ids)
 
 module_acpi_driver (xo15_ebook_driver)
 

Macro Definition Documentation

#define MODULE_NAME   "xo15-ebook"

Definition at line 24 of file xo15-ebook.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 14 of file xo15-ebook.c.

#define XO15_EBOOK_CLASS   MODULE_NAME

Definition at line 26 of file xo15-ebook.c.

#define XO15_EBOOK_DEVICE_NAME   "EBook Switch"

Definition at line 32 of file xo15-ebook.c.

#define XO15_EBOOK_HID   "XO15EBK"

Definition at line 31 of file xo15-ebook.c.

#define XO15_EBOOK_NOTIFY_STATUS   0x80

Definition at line 28 of file xo15-ebook.c.

#define XO15_EBOOK_SUBCLASS   "ebook"

Definition at line 30 of file xo15-ebook.c.

#define XO15_EBOOK_TYPE_UNKNOWN   0x00

Definition at line 27 of file xo15-ebook.c.

Function Documentation

ACPI_MODULE_NAME ( MODULE_NAME  )
module_acpi_driver ( xo15_ebook_driver  )
MODULE_DESCRIPTION ( "OLPC XO-1.5 ebook switch driver )
MODULE_DEVICE_TABLE ( acpi  ,
ebook_device_ids   
)
MODULE_LICENSE ( "GPL"  )