Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
iuu_phoenix.c File Reference
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/slab.h>
#include <linux/tty.h>
#include <linux/tty_driver.h>
#include <linux/tty_flip.h>
#include <linux/serial.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/spinlock.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include "iuu_phoenix.h"
#include <linux/random.h>

Go to the source code of this file.

Data Structures

struct  iuu_private
 

Macros

#define DRIVER_VERSION   "v0.12"
 
#define DRIVER_DESC   "Infinity USB Unlimited Phoenix driver"
 
#define FISH(a, b, c, d)
 
#define SOUP(a, b, c, d)
 

Functions

 MODULE_DEVICE_TABLE (usb, id_table)
 
 module_usb_serial_driver (serial_drivers, id_table)
 
 MODULE_AUTHOR ("Alain Degreffe [email protected]")
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRIVER_VERSION)
 
 module_param (xmas, bool, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (xmas,"Xmas colors enabled or not")
 
 module_param (boost, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (boost,"Card overclock boost (in percent 100-500)")
 
 module_param (clockmode, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (clockmode,"Card clock mode (1=3.579 MHz, 2=3.680 MHz, ""3=6 Mhz)")
 
 module_param (cdmode, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (cdmode,"Card detect mode (0=none, 1=CD, 2=!CD, 3=DSR, ""4=!DSR, 5=CTS, 6=!CTS, 7=RING, 8=!RING)")
 
 module_param (vcc_default, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (vcc_default,"Set default VCC (either 3 for 3.3V or 5 ""for 5V). Default to 5.")
 

Macro Definition Documentation

#define DRIVER_DESC   "Infinity USB Unlimited Phoenix driver"

Definition at line 39 of file iuu_phoenix.c.

#define DRIVER_VERSION   "v0.12"

Definition at line 38 of file iuu_phoenix.c.

#define FISH (   a,
  b,
  c,
  d 
)
Value:
do { \
result = usb_control_msg(port->serial->dev, \
usb_rcvctrlpipe(port->serial->dev, 0), \
b, a, c, d, buf, 1, 1000); \
dev_dbg(dev, "0x%x:0x%x:0x%x:0x%x %d - %x\n", a, b, c, d, result, \
buf[0]); } while (0);
#define SOUP (   a,
  b,
  c,
  d 
)
Value:
do { \
result = usb_control_msg(port->serial->dev, \
usb_sndctrlpipe(port->serial->dev, 0), \
b, a, c, d, NULL, 0, 1000); \
dev_dbg(dev, "0x%x:0x%x:0x%x:0x%x %d\n", a, b, c, d, result); } while (0)

Function Documentation

MODULE_AUTHOR ( "Alain Degreffe [email protected] )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
id_table   
)
MODULE_LICENSE ( "GPL"  )
module_param ( xmas  ,
bool  ,
S_IRUGO S_IWUSR 
)
module_param ( boost  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( clockmode  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( cdmode  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( vcc_default  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( xmas  ,
"Xmas colors enabled or not"   
)
MODULE_PARM_DESC ( boost  ,
"Card overclock boost (in percent 100-500)"   
)
MODULE_PARM_DESC ( clockmode  ,
"Card clock mode (1=3.579 MHz, 2=3.680 MHz, ""3=6 Mhz)"   
)
MODULE_PARM_DESC ( cdmode  ,
"Card detect mode (0=none, 1=CD, 2=!CD, 3=DSR, ""4=!DSR, 5=CTS, 6=!CTS, 7=RING, 8=!RING)"   
)
MODULE_PARM_DESC ( vcc_default  ,
"Set default VCC (either 3 for 3.3V or 5 ""for 5V). Default to 5."   
)
module_usb_serial_driver ( serial_drivers  ,
id_table   
)
MODULE_VERSION ( DRIVER_VERSION  )