[PARPORT] Re: parport 971230[missing lp.h]


Albert Cranford (AlbertC@millennium.net)
Wed, 31 Dec 1997 04:55:30 -0500


Philip Blundell wrote:
>
> Oops.
>
> ------- Forwarded Message
>
> To: linux-kernel@torque.net
> cc: linux-parport@torque.net, linux-m68k@lists.linux-m68k.org
> Subject: parport 971230
> Mime-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Date: Tue, 30 Dec 1997 23:22:55 +0000
> From: Philip Blundell <Philip.Blundell@pobox.com>
> Message-Id: <E0xnAzw-0004WL-00@paddington.london.uk.eu.org>
>
> Hi.
>
> I made another patch against 2.1.76, containing the latest parport code from
> the vger CVS tree. It's too large to post here, but you can get it from
>
> http://www.tazenda.demon.co.uk/phil/parport/
>
> Please check it out, and report any problems to me and the mailing list
> (linux-parport@torque.net).
>
> Incidentally, if the m68k people have any interest in writing a parport driver
> for Amiga/Atari hardware, I'd be glad to lend a hand. Then we could get rid
> of the lp_m68k.c and lp_intern.c files.
>
> p.
>
> ------- End of Forwarded Message

Don't forget to add the lp.h diff's. It won't work without them.

+++ linux/include/linux/lp.h Mon Dec 22 16:53:57 1997
@@ -7,6 +7,11 @@
  * Interrupt support added 1993 Nigel Gamble
  */
 
+/* Magic numbers for defining port-device mappings */
+#define LP_PARPORT_AUTO -3
+#define LP_PARPORT_OFF -2
+#define LP_PARPORT_UNSPEC -1
+
 /*
  * Per POSIX guidelines, this module reserves the LP and lp prefixes
  * These are the lp_table[minor].flags flags...
@@ -88,20 +93,6 @@
 #define LP_BUFFER_SIZE 256
 
 #define LP_BASE(x) lp_table[(x)].dev->port->base
-
-#define r_dtr(x) inb(LP_BASE(x))
-#define r_str(x) inb(LP_BASE(x)+1)
-#define r_ctr(x) inb(LP_BASE(x)+2)
-#define r_epp(x) inb(LP_BASE(x)+4)
-#define r_fifo(x) inb(LP_BASE(x)+0x400)
-#define r_ecr(x) inb(LP_BASE(x)+0x402)
-
-#define w_dtr(x,y) outb((y), LP_BASE(x))
-#define w_str(x,y) outb((y), LP_BASE(x)+1)
-#define w_ctr(x,y) outb((y), LP_BASE(x)+2)
-#define w_epp(x,y) outb((y), LP_BASE(x)+4)
-#define w_fifo(x,y) outb((y), LP_BASE(x)+0x400)
-#define w_ecr(x,y) outb((y), LP_BASE(x)+0x402)
 
 struct lp_stats {
        unsigned long chars;

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:16 EST