mapping "random" physical memory into kernel

From: Andrew Gallatin <gallatin_at_cs.duke.edu>
Date: Thu, 2 Feb 2006 17:21:18 -0500 (EST)
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
Received on Thu Feb 02 2006 - 21:21:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:51 UTC