Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
onetouch.c File Reference
#include <linux/kernel.h>
#include <linux/input.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/usb/input.h>
#include "usb.h"
#include "debug.h"
#include "unusual_onetouch.h"

Go to the source code of this file.

Data Structures

struct  usb_onetouch
 

Macros

#define ONETOUCH_PKT_LEN   0x02
 
#define ONETOUCH_BUTTON   KEY_PROG1
 
#define UNUSUAL_DEV(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax, vendorName, productName, useProtocol, useTransport, initFunction, flags)
 
#define UNUSUAL_DEV(idVendor, idProduct, bcdDeviceMin, bcdDeviceMax, vendor_name, product_name, use_protocol, use_transport, init_function, Flags)
 

Functions

 MODULE_DESCRIPTION ("Maxtor USB OneTouch hard drive button driver")
 
 MODULE_AUTHOR ("Nick Sillik <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (usb, onetouch_usb_ids)
 
 module_usb_driver (onetouch_driver)
 

Macro Definition Documentation

#define ONETOUCH_BUTTON   KEY_PROG1

Definition at line 45 of file onetouch.c.

#define ONETOUCH_PKT_LEN   0x02

Definition at line 44 of file onetouch.c.

#define UNUSUAL_DEV (   id_vendor,
  id_product,
  bcdDeviceMin,
  bcdDeviceMax,
  vendorName,
  productName,
  useProtocol,
  useTransport,
  initFunction,
  flags 
)
Value:
{ USB_DEVICE_VER(id_vendor, id_product, bcdDeviceMin, bcdDeviceMax), \
.driver_info = (flags) }

Definition at line 83 of file onetouch.c.

#define UNUSUAL_DEV (   idVendor,
  idProduct,
  bcdDeviceMin,
  bcdDeviceMax,
  vendor_name,
  product_name,
  use_protocol,
  use_transport,
  init_function,
  Flags 
)
Value:
{ \
.vendorName = vendor_name, \
.productName = product_name, \
.useProtocol = use_protocol, \
.useTransport = use_transport, \
.initFunction = init_function, \
}

Definition at line 83 of file onetouch.c.

Function Documentation

MODULE_AUTHOR ( "Nick Sillik <[email protected]>"  )
MODULE_DESCRIPTION ( "Maxtor USB OneTouch hard drive button driver )
MODULE_DEVICE_TABLE ( usb  ,
onetouch_usb_ids   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( onetouch_driver  )