Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
microtek.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/errno.h>
#include <linux/random.h>
#include <linux/poll.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/usb.h>
#include <linux/proc_fs.h>
#include <linux/atomic.h>
#include <linux/blkdev.h>
#include "../../scsi/scsi.h"
#include <scsi/scsi_host.h>
#include "microtek.h"

Go to the source code of this file.

Macros

#define DRIVER_VERSION   "v0.4.3"
 
#define DRIVER_AUTHOR   "John Fremlin <[email protected]>, Oliver Neukum <[email protected]>"
 
#define DRIVER_DESC   "Microtek Scanmaker X6 USB scanner driver"
 
#define MTS_VERSION   "0.4.3"
 
#define MTS_NAME   "microtek usb (rev " MTS_VERSION "): "
 
#define MTS_WARNING(x...)   printk( KERN_WARNING MTS_NAME x )
 
#define MTS_ERROR(x...)   printk( KERN_ERR MTS_NAME x )
 
#define MTS_INT_ERROR(x...)   MTS_ERROR(x)
 
#define MTS_MESSAGE(x...)   printk( KERN_INFO MTS_NAME x )
 
#define MTS_NUL_STATEMENT   do { } while(0)
 
#define MTS_DEBUG(x...)   MTS_NUL_STATEMENT
 
#define MTS_DEBUG_GOT_HERE()   MTS_NUL_STATEMENT
 
#define MTS_DEBUG_INT()   MTS_NUL_STATEMENT
 
#define MTS_INT_INIT()
 
#define MTS_DIRECTION_IS_IN(x)   ((mts_direction[x>>3] >> (x & 7)) & 1)
 

Functions

 MODULE_DEVICE_TABLE (usb, mts_usb_ids)
 
 module_usb_driver (mts_usb_driver)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "John Fremlin <[email protected]>, Oliver Neukum <[email protected]>"

Definition at line 145 of file microtek.c.

#define DRIVER_DESC   "Microtek Scanmaker X6 USB scanner driver"

Definition at line 146 of file microtek.c.

#define DRIVER_VERSION   "v0.4.3"

Definition at line 144 of file microtek.c.

#define MTS_DEBUG (   x...)    MTS_NUL_STATEMENT

Definition at line 199 of file microtek.c.

#define MTS_DEBUG_GOT_HERE ( )    MTS_NUL_STATEMENT

Definition at line 200 of file microtek.c.

#define MTS_DEBUG_INT ( )    MTS_NUL_STATEMENT

Definition at line 201 of file microtek.c.

#define MTS_DIRECTION_IS_IN (   x)    ((mts_direction[x>>3] >> (x & 7)) & 1)

Definition at line 529 of file microtek.c.

#define MTS_ERROR (   x...)    printk( KERN_ERR MTS_NAME x )

Definition at line 175 of file microtek.c.

#define MTS_INT_ERROR (   x...)    MTS_ERROR(x)

Definition at line 177 of file microtek.c.

#define MTS_INT_INIT ( )
Value:
struct mts_transfer_context* context = (struct mts_transfer_context*)transfer->context; \

Definition at line 207 of file microtek.c.

#define MTS_MESSAGE (   x...)    printk( KERN_INFO MTS_NAME x )

Definition at line 179 of file microtek.c.

#define MTS_NAME   "microtek usb (rev " MTS_VERSION "): "

Definition at line 171 of file microtek.c.

#define MTS_NUL_STATEMENT   do { } while(0)

Definition at line 197 of file microtek.c.

#define MTS_VERSION   "0.4.3"

Definition at line 170 of file microtek.c.

#define MTS_WARNING (   x...)    printk( KERN_WARNING MTS_NAME x )

Definition at line 173 of file microtek.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
mts_usb_ids   
)
MODULE_LICENSE ( "GPL"  )
module_usb_driver ( mts_usb_driver  )