Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
baycom_ser_fdx.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/string.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/hdlcdrv.h>
#include <linux/baycom.h>
#include <linux/jiffies.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/irq.h>

Go to the source code of this file.

Data Structures

struct  baycom_state
 
struct  baycom_state::modem_state
 
struct  baycom_state::modem_state::modem_state_ser12
 
struct  baycom_state::debug_vals
 

Macros

#define BAYCOM_DEBUG
 
#define NR_PORTS   4
 
#define RBR(iobase)   (iobase+0)
 
#define THR(iobase)   (iobase+0)
 
#define IER(iobase)   (iobase+1)
 
#define IIR(iobase)   (iobase+2)
 
#define FCR(iobase)   (iobase+2)
 
#define LCR(iobase)   (iobase+3)
 
#define MCR(iobase)   (iobase+4)
 
#define LSR(iobase)   (iobase+5)
 
#define MSR(iobase)   (iobase+6)
 
#define SCR(iobase)   (iobase+7)
 
#define DLL(iobase)   (iobase+0)
 
#define DLM(iobase)   (iobase+1)
 
#define SER12_EXTENT   8
 

Enumerations

enum  uart {
  c_uart_unknown, c_uart_8250, c_uart_16450, c_uart_16550,
  c_uart_16550A, c_uart_unknown, c_uart_8250, c_uart_16450,
  c_uart_16550, c_uart_16550A, c_uart_unknown, c_uart_8250,
  c_uart_16450, c_uart_16550, c_uart_16550A
}
 

Functions

 module_param_array (mode, charp, NULL, 0)
 
 MODULE_PARM_DESC (mode,"baycom operating mode; * for software DCD")
 
 module_param_array (iobase, int, NULL, 0)
 
 MODULE_PARM_DESC (iobase,"baycom io base address")
 
 module_param_array (irq, int, NULL, 0)
 
 MODULE_PARM_DESC (irq,"baycom irq number")
 
 module_param_array (baud, int, NULL, 0)
 
 MODULE_PARM_DESC (baud,"baycom baud rate (300 to 4800)")
 
 MODULE_AUTHOR ("Thomas M. Sailer, [email protected], [email protected]")
 
 MODULE_DESCRIPTION ("Baycom ser12 full duplex amateur radio modem driver")
 
 MODULE_LICENSE ("GPL")
 
 module_init (init_baycomserfdx)
 
 module_exit (cleanup_baycomserfdx)
 
 __setup ("baycom_ser_fdx=", baycom_ser_fdx_setup)
 

Macro Definition Documentation

#define BAYCOM_DEBUG

Definition at line 90 of file baycom_ser_fdx.c.

#define DLL (   iobase)    (iobase+0)

Definition at line 116 of file baycom_ser_fdx.c.

#define DLM (   iobase)    (iobase+1)

Definition at line 117 of file baycom_ser_fdx.c.

#define FCR (   iobase)    (iobase+2)

Definition at line 110 of file baycom_ser_fdx.c.

#define IER (   iobase)    (iobase+1)

Definition at line 108 of file baycom_ser_fdx.c.

#define IIR (   iobase)    (iobase+2)

Definition at line 109 of file baycom_ser_fdx.c.

#define LCR (   iobase)    (iobase+3)

Definition at line 111 of file baycom_ser_fdx.c.

#define LSR (   iobase)    (iobase+5)

Definition at line 113 of file baycom_ser_fdx.c.

#define MCR (   iobase)    (iobase+4)

Definition at line 112 of file baycom_ser_fdx.c.

#define MSR (   iobase)    (iobase+6)

Definition at line 114 of file baycom_ser_fdx.c.

#define NR_PORTS   4

Definition at line 100 of file baycom_ser_fdx.c.

#define RBR (   iobase)    (iobase+0)

Definition at line 106 of file baycom_ser_fdx.c.

#define SCR (   iobase)    (iobase+7)

Definition at line 115 of file baycom_ser_fdx.c.

#define SER12_EXTENT   8

Definition at line 119 of file baycom_ser_fdx.c.

#define THR (   iobase)    (iobase+0)

Definition at line 107 of file baycom_ser_fdx.c.

Enumeration Type Documentation

enum uart
Enumerator:
c_uart_unknown 
c_uart_8250 
c_uart_16450 
c_uart_16550 
c_uart_16550A 
c_uart_unknown 
c_uart_8250 
c_uart_16450 
c_uart_16550 
c_uart_16550A 
c_uart_unknown 
c_uart_8250 
c_uart_16450 
c_uart_16550 
c_uart_16550A 

Definition at line 374 of file baycom_ser_fdx.c.

Function Documentation

__setup ( )
MODULE_AUTHOR ( "Thomas M.  Sailer,
sailer @ife.ee.ethz.  ch,
hb9jnx @hb9w.che.eu"   
)
MODULE_DESCRIPTION ( "Baycom ser12 full duplex amateur radio modem driver )
module_exit ( cleanup_baycomserfdx  )
module_init ( init_baycomserfdx  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( mode  ,
charp  ,
NULL  ,
 
)
module_param_array ( iobase  ,
int  ,
NULL  ,
 
)
module_param_array ( irq  ,
int  ,
NULL  ,
 
)
module_param_array ( baud  ,
int  ,
NULL  ,
 
)
MODULE_PARM_DESC ( mode  ,
"baycom operating mode; * for software DCD  
)
MODULE_PARM_DESC ( iobase  ,
"baycom io base address  
)
MODULE_PARM_DESC ( irq  ,
"baycom irq number  
)
MODULE_PARM_DESC ( baud  ,
"baycom baud rate (300 to 4800)"   
)