From owner-freebsd-alpha Mon Jul 3 13:50:19 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from tele-post-20.mail.demon.net (tele-post-20.mail.demon.net [194.217.242.20]) by hub.freebsd.org (Postfix) with ESMTP id A601937C151 for ; Mon, 3 Jul 2000 13:50:15 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by tele-post-20.mail.demon.net with esmtp (Exim 2.12 #2) id 139DAT-00014I-0K; Mon, 3 Jul 2000 20:50:14 +0000 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id VAA27859; Mon, 3 Jul 2000 21:50:48 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Mon, 3 Jul 2000 21:53:53 +0100 (BST) From: Doug Rabson To: Mark Abene Cc: Doug Rabson , "Andrew M. Miklic" , freebsd-alpha@freebsd.org Subject: Re: Parallel Port/Printer diffs! In-Reply-To: <20000620190629.C23157@radicalmedia.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, 20 Jun 2000, Mark Abene wrote: > Good news everyone. Working with Andrew Miklic's patches, I've created diffs > to 4.0-RELEASE which add support for the parallel port. I've also written > the requisite ppc_smc37c935_detect routine for those of us with Super I/O > chips (EB/PC164, etc.), so we can use ECP/EPP. Even the parallel port ZIP > drive works! I'm using mine right now. The diffs include a patch to the > GENERIC kernel config to enable the ppc driver. This should work on all > alphas. If you have the Super I/O chip in your machine, add the option > PPC_PROBE_CHIPSET to your kernel config, and be sure to specify the io port > and flags to the "ppc" driver line. My detect routine will tell the Super > I/O chip to relocate the parallel port to the io address you specify, and > set the mode according to the flags (if there are any). The default setting > is port 0x3bc in centronics compatible mode, but using my Super I/O support > you can relocate it to 0x378 and take advantage of EPP or ECP mode. > The man page for ppc breaks down what the flags are. To get the vpo zip drive > driver working, I'm using: > > device ppc0 at isa? port 0x378 irq 7 flags 0x17 > > for EPP 1.7 + PS2 + NIBBLE mode. Of course you'll also need to enable scsi > support. You'll also want to enable the scsi pass device, so you can use > camcontrol to eject zip disks. > > That's all for now, you'll find the diffs attached to this message. > Any questions, feel free to ask. I didn't realise until today that you were working from 4.0-RELEASE. This complicates things since you are implementing a few things differently from the way the driver works in 5.0-current. What I would really like to see is a port of your smc37c935 bits to the version of ppc.c in 5.0-current followed by a merge of everything back in to the 4.x branch. I'd like to minimise the diffs between 5.0 and 4.x as much as possible (which seems doable). -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 20 8442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message