aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorroot <root>2007-09-08 16:24:14 +0000
committerroot <root>2007-09-08 16:24:14 +0000
commit77f753281564930411f0a0a0965810fb80f22915 (patch)
tree025ea3dc53944ad2d158fa07d6f5a2e2de6aa72f /src
downloadgpt-77f753281564930411f0a0a0965810fb80f22915.tar.gz
gpt-77f753281564930411f0a0a0965810fb80f22915.tar.bz2
gpt-77f753281564930411f0a0a0965810fb80f22915.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/gpt.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/gpt.h b/src/gpt.h
new file mode 100644
index 0000000..6ae7866
--- /dev/null
+++ b/src/gpt.h
@@ -0,0 +1,43 @@
+
+#define PACKED __attribute__ ( packed )
+
+#define GUID(a)
+
+#define TYPE_EMPTY "00000000-0000-0000-0000-000000000000"
+#define TYPE_SYSTEM "C12A7328-F81F-11D2-BA4B-00A0C93EC93B"
+
+typedef PACKED struct {
+ uint8_t d[16];
+} guid;
+
+typedef PACKED struct {
+ guid type;
+ guid label;
+ uint64_t start;
+ uint64_t end;
+ uint64_t flags;
+#define FLAG_SYSTEM 1
+ uint8_t name[72];
+} GPT_entry;
+
+
+typedef PACKED struct {
+
+
+
+typedef PACKED struct {
+uint8_t boot_code[440];
+uint8_t uid[4];
+uint8_t reserved[2];
+MBR_entry entry[4];
+uint8_t signature[2];
+}
+
+
+
+
+
+
+} MBR;
+
+