Date: Sun, 17 Sep 2000 21:01:44 -0600 From: Warner Losh <imp@village.org> To: papowell@astart.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Device driver, memory map failing, and it is probably obvious Message-ID: <200009180301.VAA27758@harmony.village.org> In-Reply-To: Your message of "Sun, 17 Sep 2000 19:20:43 PDT." <200009180220.TAA12263@h4.private> References: <200009180220.TAA12263@h4.private>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009180301.VAA27758>