Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xusbatm.c File Reference
#include <linux/module.h>
#include <linux/etherdevice.h>
#include "usbatm.h"

Go to the source code of this file.

Macros

#define XUSBATM_DRIVERS_MAX   8
 
#define XUSBATM_PARM(name, type, parmtype, desc)
 

Functions

 XUSBATM_PARM (vendor, unsigned short, ushort,"USB device vendor")
 
 XUSBATM_PARM (product, unsigned short, ushort,"USB device product")
 
 XUSBATM_PARM (rx_endpoint, unsigned char, byte,"rx endpoint number")
 
 XUSBATM_PARM (tx_endpoint, unsigned char, byte,"tx endpoint number")
 
 XUSBATM_PARM (rx_padding, unsigned char, byte,"rx padding (default 0)")
 
 XUSBATM_PARM (tx_padding, unsigned char, byte,"tx padding (default 0)")
 
 XUSBATM_PARM (rx_altsetting, unsigned char, byte,"rx altsetting (default 0)")
 
 XUSBATM_PARM (tx_altsetting, unsigned char, byte,"rx altsetting (default 0)")
 
 module_init (xusbatm_init)
 
 module_exit (xusbatm_exit)
 
 MODULE_AUTHOR ("Roman Kagan, Duncan Sands")
 
 MODULE_DESCRIPTION ("Driver for USB ADSL modems initialized in userspace")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION ("0.1")
 

Macro Definition Documentation

#define XUSBATM_DRIVERS_MAX   8

Definition at line 28 of file xusbatm.c.

#define XUSBATM_PARM (   name,
  type,
  parmtype,
  desc 
)
Value:
static unsigned int num_##name; \
module_param_array(name, parmtype, &num_##name, 0444); \
MODULE_PARM_DESC(name, desc)

Definition at line 30 of file xusbatm.c.

Function Documentation

MODULE_AUTHOR ( "Roman  Kagan,
Duncan Sands"   
)
MODULE_DESCRIPTION ( "Driver for USB ADSL modems initialized in userspace )
module_exit ( xusbatm_exit  )
module_init ( xusbatm_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( "0.1"  )
XUSBATM_PARM ( vendor  ,
unsigned  short,
ushort  ,
"USB device vendor  
)
XUSBATM_PARM ( product  ,
unsigned  short,
ushort  ,
"USB device product  
)
XUSBATM_PARM ( rx_endpoint  ,
unsigned  char,
byte  ,
"rx endpoint number  
)
XUSBATM_PARM ( tx_endpoint  ,
unsigned  char,
byte  ,
"tx endpoint number  
)
XUSBATM_PARM ( rx_padding  ,
unsigned  char,
byte  ,
"rx padding (default 0)"   
)
XUSBATM_PARM ( tx_padding  ,
unsigned  char,
byte  ,
"tx padding (default 0)"   
)
XUSBATM_PARM ( rx_altsetting  ,
unsigned  char,
byte  ,
"rx altsetting (default 0)"   
)
XUSBATM_PARM ( tx_altsetting  ,
unsigned  char,
byte  ,
"rx altsetting (default 0)"   
)