MCPcopy Create free account
hub / github.com/coreboot/coreboot / mapping_virt

Function mapping_virt

util/cbmem/devmem_drv.c:62–70  ·  view source on GitHub ↗

Return mapping of physical address requested. */

Source from the content-addressed store, hash-verified

60
61/* Return mapping of physical address requested. */
62static void *mapping_virt(const struct mapping *mapping)
63{
64 char *v = mapping->virt;
65
66 if (v == NULL)
67 return NULL;
68
69 return v + mapping->offset;
70}
71
72/* Returns virtual address on success, NULL on error. mapping is filled in. */
73static void *map_memory_with_prot(struct mapping *mapping, unsigned long long phys, size_t sz,

Callers 4

map_memory_with_protFunction · 0.85
parse_cbtableFunction · 0.85
cbmem_devmem_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected