Janne Grunau | e3a438f | 2022-06-14 09:09:07 +0200 | [diff] [blame^] | 1 | /* 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 | |
| 14 | struct apple_sart; |
| 15 | |
| 16 | struct apple_sart *sart_init(ofnode node); |
| 17 | void sart_free(struct apple_sart *sart); |
| 18 | |
| 19 | bool sart_add_allowed_region(struct apple_sart *sart, void *paddr, size_t sz); |
| 20 | bool sart_remove_allowed_region(struct apple_sart *sart, void *paddr, size_t sz); |
| 21 | |
| 22 | #endif |