/** * DOC: Map layer * * All access to any memory shared with a device (both sysmem and vram) in the * XE driver should go through this layer (xe_map). This layer is built on top * of :ref:`driver-api/device-io:Generalizing Access to System and I/O Memory` * and with extra hooks into the XE driver that allows adding asserts to memory * accesses (e.g. for blocking runtime_pm D3Cold on Discrete Graphics).
*/
/* FIXME: We likely should kill these two functions sooner or later */ staticinline u32 xe_map_read32(struct xe_device *xe, struct iosys_map *map)
{
xe_device_assert_mem_access(xe);
if (map->is_iomem) return readl(map->vaddr_iomem); else return READ_ONCE(*(u32 *)map->vaddr);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.