Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
io_ti.c File Reference
#include <linux/kernel.h>
#include <linux/jiffies.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/module.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/serial.h>
#include <linux/kfifo.h>
#include <linux/ioctl.h>
#include <linux/firmware.h>
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include "io_16654.h"
#include "io_usbvend.h"
#include "io_ti.h"

Go to the source code of this file.

Data Structures

struct  product_info
 
struct  edgeport_port
 
struct  edgeport_serial
 

Macros

#define DRIVER_VERSION   "v0.7mode043006"
 
#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]> and David Iacovelli"
 
#define DRIVER_DESC   "Edgeport USB Serial Driver"
 
#define EPROM_PAGE_SIZE   64
 
#define HARDWARE_TYPE_930   0
 
#define HARDWARE_TYPE_TIUMP   1
 
#define TI_MODE_CONFIGURING   0 /* Device has not entered start device */
 
#define TI_MODE_BOOT   1 /* Staying in boot mode */
 
#define TI_MODE_DOWNLOAD   2 /* Made it to download mode */
 
#define TI_MODE_TRANSITIONING
 
#define EDGE_READ_URB_RUNNING   0
 
#define EDGE_READ_URB_STOPPING   1
 
#define EDGE_READ_URB_STOPPED   2
 
#define EDGE_CLOSING_WAIT   4000 /* in .01 sec */
 
#define EDGE_OUT_BUF_SIZE   1024
 
#define HEADER_SIZE
 
#define MAP_FLAG(flagUmp, flagUart)
 

Functions

struct product_info __attribute__ ((packed))
 
 MODULE_DEVICE_TABLE (usb, id_table_combined)
 
 module_usb_serial_driver (serial_drivers, id_table_combined)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("edgeport/down3.bin")
 
 module_param (closing_wait, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (closing_wait,"Maximum wait for data to drain, in .01 secs")
 
 module_param (ignore_cpu_rev, bool, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (ignore_cpu_rev,"Ignore the cpu revision when connecting to a device")
 
 module_param (default_uart_mode, int, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (default_uart_mode,"Default uart_mode, 0=RS232, ...")
 

Variables

int TiMode
 
__u8 hardware_type
 
struct edgeport_port __attribute__
 

Macro Definition Documentation

#define DRIVER_AUTHOR   "Greg Kroah-Hartman <[email protected]> and David Iacovelli"

Definition at line 47 of file io_ti.c.

#define DRIVER_DESC   "Edgeport USB Serial Driver"

Definition at line 48 of file io_ti.c.

#define DRIVER_VERSION   "v0.7mode043006"

Definition at line 46 of file io_ti.c.

#define EDGE_CLOSING_WAIT   4000 /* in .01 sec */

Definition at line 68 of file io_ti.c.

#define EDGE_OUT_BUF_SIZE   1024

Definition at line 70 of file io_ti.c.

#define EDGE_READ_URB_RUNNING   0

Definition at line 64 of file io_ti.c.

#define EDGE_READ_URB_STOPPED   2

Definition at line 66 of file io_ti.c.

#define EDGE_READ_URB_STOPPING   1

Definition at line 65 of file io_ti.c.

#define EPROM_PAGE_SIZE   64

Definition at line 50 of file io_ti.c.

#define HARDWARE_TYPE_930   0

Definition at line 54 of file io_ti.c.

#define HARDWARE_TYPE_TIUMP   1

Definition at line 55 of file io_ti.c.

#define HEADER_SIZE
Value:
#define MAP_FLAG (   flagUmp,
  flagUart 
)
Value:
if (ti_lsr & flagUmp) \
lsr |= flagUart;
#define TI_MODE_BOOT   1 /* Staying in boot mode */

Definition at line 59 of file io_ti.c.

#define TI_MODE_CONFIGURING   0 /* Device has not entered start device */

Definition at line 58 of file io_ti.c.

#define TI_MODE_DOWNLOAD   2 /* Made it to download mode */

Definition at line 60 of file io_ti.c.

#define TI_MODE_TRANSITIONING
Value:
3 /* Currently in boot mode but
transitioning to download mode */

Definition at line 61 of file io_ti.c.

Function Documentation

struct product_info __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( usb  ,
id_table_combined   
)
MODULE_FIRMWARE ( "edgeport/down3.bin"  )
MODULE_LICENSE ( "GPL"  )
module_param ( closing_wait  ,
int  ,
S_IRUGO S_IWUSR 
)
module_param ( ignore_cpu_rev  ,
bool  ,
S_IRUGO S_IWUSR 
)
module_param ( default_uart_mode  ,
int  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( closing_wait  ,
"Maximum wait for data to  drain,
in.01 secs"   
)
MODULE_PARM_DESC ( ignore_cpu_rev  ,
"Ignore the cpu revision when connecting to a device  
)
MODULE_PARM_DESC ( default_uart_mode  ,
"Default  uart_mode,
= RS232,
..."   
)
module_usb_serial_driver ( serial_drivers  ,
id_table_combined   
)

Variable Documentation

Definition at line 79 of file io_ti.c.

int TiMode

Definition at line 78 of file io_ti.c.