Add the Denali disk driver.

Begin enumerating information from the PCI structure and HBA AHCI
structures.

Currently the PCI structure address is hardcoded but it should be
passed via a capability from the init process in the future.
This commit is contained in:
Drew Galbraith 2023-06-08 02:36:59 -07:00
parent 47e3d11060
commit 30bb10207e
12 changed files with 264 additions and 44 deletions

View file

@ -10,3 +10,11 @@ void dbgln(const char* fmt, ...);
void check(uint64_t);
void crash(const char*, z_err_t);
#define RET_ERR(expr) \
{ \
z_err_t _tmp_err = expr; \
if (_tmp_err != Z_OK) { \
return _tmp_err; \
} \
}