diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-29 16:22:01 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-29 16:22:01 +0100 |
commit | 41874c455c755f00ca73c2e2ee5ab8c4b0dbe61e (patch) | |
tree | 95986807bde312286c28297059873a6c66b72566 /Source/Kernel/VFS/Part.ns.h | |
parent | a913d4c2cb4daf10c0eac4d548fccb26b2a9f099 (diff) | |
download | Melon-41874c455c755f00ca73c2e2ee5ab8c4b0dbe61e.tar.gz Melon-41874c455c755f00ca73c2e2ee5ab8c4b0dbe61e.zip |
Reading from HDD is now possible !
Diffstat (limited to 'Source/Kernel/VFS/Part.ns.h')
-rw-r--r-- | Source/Kernel/VFS/Part.ns.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/Kernel/VFS/Part.ns.h b/Source/Kernel/VFS/Part.ns.h index 992f6f3..e6a358c 100644 --- a/Source/Kernel/VFS/Part.ns.h +++ b/Source/Kernel/VFS/Part.ns.h @@ -6,6 +6,19 @@ #include <VFS/Partition.class.h> namespace Part { + struct mbr_entry_t { + u8int bootable; /* 0 = no, 0x80 = bootable */ + u8int s_head; /* Starting head */ + u16int s_sector : 6; /* Starting sector */ + u16int s_cyl : 10; /* Starting cylinder */ + u8int id; /* System ID */ + u8int e_head; /* Ending head */ + u16int e_sector : 6; /* Ending sector */ + u16int e_cyl : 10; /* Ending cylinder */ + u32int s_lba; /* Starting sector (LBA value) */ + u32int size; /* Total sector number */ + } __attribute__ ((packed)); + extern Vector<BlockDevice*> devices; extern Vector<Partition*> partitions; |