From owner-freebsd-alpha Wed Jun 7 11:26:47 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by hub.freebsd.org (Postfix) with ESMTP id A0A8937BAB5 for ; Wed, 7 Jun 2000 11:26:40 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-34.mail.demon.net with esmtp (Exim 2.12 #1) id 12zkXB-000KQb-0Y; Wed, 7 Jun 2000 19:26:33 +0100 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 TAA15392; Wed, 7 Jun 2000 19:27:38 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Wed, 7 Jun 2000 19:31:39 +0100 (BST) From: Doug Rabson To: Alexander Langer Cc: freebsd-alpha@FreeBSD.ORG Subject: Re: device ed (PCI) on alphas In-Reply-To: <20000607152459.B9700@cichlids.cichlids.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 Wed, 7 Jun 2000, Alexander Langer wrote: > Thus spake Doug Rabson (dfr@nlsystems.com): > > > > if ((inb(sc->nic_addr + ED_P0_CR) & > > > (ED_CR_RD2 | ED_CR_TXP | ED_CR_STA | ED_CR_STP)) != > > > (ED_CR_RD2 | ED_CR_STP)) > > > return (0); > > > the inb(...) & vars is == 33, but should be 39. (decimal). > > I don't know what to suggest since I'm not familiar with the hardware. I > > think Warner Losh and Matt Dodd are our resident ed driver people. > > The issue was a bug in the ed driver, which, in my eyes, used the > wrong OFFSETs for the NIC and APIC (mixed). > > NetBSD has the same values but vice versa, so I changed that and > everything worked. > > We have a working Alpha driver for if_ed now. Good. You should run your changes past Warner Losh and/or Matt Dodd to make sure it doesn't break anything on i386. -- 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