From owner-freebsd-alpha Sat Jan 6 15:25:50 2001 From owner-freebsd-alpha@FreeBSD.ORG Sat Jan 6 15:25:47 2001 Return-Path: Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id B93D137B400 for ; Sat, 6 Jan 2001 15:25:46 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id SAA14161; Sat, 6 Jan 2001 18:25:46 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.1/8.9.1) id f06NPjq87874; Sat, 6 Jan 2001 18:25:46 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Sat, 6 Jan 2001 18:25:45 -0500 (EST) To: Wilko Bulte Cc: freebsd-alpha@freebsd.org Subject: Re: debugging fpa / FDDI panic In-Reply-To: <20010106234244.A78789@freebie.demon.nl> References: <20010106214357.X77275@freebie.demon.nl> <14935.34600.806565.787237@grasshopper.cs.duke.edu> <20010106224542.A78582@freebie.demon.nl> <14935.37795.408651.78296@grasshopper.cs.duke.edu> <20010106234244.A78789@freebie.demon.nl> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14935.42278.147202.426911@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Yes. that's what I meant. Sorry for the delay. The maze of #ifdefs in the driver is making me dizzy.. I wonder if there's an unifdef that's smart enough to deal with #if defined().. Anyway, try changing the typdef of the pdq_bus_memaddr_t from typedef volatile pdq_uint32_t *pdq_bus_memaddr_t; to typedef volatile vm_offset_t *pdq_bus_memaddr_t; in the FreeBSD section of ifdefs. Also, printf (with %lx) the value of sc->sc_membase prior to calling pdq_initialize(). If this works, we're still going to need a DMA hack. It will be something like this: #if defined(__FreeBSD__) && defined(__alpha__) #define PDQ_OS_VA_TO_PA(pdq, p) (vtophys((vm_offset_t)p) | (pdq->pdq_type == PDQ_DEFTA ? 0 : alpha_XXX_dmamap_or)) #endif Ick.. Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message