From owner-freebsd-hackers Sun Sep 17 20: 1:57 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 2DD0937B422 for ; Sun, 17 Sep 2000 20:01:54 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id VAA88523; Sun, 17 Sep 2000 21:01:52 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id VAA27758; Sun, 17 Sep 2000 21:01:44 -0600 (MDT) Message-Id: <200009180301.VAA27758@harmony.village.org> To: papowell@astart.com Subject: Re: Device driver, memory map failing, and it is probably obvious Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Sun, 17 Sep 2000 19:20:43 PDT." <200009180220.TAA12263@h4.private> References: <200009180220.TAA12263@h4.private> Date: Sun, 17 Sep 2000 21:01:44 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200009180220.TAA12263@h4.private> papowell@astart.com writes: : I am making a driver for a VERY old PCI device. : > digic->digic_mem_res = bus_alloc_resource(dev, SYS_RES_MEMORY, : > &digic->digic_mem_rid, : > 0, ~0, 256, RF_ACTIVE|RF_SHAREABLE); : Could this be the problem? Where do you initialize digic_mem_rid? You should set this equal to the BAR offset in the PCI config space that corresponds to this memory. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message