From owner-freebsd-current Mon Jan 11 13:16:14 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA01601 for freebsd-current-outgoing; Mon, 11 Jan 1999 13:16:14 -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 NAA01533 for ; Mon, 11 Jan 1999 13:16:02 -0800 (PST) (envelope-from son@prism.uvsq.fr) Received: from prism.uvsq.fr (rtc104.reseau.uvsq.fr [193.51.24.20]) by soleil.uvsq.fr (8.9.1/jtpda-5.3.1) with ESMTP id WAA29926 ; Mon, 11 Jan 1999 22:15:24 +0100 (MET) Received: (from son@localhost) by prism.uvsq.fr (8.9.1/8.9.1) id UAA00891; Mon, 11 Jan 1999 20:45:14 GMT (envelope-from son) Message-ID: <19990111204514.59206@breizh.prism.uvsq.fr> Date: Mon, 11 Jan 1999 20:45:14 +0000 From: Nicolas Souchu To: Alexander Leidinger Cc: current@FreeBSD.ORG Subject: Re: nlpt & polling mode didn't work References: <19990109203041.00416@breizh.prism.uvsq.fr> <199901101751.SAA00559@Vodix.CS.Uni-SB.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: <199901101751.SAA00559@Vodix.CS.Uni-SB.de>; from Alexander Leidinger on Sun, Jan 10, 1999 at 06:51:00PM +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 Sun, Jan 10, 1999 at 06:51:00PM +0100, Alexander Leidinger wrote: >> >> 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 See the handbook for recompiling your kernel. > >>>> 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. NLPT_DEBUG is supposed to print debug info needed when the driver was written. See /sys/dev/ppbus/nlpt.c for the meaning of outputs. You'll have to had _your_ printfs or change the 3rd party card. Parallel port cards are not expensive today.. > >Bye, >Alexander. > >-- > "Darth Vader sleeps with a Teddywookie." > Fortune cookie >http://netchild.home.pages.de/ A.Leidinger @ wurzelausix.cs.uni-sb.de > > -- 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