From owner-freebsd-current Sun Jan 10 07:54:00 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA05153 for freebsd-current-outgoing; Sun, 10 Jan 1999 07:51:51 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from soleil.uvsq.fr (soleil.uvsq.fr [193.51.24.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA05148 for ; Sun, 10 Jan 1999 07:51:49 -0800 (PST) (envelope-from son@teaser.fr) Received: from teaser.fr (rtc105.reseau.uvsq.fr [193.51.24.21]) by soleil.uvsq.fr (8.9.1/jtpda-5.3.1) with ESMTP id QAA09433 ; Sun, 10 Jan 1999 16:51:14 +0100 (MET) Received: (from son@localhost) by teaser.fr (8.9.1/8.9.1) id UAA06019; Sat, 9 Jan 1999 20:30:41 GMT (envelope-from son) Message-ID: <19990109203041.00416@breizh.prism.uvsq.fr> Date: Sat, 9 Jan 1999 20:30:41 +0000 From: Nicolas Souchu To: Alexander Leidinger Cc: current@FreeBSD.ORG Subject: Re: nlpt & polling mode didn't work References: <19990107231544.61205@breizh.prism.uvsq.fr> <199901081218.NAA01555@Vodix.CS.Uni-SB.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199901081218.NAA01555@Vodix.CS.Uni-SB.de>; from Alexander Leidinger on Fri, Jan 08, 1999 at 01:18:52PM +0100 X-Operating-System: FreeBSD breizh 3.0-CURRENT FreeBSD 3.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jan 08, 1999 at 01:18:52PM +0100, Alexander Leidinger wrote: > >On 7 Jan, Nicolas Souchu wrote: > >>>>>The problem: >>>>>It takes a looooong time to send data to the printer. >>>> >>>> Printing is ok? >>> >>>I think (nobody wants to wait more than 15 minutes for the page). >>>BTW: I have only 3rd person access to it. Its the system of my brother, >>>and hi is only an user. >> >> And I imagine the old-lpt code works. > >No. lpt didn't work, but I remember it didn't work the first time I >tried it too. It worked only with nlpt. Timing then. nlpt is slower than lpt because of indirection calls. So something must have speedup the machine because nothing changed in nlpt since it was properly working. > >> You may add printfs to the /sys/dev/ppbus/nlpt.c to check where it fails. > >To nlpt_pushbytes()? >What am I looking for? Yes and nlpt_write(). You may add something like this for ppb_wxx() calls: u_char cc; do { cc = STROBE_or_what_else; ppb_wctr(..., cc); } while (ppb_rctr(...) != cc); to be sure ppb_wxxx() are correctly done. And you may add delays here and there to slow down the driver. > >Bye, >Alexander. > >-- > "Darth Vader sleeps with a Teddywookie." > Fortune cookie >http://netchild.home.pages.de/ A.Leidinger @ wurzelausix.cs.uni-sb.de > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-current" in the body of the message > -- nsouch@teaser.fr / nsouch@freebsd.org FreeBSD - Turning PCs into workstations - http://www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message