MicrOS
mbr_partition.h
Go to the documentation of this file.
1 #ifndef MBR_PARTITION_H
2 #define MBR_PARTITION_H
3 
4 typedef struct mbr_partition
5 {
6  uint8_t status;
7  uint8_t first_head;
8  uint8_t first_sector : 6;
9  uint16_t first_track : 10;
10  uint8_t type;
11  uint8_t last_head;
12  uint8_t last_sector : 6;
13  uint16_t last_track : 10;
16 } __attribute__((packed)) mbr_partition;
17 
18 #endif
uint8_t last_head
Definition: mbr_partition.h:11
uint8_t type
Definition: mbr_partition.h:10
uint8_t first_sector
Definition: mbr_partition.h:8
uint8_t first_head
Definition: mbr_partition.h:7
uint32_t sectors_count
Definition: mbr_partition.h:15
uint32_t first_sector_lba
Definition: mbr_partition.h:14
uint16_t last_track
Definition: mbr_partition.h:13
uint16_t first_track
Definition: mbr_partition.h:9
uint8_t last_sector
Definition: mbr_partition.h:12
Definition: mbr_partition.h:4
uint8_t status
Definition: mbr_partition.h:6
size_t uint32_t
Unsigned integral type.
Definition: string.h:8