Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Feb 2006 17:21:18 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        freebsd-current@www.freebsd.org
Subject:   mapping "random" physical memory into kernel
Message-ID:  <17378.34270.630897.473143@grasshopper.cs.duke.edu>

next in thread | raw e-mail | index | archive | help

Can somebody please remind me what the supported way to establish a
kernel virtual address for a "random" chunk of physical memory is?
I'm currently using pmap_mapdev() directly, but that just feels
dirty...

I need to twiddle the settings of an Nvidia NF4 bridge in extended
PCI config space (offset 0x178).  These offsets are not accessible
via normal pci config space writes, but are doable when you use the
0xe000000 mapping.

The problem is that this memory is not really associated with
anything, so a normal bus_alloc_resource() allocation doesn't
seem like it would work.

Thanks,

Drew






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17378.34270.630897.473143>