#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.
|
| 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.") |
|
#define DRIVER_DESC "Infinity USB Unlimited Phoenix driver" |
#define DRIVER_VERSION "v0.12" |
#define FISH |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| |
Value:do { \
usb_rcvctrlpipe(
port->serial->
dev, 0), \
dev_dbg(
dev,
"0x%x:0x%x:0x%x:0x%x %d - %x\n",
a,
b,
c,
d,
result, \
#define SOUP |
( |
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| |
Value:do { \
usb_sndctrlpipe(
port->serial->
dev, 0), \
dev_dbg(
dev,
"0x%x:0x%x:0x%x:0x%x %d\n",
a,
b,
c,
d,
result); }
while (0)
MODULE_DEVICE_TABLE |
( |
usb |
, |
|
|
id_table |
|
|
) |
| |
module_param |
( |
clockmode |
, |
|
|
int |
, |
|
|
S_IRUGO| |
S_IWUSR |
|
) |
| |
module_param |
( |
vcc_default |
, |
|
|
int |
, |
|
|
S_IRUGO| |
S_IWUSR |
|
) |
| |
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 |
( |
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 |
|
|
) |
| |