continue ahci development

This commit is contained in:
Michael Shaw 2023-05-06 21:30:05 -04:00
commit aa3eb7805d
4 changed files with 27 additions and 3 deletions

View file

@ -236,8 +236,11 @@ struct hba_cmd_tbl {
typedef volatile struct {
/* 0x00 */
paddr_t clb;
paddr_t fb;
paddr32_t clb_low;
paddr32_t clb_high;
paddr32_t fb_low;
paddr32_t fb_high;
/* 0x10 */
uint32_t is;
@ -286,7 +289,7 @@ typedef volatile struct {
uint8_t reserved[0x74];
/* 0xA0 */
char vendor[0x60];
uint8_t vendor[0x60];
/* 0x100 */
hbaport_t ports[32];

View file

@ -31,9 +31,22 @@ struct rsdt {
uint32_t sdt[];
} PACKED;
struct mcfg {
struct acpi_sdt_header h;
uint64_t reserved;
struct {
uint64_t base_addr;
uint16_t seg_group;
uint8_t start_bus;
uint8_t end_bus;
uint32_t reserved;
} PACKED cfg[];
} PACKED;
void acpi_init();
extern struct madt *__madt;
extern struct mcfg *__mcfg;
#endif /* __ASM__ */
#endif /* _ACPI_H_ */