diff options
author | Benji Dial <benji3.141@gmail.com> | 2020-05-16 14:10:08 -0400 |
---|---|---|
committer | Benji Dial <benji3.141@gmail.com> | 2020-05-16 14:10:08 -0400 |
commit | 31d8ae388a7ded576abd3e3d99c3d9193ea6d704 (patch) | |
tree | 9317308fbf0082924de414ef8416e76e927d79cd /src/kernel/fat.h | |
parent | 806815e5f2612a45cdce6c47ace56146edfa7abf (diff) | |
download | portland-os-31d8ae388a7ded576abd3e3d99c3d9193ea6d704.tar.gz |
small stub with fat info
Diffstat (limited to 'src/kernel/fat.h')
-rw-r--r-- | src/kernel/fat.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/kernel/fat.h b/src/kernel/fat.h new file mode 100644 index 0000000..e7aa956 --- /dev/null +++ b/src/kernel/fat.h @@ -0,0 +1,25 @@ +#include <stdint.h> + +#define FAT_INFO ((struct fat_info *)0x7c03) + +struct fat_info { + uint8_t oem[8]; + uint16_t bytes_per_sector; + uint8_t sectors_per_cluster; + uint16_t reserved_sectors; + uint8_t fats; + uint16_t root_entries; + uint16_t sectors; + uint8_t media_type; + uint16_t sectors_per_fat; + uint16_t sectors_per_track; + uint16_t heads; + uint32_t hidden_sectors; + uint32_t sectors_long; + uint8_t drive_number; + uint8_t reserved; + uint8_t ext_boot_marker; + uint32_t volume_id; + uint8_t label[11]; + uint8_t fs_type[8]; +} __attribute__ ((packed));
\ No newline at end of file |