From owner-freebsd-hackers Tue Sep 1 15:22:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA06679 for freebsd-hackers-outgoing; Tue, 1 Sep 1998 15:22:58 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA06674 for ; Tue, 1 Sep 1998 15:22:53 -0700 (PDT) (envelope-from wilko@yedi.iaf.nl) Received: by uni4nn.gn.iaf.nl with UUCP id AA09940 (5.67b/IDA-1.5 for FreeBSD-hackers@freebsd.org); Wed, 2 Sep 1998 00:14:25 +0200 Received: (from wilko@localhost) by yedi.iaf.nl (8.8.8/8.6.12) id AAA29093 for FreeBSD-hackers@freebsd.org; Wed, 2 Sep 1998 00:05:05 +0200 (CEST) From: Wilko Bulte Message-Id: <199809012205.AAA29093@yedi.iaf.nl> Subject: pci memory mapping To: FreeBSD-hackers@FreeBSD.ORG (FreeBSD hackers list) Date: Wed, 2 Sep 1998 00:05:04 +0200 (CEST) X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-Pgp-Info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4ME+ PL38 (25)] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi there, I'm trying to get a Mylex DAC960PD to work with a driver skeleton Ulf wrote. As I have a different Mylex board than Ulf (a PD iso a PG) I need to make some changes. For some reason the followin code in attach() fails: if (!pci_map_mem(config_id, PCI_MAP_REG_START, &mp->vbase, &mp->pbase)) { printf("myx%d: couldn't map memory\n", unit); goto fail; } >From a previous post by Bill Paul I get the impression (...) that I might need to enable memory mapping by doing a pci_conf_write(). But what params do I feed pci_conf_write()? This is all new to me, I could really use some advise here. Interestingly enough for Ulf's board things work OK. Wilko _ ______________________________________________________________________ | / o / / _ Bulte email: wilko@yedi.iaf.nl |/|/ / / /( (_) Arnhem, The Netherlands WWW : http://www.tcja.nl ______________________________________________ Powered by FreeBSD __________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message