From owner-freebsd-current Sun Feb 14 10:03:12 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA19690 for freebsd-current-outgoing; Sun, 14 Feb 1999 10:03:12 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from reliam.teaser.fr (reliam.teaser.fr [194.51.80.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA19681 for ; Sun, 14 Feb 1999 10:03:09 -0800 (PST) (envelope-from son@teaser.fr) Received: from teaser.fr (ppp1087-ft.teaser.fr [194.206.156.40]) by reliam.teaser.fr (8.9.1a/8.9.1a) with ESMTP id TAA13216; Sun, 14 Feb 1999 19:02:58 +0100 (MET) Received: (from son@localhost) by teaser.fr (8.9.2/8.9.1) id TAA04903; Sun, 14 Feb 1999 19:00:15 +0100 (CET) (envelope-from son) Message-ID: <19990214190015.52233@breizh.prism.uvsq.fr> Date: Sun, 14 Feb 1999 19:00:15 +0100 From: Nicolas Souchu To: Chuck Robey Cc: freebsd-current@FreeBSD.ORG Subject: Re: New print interface References: <19990214100211.16017@breizh.prism.uvsq.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.81e In-Reply-To: ; from Chuck Robey on Sun, Feb 14, 1999 at 12:48:56PM -0500 X-Operating-System: FreeBSD breizh 4.0-CURRENT FreeBSD 4.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Feb 14, 1999 at 12:48:56PM -0500, Chuck Robey wrote: >> But there's at least FIFO+DMA support in the nlpt driver. Try 'lptcontrol -e' >> with you BIOS configured to ECP. Recompile with the appropriate >> drq on the 'device ppc at isa?...' line. > >Experimentation mode (on a machine I can crash here if I need to now). >I stuck the drq 3 into the 'controller ppc0' line. BTW, since LINT was >changed, there's now no indication as to where to stick the dma channel >info, for users. Info is in the lpt(4) manpage. > >Anyhow, now my config looks like: > >controller ppc0 at isa? port? tty irq 7 drq 3 >controller ppbus0 >device lpt0 at ppbus? >device plip0 at ppbus? >device ppi0 at ppbus? >device pps0 at ppbus? Good. > >There are a couple of things that have happened that strike me as worthy >of comment. Here's my relevant dmesg part: > >ppc0 at 0x378 irq 7 drq 3 on isa >ppc0: SMC FDC37C665GT chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode >ppc0: FIFO with 16/16/15 bytes threshold >ppb0: IEEE1284 device found /NIBBLE/ECP >Probing for PnP devices on ppbus0: >ppbus0: MLC,PCL,PML >plip0: on ppbus 0 >lpt0: on ppbus 0 >lpt0: Interrupt-driven port >ppi0: on ppbus 0 >lppps0: on ppbus 0 > >Notice how the ppbus finds and correctly IDs my printer (yea!) but then >the lpt0 and ppi0 lines find generic ... this is a little odd, isn't it? >Even if the lpt0 and ppi0 parts are less intelligent, they should share >info to at least some degree, shouldn't they? i/o is generic here. > >2nd note ... you said I should use lptcontrol -e. I did that, exactly, >and it came back to tell me that it had switched me to extended mode >(which I expected) AND to polled mode (which I neither expected nor >wanted). The man page says that only one action is taken at a time. I >was able to switch on the interrupt mode again (which I did want) by >using the -i switch (advertised correctly on the man page now) but isn't >this wrong, switching to polled mode like that on entering the -e? Hmm, yes. It is interrupt driven tough. But, can you print with extended mode set?! If true, imagine you use DMA+FIFO when printing! If not convinced, enable PPC_DEBUG when compiling i386/isa/ppc.c. > >Last thing ... I did the 'cat /dev/lpt0' like you asked. No response >whatsoever, the prompt just came back. I did this both before and after >all the changes done with lptcontrol, each and every time, but the exact >same response, nothing. Like typing echo. No status. Something >incomplete yet? > >This isn't criticism, this is the feeling of a child at Christmas >opening new toys, but wondering if maybe there's more under the tree I >haven't quite spotted yet. > >----------------------------+----------------------------------------------- >Chuck Robey | Interests include any kind of voice or data >chuckr@glue.umd.edu | communications topic, C programming, and Unix. >213 Lakeside Drive Apt T-1 | >Greenbelt, MD 20770 | I run picnic (FreeBSD-current) >(301) 220-2114 | and jaunt (Solaris7). >----------------------------+----------------------------------------------- > > > > > -- 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