# Map Layer

_Peios Kernel / Hardware and drivers / Graphics / xe_

> Reference for Map Layer.

<a id="rst-map-layer"></a>

<!-- SPDX-License-Identifier: (GPL-2.0+ OR MIT) -->


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 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).
