summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--lib/30pin.h17
-rw-r--r--src/arm64/arm64-30pin.c11
2 files changed, 18 insertions, 10 deletions
diff --git a/lib/30pin.h b/lib/30pin.h
new file mode 100644
index 0000000..6782cfb
--- /dev/null
+++ b/lib/30pin.h
@@ -0,0 +1,17 @@
+/* -------------------------------------------
+
+ Copyright (C) 2024, Amlal EL Mahrouss, all rights reserved.
+
+------------------------------------------- */
+
+#pragma once
+
+/// @note This version is for the 30-pin recovery system.
+
+struct TRB_PACKET
+{
+ char mag[2];
+ char kind;
+ char buffer[498];
+ char eop[11];
+}; \ No newline at end of file
diff --git a/src/arm64/arm64-30pin.c b/src/arm64/arm64-30pin.c
index ed6b4db..7f660d9 100644
--- a/src/arm64/arm64-30pin.c
+++ b/src/arm64/arm64-30pin.c
@@ -5,15 +5,6 @@
------------------------------------------- */
#include <lib/partition-map.h>
+#include <lib/30pin.h>
extern size_t mp_send_read_30pin(voidptr_t blob, size_t* size, size_t* start_lba);
-
-/// @note This version is for the 30-pin recovery system.
-
-struct TRB_PACKET
-{
- char mag[2];
- char kind;
- char buffer[498];
- char eop[11];
-}; \ No newline at end of file