Added lirc.
[irreco.git] / lirc-0.8.4a / drivers / lirc_parallel / lirc_parallel.h
blob59679c6ac6097b21a94ecc37450c013c20bcfe2a
1 /* $Id: lirc_parallel.h,v 5.2 2007/01/25 04:32:05 lirc Exp $ */
3 #ifndef _LIRC_PARALLEL_H
4 #define _LIRC_PARALLEL_H
6 #include <linux/lp.h>
8 #define LIRC_PORT_LEN 3
10 #define LIRC_LP_BASE 0
11 #define LIRC_LP_STATUS 1
12 #define LIRC_LP_CONTROL 2
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 */
21 #define LIRC_SFH506_DELAY 0 /* delay t_phl in usecs */
23 #define LIRC_PARALLEL_MAX_TRANSMITTERS 8
24 #define LIRC_PARALLEL_TRANSMITTER_MASK ((1<<LIRC_PARALLEL_MAX_TRANSMITTERS) - 1)
26 #endif