Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sunkbd.c File Reference
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/input.h>
#include <linux/serio.h>
#include <linux/workqueue.h>

Go to the source code of this file.

Data Structures

struct  sunkbd
 

Macros

#define DRIVER_DESC   "Sun keyboard driver"
 
#define SUNKBD_CMD_RESET   0x1
 
#define SUNKBD_CMD_BELLON   0x2
 
#define SUNKBD_CMD_BELLOFF   0x3
 
#define SUNKBD_CMD_CLICK   0xa
 
#define SUNKBD_CMD_NOCLICK   0xb
 
#define SUNKBD_CMD_SETLED   0xe
 
#define SUNKBD_CMD_LAYOUT   0xf
 
#define SUNKBD_RET_RESET   0xff
 
#define SUNKBD_RET_ALLUP   0x7f
 
#define SUNKBD_RET_LAYOUT   0xfe
 
#define SUNKBD_LAYOUT_5_MASK   0x20
 
#define SUNKBD_RELEASE   0x80
 
#define SUNKBD_KEY   0x7f
 

Functions

 MODULE_AUTHOR ("Vojtech Pavlik <[email protected]>")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (serio, sunkbd_serio_ids)
 
 module_serio_driver (sunkbd_drv)
 

Macro Definition Documentation

#define DRIVER_DESC   "Sun keyboard driver"

Definition at line 39 of file sunkbd.c.

#define SUNKBD_CMD_BELLOFF   0x3

Definition at line 58 of file sunkbd.c.

#define SUNKBD_CMD_BELLON   0x2

Definition at line 57 of file sunkbd.c.

#define SUNKBD_CMD_CLICK   0xa

Definition at line 59 of file sunkbd.c.

#define SUNKBD_CMD_LAYOUT   0xf

Definition at line 62 of file sunkbd.c.

#define SUNKBD_CMD_NOCLICK   0xb

Definition at line 60 of file sunkbd.c.

#define SUNKBD_CMD_RESET   0x1

Definition at line 56 of file sunkbd.c.

#define SUNKBD_CMD_SETLED   0xe

Definition at line 61 of file sunkbd.c.

#define SUNKBD_KEY   0x7f

Definition at line 70 of file sunkbd.c.

#define SUNKBD_LAYOUT_5_MASK   0x20

Definition at line 68 of file sunkbd.c.

#define SUNKBD_RELEASE   0x80

Definition at line 69 of file sunkbd.c.

#define SUNKBD_RET_ALLUP   0x7f

Definition at line 65 of file sunkbd.c.

#define SUNKBD_RET_LAYOUT   0xfe

Definition at line 66 of file sunkbd.c.

#define SUNKBD_RET_RESET   0xff

Definition at line 64 of file sunkbd.c.

Function Documentation

MODULE_AUTHOR ( "Vojtech Pavlik <[email protected]>"  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( serio  ,
sunkbd_serio_ids   
)
MODULE_LICENSE ( "GPL"  )
module_serio_driver ( sunkbd_drv  )