Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
lirc_parallel.c File Reference
#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.

Macros

#define LIRC_DRIVER_NAME   "lirc_parallel"
 
#define LIRC_IRQ   7
 
#define LIRC_PORT   0x378
 
#define LIRC_TIMER   65536
 
#define RBUF_SIZE   (256) /* this must be a power of 2 larger than 1 */
 

Functions

 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)")
 

Variables

unsigned int irq = LIRC_IRQ
 
unsigned int io = LIRC_PORT
 
unsigned int timer
 
unsigned int default_timer = LIRC_TIMER
 
unsigned int rptr
 
unsigned int wptr
 
unsigned int lost_irqs
 
int is_open
 
struct parportpport
 
struct pardeviceppdevice
 
int is_claimed
 
unsigned int tx_mask = 1
 

Macro Definition Documentation

#define LIRC_DRIVER_NAME   "lirc_parallel"

Definition at line 52 of file lirc_parallel.c.

#define LIRC_IRQ   7

Definition at line 55 of file lirc_parallel.c.

#define LIRC_PORT   0x378

Definition at line 58 of file lirc_parallel.c.

#define LIRC_TIMER   65536

Definition at line 61 of file lirc_parallel.c.

#define RBUF_SIZE   (256) /* this must be a power of 2 larger than 1 */

Definition at line 76 of file lirc_parallel.c.

Function Documentation

DECLARE_WAIT_QUEUE_HEAD ( lirc_wait  )
MODULE_AUTHOR ( "Christoph Bartelmus"  )
MODULE_DESCRIPTION ( "Infrared receiver driver for parallel ports."  )
module_exit ( lirc_parallel_exit  )
module_init ( lirc_parallel_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( io  ,
int  ,
S_IRUGO   
)
module_param ( irq  ,
int  ,
S_IRUGO   
)
module_param ( tx_mask  ,
int  ,
S_IRUGO   
)
module_param ( debug  ,
bool  ,
S_IRUGO S_IWUSR 
)
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)"   
)

Variable Documentation

unsigned int default_timer = LIRC_TIMER

Definition at line 73 of file lirc_parallel.c.

static u32 io = LIRC_PORT

Definition at line 70 of file lirc_parallel.c.

unsigned int irq = LIRC_IRQ

Definition at line 69 of file lirc_parallel.c.

int is_claimed

Definition at line 89 of file lirc_parallel.c.

int is_open

Definition at line 85 of file lirc_parallel.c.

unsigned int lost_irqs

Definition at line 84 of file lirc_parallel.c.

struct pardevice* ppdevice

Definition at line 88 of file lirc_parallel.c.

struct parport* pport

Definition at line 87 of file lirc_parallel.c.

unsigned int rptr

Definition at line 82 of file lirc_parallel.c.

unsigned int timer

Definition at line 72 of file lirc_parallel.c.

unsigned int tx_mask = 1

Definition at line 91 of file lirc_parallel.c.

unsigned int wptr

Definition at line 83 of file lirc_parallel.c.