Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
adutux.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/usb.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  adu_device
 

Macros

#define dbg(lvl, format, arg...)
 
#define DRIVER_VERSION   "v0.0.13"
 
#define DRIVER_AUTHOR   "John Homppi"
 
#define DRIVER_DESC   "adutux (see www.ontrak.net)"
 
#define ADU_VENDOR_ID   0x0a07
 
#define ADU_PRODUCT_ID   0x0064
 
#define ADU_MINOR_BASE   67
 
#define MAX_DEVICES   16
 
#define COMMAND_TIMEOUT   (2*HZ) /* 60 second timeout for a command */
 

Functions

 module_param (debug, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (debug,"Debug enabled or not")
 
 MODULE_DEVICE_TABLE (usb, device_table)
 
 module_usb_driver (adu_driver)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ADU_MINOR_BASE   67

Definition at line 74 of file adutux.c.

#define ADU_PRODUCT_ID   0x0064

Definition at line 56 of file adutux.c.

#define ADU_VENDOR_ID   0x0a07

Definition at line 55 of file adutux.c.

#define COMMAND_TIMEOUT   (2*HZ) /* 60 second timeout for a command */

Definition at line 80 of file adutux.c.

#define dbg (   lvl,
  format,
  arg... 
)
Value:
do { \
if (debug >= lvl) \
printk(KERN_DEBUG "%s: " format "\n", __FILE__, ##arg); \
} while (0)

Definition at line 38 of file adutux.c.

#define DRIVER_AUTHOR   "John Homppi"

Definition at line 47 of file adutux.c.

#define DRIVER_DESC   "adutux (see www.ontrak.net)"

Definition at line 48 of file adutux.c.

#define DRIVER_VERSION   "v0.0.13"

Definition at line 46 of file adutux.c.

#define MAX_DEVICES   16

Definition at line 78 of file adutux.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
device_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( debug  ,
"Debug enabled or not"   
)
module_usb_driver ( adu_driver  )