Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
lirc_dev.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/ioctl.h>
#include <linux/fs.h>
#include <linux/poll.h>
#include <linux/completion.h>
#include <linux/mutex.h>
#include <linux/wait.h>
#include <linux/unistd.h>
#include <linux/kthread.h>
#include <linux/bitops.h>
#include <linux/device.h>
#include <linux/cdev.h>
#include <media/lirc.h>
#include <media/lirc_dev.h>

Go to the source code of this file.

Data Structures

struct  irctl
 

Macros

#define IRCTL_DEV_NAME   "BaseRemoteCtl"
 
#define NOPLUG   -1
 
#define LOGHEAD   "lirc_dev (%s[%d]): "
 

Functions

int lirc_register_driver (struct lirc_driver *d)
 
 EXPORT_SYMBOL (lirc_register_driver)
 
int lirc_unregister_driver (int minor)
 
 EXPORT_SYMBOL (lirc_unregister_driver)
 
int lirc_dev_fop_open (struct inode *inode, struct file *file)
 
 EXPORT_SYMBOL (lirc_dev_fop_open)
 
int lirc_dev_fop_close (struct inode *inode, struct file *file)
 
 EXPORT_SYMBOL (lirc_dev_fop_close)
 
unsigned int lirc_dev_fop_poll (struct file *file, poll_table *wait)
 
 EXPORT_SYMBOL (lirc_dev_fop_poll)
 
long lirc_dev_fop_ioctl (struct file *file, unsigned int cmd, unsigned long arg)
 
 EXPORT_SYMBOL (lirc_dev_fop_ioctl)
 
ssize_t lirc_dev_fop_read (struct file *file, char __user *buffer, size_t length, loff_t *ppos)
 
 EXPORT_SYMBOL (lirc_dev_fop_read)
 
voidlirc_get_pdata (struct file *file)
 
 EXPORT_SYMBOL (lirc_get_pdata)
 
ssize_t lirc_dev_fop_write (struct file *file, const char __user *buffer, size_t length, loff_t *ppos)
 
 EXPORT_SYMBOL (lirc_dev_fop_write)
 
 module_init (lirc_dev_init)
 
 module_exit (lirc_dev_exit)
 
 MODULE_DESCRIPTION ("LIRC base driver module")
 
 MODULE_AUTHOR ("Artur Lipowski")
 
 MODULE_LICENSE ("GPL")
 
 module_param (debug, bool, S_IRUGO|S_IWUSR)
 
 MODULE_PARM_DESC (debug,"Enable debugging messages")
 

Macro Definition Documentation

#define IRCTL_DEV_NAME   "BaseRemoteCtl"

Definition at line 43 of file lirc_dev.c.

#define LOGHEAD   "lirc_dev (%s[%d]): "

Definition at line 45 of file lirc_dev.c.

#define NOPLUG   -1

Definition at line 44 of file lirc_dev.c.

Function Documentation

EXPORT_SYMBOL ( lirc_register_driver  )
EXPORT_SYMBOL ( lirc_unregister_driver  )
EXPORT_SYMBOL ( lirc_dev_fop_open  )
EXPORT_SYMBOL ( lirc_dev_fop_close  )
EXPORT_SYMBOL ( lirc_dev_fop_poll  )
EXPORT_SYMBOL ( lirc_dev_fop_ioctl  )
EXPORT_SYMBOL ( lirc_dev_fop_read  )
EXPORT_SYMBOL ( lirc_get_pdata  )
EXPORT_SYMBOL ( lirc_dev_fop_write  )
int lirc_dev_fop_close ( struct inode inode,
struct file file 
)

Definition at line 498 of file lirc_dev.c.

long lirc_dev_fop_ioctl ( struct file file,
unsigned int  cmd,
unsigned long  arg 
)

Definition at line 564 of file lirc_dev.c.

int lirc_dev_fop_open ( struct inode inode,
struct file file 
)

Definition at line 437 of file lirc_dev.c.

unsigned int lirc_dev_fop_poll ( struct file file,
poll_table wait 
)

Definition at line 532 of file lirc_dev.c.

ssize_t lirc_dev_fop_read ( struct file file,
char __user buffer,
size_t  length,
loff_t *  ppos 
)

Definition at line 648 of file lirc_dev.c.

ssize_t lirc_dev_fop_write ( struct file file,
const char __user buffer,
size_t  length,
loff_t *  ppos 
)

Definition at line 769 of file lirc_dev.c.

void* lirc_get_pdata ( struct file file)

Definition at line 753 of file lirc_dev.c.

int lirc_register_driver ( struct lirc_driver d)

Definition at line 205 of file lirc_dev.c.

int lirc_unregister_driver ( int  minor)

Definition at line 378 of file lirc_dev.c.

MODULE_AUTHOR ( "Artur Lipowski"  )
MODULE_DESCRIPTION ( "LIRC base driver module )
module_exit ( lirc_dev_exit  )
module_init ( lirc_dev_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
bool  ,
S_IRUGO S_IWUSR 
)
MODULE_PARM_DESC ( debug  ,
"Enable debugging messages"   
)