blob: 4357c29fba9f9cf03f8b42badf0c0eb352ff0629 [file] [log] [blame]
Javier Almansa Sobrinoc4ad5b02022-07-05 19:05:14 +01001/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4 */
5
6#include <host_harness.h>
7#include <test_harness.h>
8
9/*
10 * Maps addr to the requested slot buffer and returns a pointer to the
11 * fake VA for the slot (the current addr), so the host can perform R/W
12 * operations on the mapped granule.
13 */
14void *host_buffer_arch_map(enum buffer_slot slot,
15 unsigned long addr, bool ns)
16{
17 return test_buffer_map(slot, addr, ns);
18}
19
20void host_buffer_arch_unmap(void *buf)
21{
22 test_buffer_unmap(buf);
23}