blob: b99bdeafc0b320cebd95d9a0536a5d4cab748785 [file] [log] [blame]
Janne Grunaue3a438f2022-06-14 09:09:07 +02001/* SPDX-License-Identifier: MIT
2 *
3 * The sart code is copied from m1n1 (https://github.com/AsahiLinux/m1n1) and
4 * licensed as MIT.
5 *
6 * (C) Copyright 2022 The Asahi Linux Contributors
7 */
8
9#ifndef SART_H
10#define SART_H
11
12#include <dm/ofnode.h>
13
14struct apple_sart;
15
16struct apple_sart *sart_init(ofnode node);
17void sart_free(struct apple_sart *sart);
18
19bool sart_add_allowed_region(struct apple_sart *sart, void *paddr, size_t sz);
20bool sart_remove_allowed_region(struct apple_sart *sart, void *paddr, size_t sz);
21
22#endif