Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
caif_serial.c File Reference
#include <linux/hardirq.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/device.h>
#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <linux/rtnetlink.h>
#include <linux/tty.h>
#include <linux/file.h>
#include <linux/if_arp.h>
#include <net/caif/caif_device.h>
#include <net/caif/cfcnfg.h>
#include <linux/err.h>
#include <linux/debugfs.h>

Go to the source code of this file.

Data Structures

struct  ser_device
 

Macros

#define SEND_QUEUE_LOW   10
 
#define SEND_QUEUE_HIGH   100
 
#define CAIF_SENDING   1 /* Bit 1 = 0x02*/
 
#define CAIF_FLOW_OFF_SENT   4 /* Bit 4 = 0x10 */
 
#define MAX_WRITE_CHUNK   4096
 
#define ON   1
 
#define OFF   0
 
#define CAIF_MAX_MTU   4096
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Sjur Brendeland<[email protected]>")
 
 MODULE_DESCRIPTION ("CAIF serial device TTY line discipline")
 
 MODULE_ALIAS_LDISC (N_CAIF)
 
 module_param (ser_loop, bool, S_IRUGO)
 
 MODULE_PARM_DESC (ser_loop,"Run in simulated loopback mode.")
 
 module_param (ser_use_stx, bool, S_IRUGO)
 
 MODULE_PARM_DESC (ser_use_stx,"STX enabled or not.")
 
 module_param (ser_use_fcs, bool, S_IRUGO)
 
 MODULE_PARM_DESC (ser_use_fcs,"FCS enabled or not.")
 
 module_param (ser_write_chunk, int, S_IRUGO)
 
 MODULE_PARM_DESC (ser_write_chunk,"Maximum size of data written to UART.")
 
 module_init (caif_ser_init)
 
 module_exit (caif_ser_exit)
 

Macro Definition Documentation

#define CAIF_FLOW_OFF_SENT   4 /* Bit 4 = 0x10 */

Definition at line 32 of file caif_serial.c.

#define CAIF_MAX_MTU   4096

Definition at line 36 of file caif_serial.c.

#define CAIF_SENDING   1 /* Bit 1 = 0x02*/

Definition at line 31 of file caif_serial.c.

#define MAX_WRITE_CHUNK   4096

Definition at line 33 of file caif_serial.c.

#define OFF   0

Definition at line 35 of file caif_serial.c.

#define ON   1

Definition at line 34 of file caif_serial.c.

#define SEND_QUEUE_HIGH   100

Definition at line 30 of file caif_serial.c.

#define SEND_QUEUE_LOW   10

Definition at line 29 of file caif_serial.c.

Function Documentation

MODULE_ALIAS_LDISC ( N_CAIF  )
MODULE_AUTHOR ( "Sjur Brendeland<[email protected]>"  )
MODULE_DESCRIPTION ( "CAIF serial device TTY line discipline"  )
module_exit ( caif_ser_exit  )
module_init ( caif_ser_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( ser_loop  ,
bool  ,
S_IRUGO   
)
module_param ( ser_use_stx  ,
bool  ,
S_IRUGO   
)
module_param ( ser_use_fcs  ,
bool  ,
S_IRUGO   
)
module_param ( ser_write_chunk  ,
int  ,
S_IRUGO   
)
MODULE_PARM_DESC ( ser_loop  ,
"Run in simulated loopback mode."   
)
MODULE_PARM_DESC ( ser_use_stx  ,
"STX enabled or not."   
)
MODULE_PARM_DESC ( ser_use_fcs  ,
"FCS enabled or not."   
)
MODULE_PARM_DESC ( ser_write_chunk  ,
"Maximum size of data written to UART."   
)