#include <linux/module.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/signal.h>
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/ioport.h>
#include <linux/time.h>
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/uaccess.h>
#include <asm/div64.h>
#include <linux/poll.h>
#include <linux/parport.h>
#include <linux/platform_device.h>
#include <media/lirc.h>
#include <media/lirc_dev.h>
#include "lirc_parallel.h"
Go to the source code of this file.
|
| DECLARE_WAIT_QUEUE_HEAD (lirc_wait) |
|
| module_init (lirc_parallel_init) |
|
| module_exit (lirc_parallel_exit) |
|
| MODULE_DESCRIPTION ("Infrared receiver driver for parallel ports.") |
|
| MODULE_AUTHOR ("Christoph Bartelmus") |
|
| MODULE_LICENSE ("GPL") |
|
| module_param (io, int, S_IRUGO) |
|
| MODULE_PARM_DESC (io,"I/O address base (0x3bc, 0x378 or 0x278)") |
|
| module_param (irq, int, S_IRUGO) |
|
| MODULE_PARM_DESC (irq,"Interrupt (7 or 5)") |
|
| module_param (tx_mask, int, S_IRUGO) |
|
| MODULE_PARM_DESC (tx_maxk,"Transmitter mask (default: 0x01)") |
|
| module_param (debug, bool, S_IRUGO|S_IWUSR) |
|
| MODULE_PARM_DESC (debug,"Enable debugging messages") |
|
| module_param (check_pselecd, bool, S_IRUGO|S_IWUSR) |
|
| MODULE_PARM_DESC (check_pselecd,"Check for printer (default: 0)") |
|
#define LIRC_DRIVER_NAME "lirc_parallel" |
#define RBUF_SIZE (256) /* this must be a power of 2 larger than 1 */ |
DECLARE_WAIT_QUEUE_HEAD |
( |
lirc_wait |
| ) |
|
MODULE_AUTHOR |
( |
"Christoph Bartelmus" |
| ) |
|
module_exit |
( |
lirc_parallel_exit |
| ) |
|
module_init |
( |
lirc_parallel_init |
| ) |
|
module_param |
( |
check_pselecd |
, |
|
|
bool |
, |
|
|
S_IRUGO| |
S_IWUSR |
|
) |
| |
MODULE_PARM_DESC |
( |
io |
, |
|
|
"I/O address base (0x3bc, 0x378 or 0x278)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
irq |
, |
|
|
"Interrupt (7 or 5)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
tx_maxk |
, |
|
|
"Transmitter mask (default: 0x01)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
debug |
, |
|
|
"Enable debugging messages" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
check_pselecd |
, |
|
|
"Check for printer (default: 0)" |
|
|
) |
| |