MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bus_space_map

Function bus_space_map

freebsd/x86/x86/bus_machdep.c:44–53  ·  view source on GitHub ↗

* Implementation of bus_space_map(), which effectively is a thin * wrapper around pmap_mapdev() for memory mapped I/O space. It's * implemented here and not in to avoid pollution. */

Source from the content-addressed store, hash-verified

42 * implemented here and not in <x86/bus.h> to avoid pollution.
43 */
44int
45bus_space_map(bus_space_tag_t tag, bus_addr_t addr, bus_size_t size,
46 int flags __unused, bus_space_handle_t *bshp)
47{
48
49 *bshp = (tag == X86_BUS_SPACE_MEM)
50 ? (uintptr_t)pmap_mapdev(addr, size)
51 : addr;
52 return (0);
53}
54
55void
56bus_space_unmap(bus_space_tag_t tag, bus_space_handle_t bsh, bus_size_t size)

Callers 15

nexus_activate_resourceFunction · 0.85
OF_decode_addrFunction · 0.85
uart_octeon_probeFunction · 0.85
uart_cpu_getdevFunction · 0.85
mtk_soc_try_early_detectFunction · 0.85
gt_pci_attachFunction · 0.85
gt_pci_activate_resourceFunction · 0.85
thunder_pem_read_configFunction · 0.85
thunder_pem_write_configFunction · 0.85
thunder_pem_attachFunction · 0.85

Calls 1

pmap_mapdevFunction · 0.50

Tested by

no test coverage detected