feat: ATAPI device capacity probing
[lunaix-os.git] / lunaix-os / includes / hal / ahci / utils.h
1 #ifndef __LUNAIX_AHCI_UTILS_H
2 #define __LUNAIX_AHCI_UTILS_H
3
4 #include <hal/ahci/hba.h>
5 #include <stdint.h>
6
7 void
8 ahci_parse_dev_info(struct hba_device* dev_info, uint16_t* data);
9
10 void
11 ahci_parsestr(char* str, uint16_t* reg_start, int size_word);
12
13 void
14 scsi_parse_capacity(struct hba_device* device, uint32_t* parameter);
15
16 #endif /* __LUNAIX_UTILS_H */