From owner-freebsd-current@FreeBSD.ORG Fri Jul 16 10:59:41 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0D2616A4CE for ; Fri, 16 Jul 2004 10:59:41 +0000 (GMT) Received: from arg1.demon.co.uk (arg1.demon.co.uk [62.49.12.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4749043D39 for ; Fri, 16 Jul 2004 10:59:41 +0000 (GMT) (envelope-from arg-bsd@arg.me.uk) Received: by arg1.demon.co.uk (Postfix, from userid 1002) id E98E69B06; Fri, 16 Jul 2004 11:59:39 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by arg1.demon.co.uk (Postfix) with ESMTP id E4F5B5EA8; Fri, 16 Jul 2004 11:59:39 +0100 (BST) Date: Fri, 16 Jul 2004 11:59:39 +0100 (BST) From: Andrew Gordon X-X-Sender: freebsd@server.arg.sj.co.uk To: Palle Girgensohn In-Reply-To: <042E9B710BB3EA9CFBC625DE@palle.girgensohn.se> Message-ID: <20040716114743.B46679@server.arg.sj.co.uk> References: <2A1A414BD992B32464CA6FF3@palle.girgensohn.se> <1089914418.54518.7.camel@pcgem.rdg.cyberkinetica.com> <20040716003328.GB12833@afields.ca> <042E9B710BB3EA9CFBC625DE@palle.girgensohn.se> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Fri, 16 Jul 2004 13:26:55 +0000 cc: Allan Fields cc: current@freebsd.org Subject: Re: parallel port *slow* (and plip probs.) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jul 2004 10:59:42 -0000 On Fri, 16 Jul 2004, Palle Girgensohn wrote: > > --On torsdag, juli 15, 2004 20.33.28 -0400 Allan Fields > wrote: > > > On Thu, Jul 15, 2004 at 11:36:30PM +0100, Antony T Curtis wrote: > >> On Thu, 2004-07-15 at 22:07, Palle Girgensohn wrote: > >> > Only, the flags don't work, nothing seems to happen? > > > > Did you set to ECP mode in your BIOS? > > ECP+EPP Should be fine > >> > $ kenv | grep ppc > >> > hint.ppc.0.at="isa" > >> > hint.ppc.0.flags="0xc" > >> > hint.ppc.0.irq="7" > >> > $ dmesg | grep ppc > >> > ppc0: at port 0x378-0x37f irq 7 on isa0 > >> > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > >> > ppc0: FIFO with 16/16/16 bytes threshold > >> > ppbus0: on ppc0 > >> > >> I must admit - I have only had it work properly when the flags was > >> compiled in the kernel config: > >> > >> device ppc0 at isa? flags 0x08 irq 7 drq 3 You shouldn't need to use flags - "lptcontrol -e" will do the job just as well. However, the key thing in that line is the "drq 3" - ECP mode will not work without a drq setting (and IIRC you just get left in SPP mode without any diagnostics). The hints listed above don't appear to include one. > > I've had ECP working in 5.1 & 5.2 using device.hints as I've been > > misusing a machine as PLIP router to provide old laptop w/ network > > since PCMCIA interface isn't working w/ installed kernel. I'm fairly sure this is irrelevant, since PLIP just does bit-bashing in the port registers that control the pins directly and doesn't use any of the parallel port modes. So, your port probably isn't really working in ECP mode but you don't care for that application. [Disclaimer: I've not really used parallel ports since 4.x, but I don't think anything of significance has changed. Certainly 'ECP must use ISA DMA' is a fundamental feature of the hardware].