summaryrefslogtreecommitdiff
path: root/tools/src/sart.h
diff options
context:
space:
mode:
authormagh <magh@maghmogh.com>2023-03-06 18:44:55 -0600
committermagh <magh@maghmogh.com>2023-03-06 18:44:55 -0600
commite80d9d8871b325a04b18f90a9ea4bb7fd148fb25 (patch)
tree79dbdb8506b7ff1e92549188d1b94cfc0b3503ae /tools/src/sart.h
add m1n1HEADmaster
Diffstat (limited to 'tools/src/sart.h')
-rw-r--r--tools/src/sart.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/src/sart.h b/tools/src/sart.h
new file mode 100644
index 0000000..37828c0
--- /dev/null
+++ b/tools/src/sart.h
@@ -0,0 +1,16 @@
+/* SPDX-License-Identifier: MIT */
+
+#ifndef SART_H
+#define SART_H
+
+#include "types.h"
+
+typedef struct sart_dev sart_dev_t;
+
+sart_dev_t *sart_init(const char *adt_path);
+void sart_free(sart_dev_t *asc);
+
+bool sart_add_allowed_region(sart_dev_t *sart, void *paddr, size_t sz);
+bool sart_remove_allowed_region(sart_dev_t *sart, void *paddr, size_t sz);
+
+#endif