From owner-freebsd-current Sun Jan 10 09:52:50 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17550 for freebsd-current-outgoing; Sun, 10 Jan 1999 09:52:50 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from uni-sb.de (uni-sb.de [134.96.252.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17545 for ; Sun, 10 Jan 1999 09:52:47 -0800 (PST) (envelope-from netchild@wurzelausix.cs.uni-sb.de) Received: from Vodix.CS.Uni-SB.de (acc2-158.telip.uni-sb.de [134.96.112.158]) by uni-sb.de (8.9.2/1999010400) with ESMTP id SAA15628; Sun, 10 Jan 1999 18:52:11 +0100 (CET) Received: from wurzelausix.cs.uni-sb.de (localhost [127.0.0.1]) by Vodix.CS.Uni-SB.de (8.9.1/8.9.1) with ESMTP id SAA00559; Sun, 10 Jan 1999 18:51:02 +0100 (CET) (envelope-from netchild@wurzelausix.cs.uni-sb.de) Message-Id: <199901101751.SAA00559@Vodix.CS.Uni-SB.de> Date: Sun, 10 Jan 1999 18:51:00 +0100 (CET) From: Alexander Leidinger Subject: Re: nlpt & polling mode didn't work To: nsouch@teaser.fr cc: current@FreeBSD.ORG In-Reply-To: <19990109203041.00416@breizh.prism.uvsq.fr> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 9 Jan, Nicolas Souchu wrote: >>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. ??? Just a make world and a make XFree-3.3.3 >>> 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. What about options NLPT_DEBUG in the kernel, does this show something interesting too? I had it turned on on my machine, but I didn't know to interprete the messages. 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