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

Function generic_bs_map

freebsd/arm/arm/bus_space_generic.c:68–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66bs_protos(generic);
67
68int
69generic_bs_map(bus_space_tag_t t, bus_addr_t bpa, bus_size_t size, int flags,
70 bus_space_handle_t *bshp)
71{
72 void *va;
73
74 /*
75 * We don't even examine the passed-in flags. For ARM, the CACHEABLE
76 * flag doesn't make sense (we create VM_MEMATTR_DEVICE mappings), and
77 * the LINEAR flag is just implied because we use kva_alloc(size).
78 */
79 if ((va = pmap_mapdev(bpa, size)) == NULL)
80 return (ENOMEM);
81 *bshp = (bus_space_handle_t)va;
82 return (0);
83}
84
85int
86generic_bs_alloc(bus_space_tag_t t, bus_addr_t rstart, bus_addr_t rend, bus_size_t size,

Callers

nothing calls this directly

Calls 1

pmap_mapdevFunction · 0.50

Tested by

no test coverage detected