1 #ifndef __LUNAIX_BLOCK_H
2 #define __LUNAIX_BLOCK_H
4 #include <hal/ahci/hba.h>
6 #define LPT_SIG 0x414e554c
7 #define PARTITION_NAME_SIZE 48
10 typedef uint64_t partition_t;
11 typedef uint32_t bdev_t;
15 char bdev_id[DEV_ID_SIZE];
16 char name[PARTITION_NAME_SIZE];
17 struct hba_device* hd_dev;
24 char part_name[PARTITION_NAME_SIZE];
27 } __attribute__((packed));
29 // Lunaix Partition Table
34 uint32_t pt_start_lba;
37 } __attribute__((packed));
43 block_mount_disk(struct hba_device* hd_dev);
45 #endif /* __LUNAIX_BLOCK_H */