From 3b5fa1b2781e24c3abbd2332cd1a65f45047132a Mon Sep 17 00:00:00 2001
From: Bah Thierno-Souleymane <thiernosouleymane.bah.etu@univ-lille.fr>
Date: Thu, 18 Mar 2021 10:20:00 +0100
Subject: [PATCH] feat(mbr structure implemented)

---
 tpfs/vol.h | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 tpfs/vol.h

diff --git a/tpfs/vol.h b/tpfs/vol.h
new file mode 100644
index 0000000..dcd1d52
--- /dev/null
+++ b/tpfs/vol.h
@@ -0,0 +1,31 @@
+#if !defined(VOL_H)
+#define VOL_H
+
+#define NB_VOLS_MAX 8
+
+static mbr_t mbr;
+
+typedef enum
+{
+    BASE,
+    ANNEXE,
+    OTHER
+} vtypes_t; // Volume type
+
+typedef struct vol_s
+{
+    unsigned int sector;
+    unsigned int cylinder;
+    unsigned int nb_sectors;
+    vtypes_t type;
+} vol_t;
+
+typedef struct mbr_s
+{
+    unsigned int nb_vols; // nombre de volumes actuels
+    vol_t vols[NB_VOLS_MAX];
+} mbr_t;
+
+void load_mbr(void);
+
+#endif // VOL_H
-- 
GitLab