#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.
|
| 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) |
|
#define CAIF_FLOW_OFF_SENT 4 /* Bit 4 = 0x10 */ |
#define CAIF_MAX_MTU 4096 |
#define CAIF_SENDING 1 /* Bit 1 = 0x02*/ |
#define MAX_WRITE_CHUNK 4096 |
#define SEND_QUEUE_HIGH 100 |
#define SEND_QUEUE_LOW 10 |
module_exit |
( |
caif_ser_exit |
| ) |
|
module_init |
( |
caif_ser_init |
| ) |
|
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." |
|
|
) |
| |