Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lirc_parallel.h
Go to the documentation of this file.
1 /* lirc_parallel.h */
2 
3 #ifndef _LIRC_PARALLEL_H
4 #define _LIRC_PARALLEL_H
5 
6 #include <linux/lp.h>
7 
8 #define LIRC_PORT_LEN 3
9 
10 #define LIRC_LP_BASE 0
11 #define LIRC_LP_STATUS 1
12 #define LIRC_LP_CONTROL 2
13 
14 #define LIRC_PORT_DATA LIRC_LP_BASE /* base */
15 #define LIRC_PORT_TIMER LIRC_LP_STATUS /* status port */
16 #define LIRC_PORT_TIMER_BIT LP_PBUSY /* busy signal */
17 #define LIRC_PORT_SIGNAL LIRC_LP_STATUS /* status port */
18 #define LIRC_PORT_SIGNAL_BIT LP_PACK /* ack signal */
19 #define LIRC_PORT_IRQ LIRC_LP_CONTROL /* control port */
20 
21 #define LIRC_SFH506_DELAY 0 /* delay t_phl in usecs */
22 
23 #define LIRC_PARALLEL_MAX_TRANSMITTERS 8
24 #define LIRC_PARALLEL_TRANSMITTER_MASK ((1<<LIRC_PARALLEL_MAX_TRANSMITTERS) - 1)
25 
26 #endif