From owner-freebsd-hackers Sun Feb 28 5:38:33 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from Sisyphos.MI.Uni-Koeln.DE (Sisyphos.MI.Uni-Koeln.DE [134.95.212.10]) by hub.freebsd.org (Postfix) with ESMTP id CF1831525E; Sun, 28 Feb 1999 05:37:31 -0800 (PST) (envelope-from se@dialup124.zpr.uni-koeln.de) Received: from dialup124.zpr.Uni-Koeln.DE (dialup124.zpr.Uni-Koeln.DE [134.95.219.124]) by Sisyphos.MI.Uni-Koeln.DE (8.8.7/8.8.7) with ESMTP id OAA19843; Sun, 28 Feb 1999 14:37:13 +0100 (MET) Received: (from se@localhost) by dialup124.zpr.Uni-Koeln.DE (8.9.3/8.6.9) id OAA09948; Sat, 27 Feb 1999 14:13:23 +0100 (CET) Date: Sat, 27 Feb 1999 14:13:23 +0100 From: Stefan Esser To: Dennis Cc: Ted Faber , hackers@freebsd.org, Stefan Esser Subject: Re: PCI Card Failures in 3.1 - FYI Message-ID: <19990227141323.A4953@dialup124.mi.uni-koeln.de> Reply-To: se@freebsd.org Mail-Followup-To: Dennis , Ted Faber , hackers@freebsd.org References: <199902261546.KAA20180@etinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: <199902261546.KAA20180@etinc.com>; from Dennis on Fri, Feb 26, 1999 at 10:55:12AM -0500 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 1999-02-26 10:55 -0500, Dennis wrote: > Also, we dont call pci_map_port(), so I doubt that is the > problem. The mapping seems to work (when we map the > registers into memory we can read them and they have > the correct default values). the problem is that is cant > seem to dma to memory...its impossible to tell if it > can read however. You know about the bus-master enable bit in the command register ? There had been problems with cards doing bogus transfers if that feature was enabled by default, so the BIOS may leave it OFF. You are responsible for setting it in your driver, after the chip has been reset/initialzed and can be assumed under control ;-) The call to pci_map_port() exists for symmetry reasons. It does return the port address, but at least on the i386 does not have to setup any mappings. That's much different from pci_map_mem(), which establishes an VM mapping of the requested physical addresses and since there might be systems that provide only indirect access, to I/O ports, the same may be true for those architectures ... Regards, STefan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message