Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
yurex.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/kref.h>
#include <linux/mutex.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/hid.h>

Go to the source code of this file.

Data Structures

struct  usb_yurex
 

Macros

#define DRIVER_AUTHOR   "Tomoki Sekiyama"
 
#define DRIVER_DESC   "Driver for Meywa-Denki & KAYAC YUREX"
 
#define YUREX_VENDOR_ID   0x0c45
 
#define YUREX_PRODUCT_ID   0x1010
 
#define CMD_ACK   '!'
 
#define CMD_ANIMATE   'A'
 
#define CMD_COUNT   'C'
 
#define CMD_LED   'L'
 
#define CMD_READ   'R'
 
#define CMD_SET   'S'
 
#define CMD_VERSION   'V'
 
#define CMD_EOF   0x0d
 
#define CMD_PADDING   0xff
 
#define YUREX_BUF_SIZE   8
 
#define YUREX_WRITE_TIMEOUT   (HZ*2)
 
#define YUREX_MINOR_BASE   192
 
#define to_yurex_dev(d)   container_of(d, struct usb_yurex, kref)
 

Functions

 MODULE_DEVICE_TABLE (usb, yurex_table)
 
 module_usb_driver (yurex_driver)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CMD_ACK   '!'

Definition at line 29 of file yurex.c.

#define CMD_ANIMATE   'A'

Definition at line 30 of file yurex.c.

#define CMD_COUNT   'C'

Definition at line 31 of file yurex.c.

#define CMD_EOF   0x0d

Definition at line 36 of file yurex.c.

#define CMD_LED   'L'

Definition at line 32 of file yurex.c.

#define CMD_PADDING   0xff

Definition at line 37 of file yurex.c.

#define CMD_READ   'R'

Definition at line 33 of file yurex.c.

#define CMD_SET   'S'

Definition at line 34 of file yurex.c.

#define CMD_VERSION   'V'

Definition at line 35 of file yurex.c.

#define DRIVER_AUTHOR   "Tomoki Sekiyama"

Definition at line 23 of file yurex.c.

#define DRIVER_DESC   "Driver for Meywa-Denki & KAYAC YUREX"

Definition at line 24 of file yurex.c.

#define to_yurex_dev (   d)    container_of(d, struct usb_yurex, kref)

Definition at line 74 of file yurex.c.

#define YUREX_BUF_SIZE   8

Definition at line 39 of file yurex.c.

#define YUREX_MINOR_BASE   192

Definition at line 52 of file yurex.c.

#define YUREX_PRODUCT_ID   0x1010

Definition at line 27 of file yurex.c.

#define YUREX_VENDOR_ID   0x0c45

Definition at line 26 of file yurex.c.

#define YUREX_WRITE_TIMEOUT   (HZ*2)

Definition at line 40 of file yurex.c.

Function Documentation

MODULE_DEVICE_TABLE ( usb  ,
yurex_table   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( yurex_driver  )