Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
lirc_sir.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/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.

Macros

#define RBUF_LEN   1024
 
#define WBUF_LEN   1024
 
#define LIRC_DRIVER_NAME   "lirc_sir"
 
#define PULSE   '['
 
#define TIME_CONST   (9000000ul/115200ul)
 
#define SIR_TIMEOUT   (HZ*5/100)
 
#define LIRC_IRQ   4
 
#define LIRC_PORT   0x3e8
 
#define dprintk(fmt, args...)
 
#define MAX_UDELAY_US   5000
 

Functions

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

Macro Definition Documentation

#define dprintk (   fmt,
  args... 
)
Value:
do { \
if (debug) \
fmt, ## args); \
} while (0)

Definition at line 177 of file lirc_sir.c.

#define LIRC_DRIVER_NAME   "lirc_sir"

Definition at line 127 of file lirc_sir.c.

#define LIRC_IRQ   4

Definition at line 142 of file lirc_sir.c.

#define LIRC_PORT   0x3e8

Definition at line 152 of file lirc_sir.c.

#define MAX_UDELAY_US   5000

Definition at line 229 of file lirc_sir.c.

#define PULSE   '['

Definition at line 129 of file lirc_sir.c.

#define RBUF_LEN   1024

Definition at line 124 of file lirc_sir.c.

#define SIR_TIMEOUT   (HZ*5/100)

Definition at line 138 of file lirc_sir.c.

#define TIME_CONST   (9000000ul/115200ul)

Definition at line 133 of file lirc_sir.c.

#define WBUF_LEN   1024

Definition at line 125 of file lirc_sir.c.

Function Documentation

MODULE_AUTHOR ( "Milan Pikula"  )
MODULE_DESCRIPTION ( "Infrared receiver driver for SIR type serial ports )
module_exit ( lirc_sir_exit  )
module_init ( lirc_sir_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( io  ,
int  ,
S_IRUGO   
)
module_param ( irq  ,
int  ,
S_IRUGO   
)
module_param ( threshold  ,
int  ,
S_IRUGO   
)
module_param ( debug  ,
bool  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( io  ,
"I/O address base (0x3f8 or 0x2f8)"   
)
MODULE_PARM_DESC ( irq  ,
"Interrupt (4 or 3)"   
)
MODULE_PARM_DESC ( threshold  ,
"space detection threshold (3)"   
)
MODULE_PARM_DESC ( debug  ,
"Enable debugging messages"   
)