summaryrefslogtreecommitdiff
path: root/tools/src/nvme.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/nvme.h
add m1n1HEADmaster
Diffstat (limited to 'tools/src/nvme.h')
-rw-r--r--tools/src/nvme.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/src/nvme.h b/tools/src/nvme.h
new file mode 100644
index 0000000..8989a60
--- /dev/null
+++ b/tools/src/nvme.h
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: MIT */
+
+#ifndef NVME_H
+#define NVME_H
+
+#include "types.h"
+
+bool nvme_init(void);
+void nvme_shutdown(void);
+
+bool nvme_flush(u32 nsid);
+bool nvme_read(u32 nsid, u64 lba, void *buffer);
+
+#endif