Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/kmod.h>
#include <linux/sched.h>
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/usb.h>
#include <linux/time.h>
#include <media/lirc.h>
#include <media/lirc_dev.h>
#include <linux/vermagic.h>
Go to the source code of this file.
Data Structures | |
struct | igorplug |
Macros | |
#define | DRIVER_VERSION "0.2" |
#define | DRIVER_AUTHOR "Jan M. Hochstein <[email protected]>" |
#define | DRIVER_DESC "Igorplug USB remote driver for LIRC" |
#define | DRIVER_NAME "lirc_igorplugusb" |
#define | dprintk(fmt, args...) |
#define | CODE_LENGTH sizeof(int) |
#define | DEVICE_BUFLEN 36 |
#define | DEVICE_HEADERLEN 3 |
#define | ADDITIONAL_LIRC_BYTES 2 |
#define | SAMPLE_RATE 100 |
#define | SET_INFRABUFFER_EMPTY 1 |
#define | GET_INFRACODE 2 |
#define | SET_DATAPORT_DIRECTION 3 |
#define | GET_DATAPORT_DIRECTION 4 |
#define | SET_OUT_DATAPORT 5 |
#define | GET_OUT_DATAPORT 6 |
#define | GET_IN_DATAPORT 7 |
#define | READ_EEPROM 8 |
#define | WRITE_EEPROM 9 |
#define | SEND_RS232 10 |
#define | RECV_RS232 11 |
#define | SET_RS232_BAUD 12 |
#define | GET_RS232_BAUD 13 |
Functions | |
module_usb_driver (igorplugusb_remote_driver) | |
MODULE_INFO (vermagic, VERMAGIC_STRING) | |
MODULE_DESCRIPTION (DRIVER_DESC) | |
MODULE_AUTHOR (DRIVER_AUTHOR) | |
MODULE_LICENSE ("GPL") | |
MODULE_DEVICE_TABLE (usb, igorplugusb_remote_id_table) | |
module_param (sample_rate, int, S_IRUGO|S_IWUSR) | |
MODULE_PARM_DESC (sample_rate,"Sampling rate in Hz (default: 100)") | |
module_param (debug, bool, S_IRUGO|S_IWUSR) | |
MODULE_PARM_DESC (debug,"Debug enabled or not") | |
#define ADDITIONAL_LIRC_BYTES 2 |
Definition at line 91 of file lirc_igorplugusb.c.
Definition at line 77 of file lirc_igorplugusb.c.
#define DEVICE_BUFLEN 36 |
Definition at line 80 of file lirc_igorplugusb.c.
#define DEVICE_HEADERLEN 3 |
Definition at line 88 of file lirc_igorplugusb.c.
#define dprintk | ( | fmt, | |
args... | |||
) |
Definition at line 70 of file lirc_igorplugusb.c.
#define DRIVER_AUTHOR "Jan M. Hochstein <[email protected]>" |
Definition at line 58 of file lirc_igorplugusb.c.
Definition at line 60 of file lirc_igorplugusb.c.
#define DRIVER_NAME "lirc_igorplugusb" |
Definition at line 61 of file lirc_igorplugusb.c.
#define DRIVER_VERSION "0.2" |
Definition at line 57 of file lirc_igorplugusb.c.
#define GET_DATAPORT_DIRECTION 4 |
Params: wValue: (byte) 1 bit for each data port pin (0=in, 1=out)
Answer: empty
Definition at line 122 of file lirc_igorplugusb.c.
#define GET_IN_DATAPORT 7 |
Params: none
Answer: least significant 3 bits read from output data port
Definition at line 144 of file lirc_igorplugusb.c.
#define GET_INFRACODE 2 |
Params: none Answer: empty
Definition at line 106 of file lirc_igorplugusb.c.
#define GET_OUT_DATAPORT 6 |
Params: wValue: byte to write to output data port
Answer: empty
Definition at line 137 of file lirc_igorplugusb.c.
#define GET_RS232_BAUD 13 |
Params: wValue: byte to write to UART bit rate register (UBRR)
Answer: empty
Definition at line 191 of file lirc_igorplugusb.c.
#define READ_EEPROM 8 |
Params: none
Answer: least significant 3 bits read from input data port
Definition at line 151 of file lirc_igorplugusb.c.
#define RECV_RS232 11 |
#define SAMPLE_RATE 100 |
Definition at line 94 of file lirc_igorplugusb.c.
#define SEND_RS232 10 |
Params: wValue: offset to EEPROM byte wIndex: byte to write
Answer: empty
Definition at line 168 of file lirc_igorplugusb.c.
#define SET_DATAPORT_DIRECTION 3 |
Params: wValue: offset to begin reading infra buffer
Answer: infra data
Definition at line 114 of file lirc_igorplugusb.c.
#define SET_INFRABUFFER_EMPTY 1 |
Definition at line 100 of file lirc_igorplugusb.c.
#define SET_OUT_DATAPORT 5 |
Params: none
Answer: (byte) 1 bit for each data port pin (0=in, 1=out)
Definition at line 129 of file lirc_igorplugusb.c.
#define SET_RS232_BAUD 12 |
#define WRITE_EEPROM 9 |
Params: wValue: offset to begin reading EEPROM
Answer: EEPROM bytes
Definition at line 159 of file lirc_igorplugusb.c.
MODULE_AUTHOR | ( | DRIVER_AUTHOR | ) |
MODULE_DESCRIPTION | ( | DRIVER_DESC | ) |
MODULE_DEVICE_TABLE | ( | usb | , |
igorplugusb_remote_id_table | |||
) |
MODULE_INFO | ( | vermagic | , |
VERMAGIC_STRING | |||
) |
MODULE_LICENSE | ( | "GPL" | ) |
module_param | ( | sample_rate | , |
int | , | ||
S_IRUGO| | S_IWUSR | ||
) |
MODULE_PARM_DESC | ( | sample_rate | , |
"Sampling rate in Hz (default: 100)" | |||
) |
module_usb_driver | ( | igorplugusb_remote_driver | ) |