Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
moxa.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/ioport.h>
#include <linux/errno.h>
#include <linux/firmware.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/timer.h>
#include <linux/interrupt.h>
#include <linux/tty.h>
#include <linux/tty_flip.h>
#include <linux/major.h>
#include <linux/string.h>
#include <linux/fcntl.h>
#include <linux/ptrace.h>
#include <linux/serial.h>
#include <linux/tty_driver.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/slab.h>
#include <linux/ratelimit.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include "moxa.h"

Go to the source code of this file.

Data Structures

struct  moxa_board_conf
 
struct  mxser_mstatus
 
struct  moxaq_str
 
struct  moxa_port
 
struct  mon_str
 

Macros

#define MOXA_VERSION   "6.0k"
 
#define MOXA_FW_HDRLEN   32
 
#define MOXAMAJOR   172
 
#define MAX_BOARDS   4 /* Don't change this value */
 
#define MAX_PORTS_PER_BOARD   32 /* Don't change this value */
 
#define MAX_PORTS   (MAX_BOARDS * MAX_PORTS_PER_BOARD)
 
#define MOXA_IS_320(brd)
 
#define MOXA_BUS_TYPE_ISA   0
 
#define MOXA_BUS_TYPE_PCI   1
 
#define TXSTOPPED   1
 
#define LOWWAIT   2
 
#define EMPTYWAIT   3
 
#define SERIAL_DO_RESTART
 
#define WAKEUP_CHARS   256
 

Enumerations

enum  {
  MOXA_BOARD_C218_PCI = 1, MOXA_BOARD_C218_ISA, MOXA_BOARD_C320_PCI, MOXA_BOARD_C320_ISA,
  MOXA_BOARD_CP204J
}
 

Functions

 MODULE_AUTHOR ("William Chen")
 
 MODULE_DESCRIPTION ("MOXA Intellio Family Multiport Board Device Driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_FIRMWARE ("c218tunx.cod")
 
 MODULE_FIRMWARE ("cp204unx.cod")
 
 MODULE_FIRMWARE ("c320tunx.cod")
 
 module_param_array (type, uint, NULL, 0)
 
 MODULE_PARM_DESC (type,"card type: C218=2, C320=4")
 
 module_param_array (baseaddr, ulong, NULL, 0)
 
 MODULE_PARM_DESC (baseaddr,"base address")
 
 module_param_array (numports, uint, NULL, 0)
 
 MODULE_PARM_DESC (numports,"numports (ignored for C218)")
 
 module_param (ttymajor, int, 0)
 
 module_init (moxa_init)
 
 module_exit (moxa_exit)
 

Macro Definition Documentation

#define EMPTYWAIT   3

Definition at line 156 of file moxa.c.

#define LOWWAIT   2

Definition at line 155 of file moxa.c.

#define MAX_BOARDS   4 /* Don't change this value */

Definition at line 60 of file moxa.c.

#define MAX_PORTS   (MAX_BOARDS * MAX_PORTS_PER_BOARD)

Definition at line 62 of file moxa.c.

#define MAX_PORTS_PER_BOARD   32 /* Don't change this value */

Definition at line 61 of file moxa.c.

#define MOXA_BUS_TYPE_ISA   0

Definition at line 70 of file moxa.c.

#define MOXA_BUS_TYPE_PCI   1

Definition at line 71 of file moxa.c.

#define MOXA_FW_HDRLEN   32

Definition at line 56 of file moxa.c.

#define MOXA_IS_320 (   brd)
Value:
((brd)->boardType == MOXA_BOARD_C320_ISA || \
(brd)->boardType == MOXA_BOARD_C320_PCI)

Definition at line 64 of file moxa.c.

#define MOXA_VERSION   "6.0k"

Definition at line 54 of file moxa.c.

#define MOXAMAJOR   172

Definition at line 58 of file moxa.c.

#define SERIAL_DO_RESTART

Definition at line 158 of file moxa.c.

#define TXSTOPPED   1

Definition at line 154 of file moxa.c.

#define WAKEUP_CHARS   256

Definition at line 160 of file moxa.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
MOXA_BOARD_C218_PCI 
MOXA_BOARD_C218_ISA 
MOXA_BOARD_C320_PCI 
MOXA_BOARD_C320_ISA 
MOXA_BOARD_CP204J 

Definition at line 73 of file moxa.c.

Function Documentation

MODULE_AUTHOR ( "William Chen"  )
MODULE_DESCRIPTION ( "MOXA Intellio Family Multiport Board Device Driver"  )
module_exit ( moxa_exit  )
MODULE_FIRMWARE ( "c218tunx.cod"  )
MODULE_FIRMWARE ( "cp204unx.cod"  )
MODULE_FIRMWARE ( "c320tunx.cod"  )
module_init ( moxa_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( ttymajor  ,
int  ,
 
)
module_param_array ( type  ,
uint  ,
NULL  ,
 
)
module_param_array ( baseaddr  ,
ulong  ,
NULL  ,
 
)
module_param_array ( numports  ,
uint  ,
NULL  ,
 
)
MODULE_PARM_DESC ( type  ,
"card type:  C218 = 2 
)
MODULE_PARM_DESC ( baseaddr  ,
"base address  
)
MODULE_PARM_DESC ( numports  ,
"numports (ignored for C218)"   
)