2012-02-08 16:39:18 +00:00
|
|
|
--- a/drv_generic_parport.c
|
|
|
|
+++ b/drv_generic_parport.c
|
2007-12-02 21:24:04 +00:00
|
|
|
@@ -39,16 +39,6 @@
|
2007-03-24 17:16:55 +00:00
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/ioctl.h>
|
|
|
|
|
|
|
|
-#ifdef HAVE_SYS_IO_H
|
|
|
|
-#include <sys/io.h>
|
|
|
|
-#define WITH_OUTB
|
|
|
|
-#else
|
|
|
|
-#ifdef HAVE_ASM_IO_H
|
|
|
|
-#include <asm/io.h>
|
|
|
|
-#define WITH_OUTB
|
|
|
|
-#endif
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
#if defined (HAVE_LINUX_PARPORT_H) && defined (HAVE_LINUX_PPDEV_H)
|
|
|
|
#define WITH_PPDEV
|
|
|
|
#include <linux/parport.h>
|
2012-02-08 16:39:18 +00:00
|
|
|
@@ -68,6 +58,11 @@
|
|
|
|
/* these signals are inverted by hardware on the parallel port */
|
|
|
|
#define PARPORT_CONTROL_INVERTED (PARPORT_CONTROL_STROBE | PARPORT_CONTROL_SELECT | PARPORT_CONTROL_AUTOFD)
|
2007-07-07 12:58:47 +00:00
|
|
|
|
|
|
|
+#ifndef WITH_OUTB
|
|
|
|
+#define inb(foo) 0
|
|
|
|
+#define outb(foo,bar) 0
|
|
|
|
+#endif
|
2007-12-02 21:24:04 +00:00
|
|
|
+
|
2007-07-07 12:58:47 +00:00
|
|
|
#if !defined(WITH_OUTB) && !defined(WITH_PPDEV)
|
|
|
|
#error neither outb() nor ppdev() possible
|
|
|
|
#error cannot compile parallel port driver
|