ahci: parse devices and add them to list

This commit is contained in:
Michael Shaw 2023-05-06 22:25:07 -04:00
commit 0c7c542eb5
2 changed files with 20 additions and 7 deletions

View file

@ -197,7 +197,7 @@ struct hba_cmd_header {
uint8_t cmd_fis_len : 5;
uint8_t atapi : 1;
uint8_t write : 1;
uint8_t prefetch: 1;
uint8_t prefetch : 1;
uint8_t reset : 1;
uint8_t bist : 1;
@ -313,12 +313,18 @@ typedef volatile struct {
/* 0x60 */
uint8_t ufis[64];
/* 0xA0 */
uint8_t reserved3[0x60];
} PACKED hbafis_t;
struct sata_device {
struct pci_device *controller;
uint8_t port;
hbamem_t *abar;
};
void ahci_init();
#endif /* _AHCI_H_ */