#include <linux/module.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <linux/fs.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/serial_reg.h>
#include <linux/time.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/wait.h>
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/poll.h>
#include <linux/io.h>
#include <asm/irq.h>
#include <linux/fcntl.h>
#include <linux/platform_device.h>
#include <linux/timer.h>
#include <media/lirc.h>
#include <media/lirc_dev.h>
Go to the source code of this file.
|
| module_init (lirc_sir_init) |
|
| module_exit (lirc_sir_exit) |
|
| MODULE_DESCRIPTION ("Infrared receiver driver for SIR type serial ports") |
|
| MODULE_AUTHOR ("Milan Pikula") |
|
| MODULE_LICENSE ("GPL") |
|
| module_param (io, int, S_IRUGO) |
|
| MODULE_PARM_DESC (io,"I/O address base (0x3f8 or 0x2f8)") |
|
| module_param (irq, int, S_IRUGO) |
|
| MODULE_PARM_DESC (irq,"Interrupt (4 or 3)") |
|
| module_param (threshold, int, S_IRUGO) |
|
| MODULE_PARM_DESC (threshold,"space detection threshold (3)") |
|
| module_param (debug, bool, S_IRUGO|S_IWUSR) |
|
| MODULE_PARM_DESC (debug,"Enable debugging messages") |
|
#define dprintk |
( |
|
fmt, |
|
|
|
args... |
|
) |
| |
#define LIRC_DRIVER_NAME "lirc_sir" |
#define MAX_UDELAY_US 5000 |
#define SIR_TIMEOUT (HZ*5/100) |
#define TIME_CONST (9000000ul/115200ul) |
MODULE_AUTHOR |
( |
"Milan Pikula" |
| ) |
|
module_exit |
( |
lirc_sir_exit |
| ) |
|
module_init |
( |
lirc_sir_init |
| ) |
|
MODULE_PARM_DESC |
( |
irq |
, |
|
|
"Interrupt (4 or 3)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
debug |
, |
|
|
"Enable debugging messages" |
|
|
) |
| |