[denali] Use glcr::ErrorOr as a POC.

This commit is contained in:
Drew Galbraith 2023-06-21 18:38:11 -07:00
parent 0b86a94f14
commit 3a3ab8717b
7 changed files with 29 additions and 25 deletions

View file

@ -1,5 +1,7 @@
#pragma once
#include <glacier/status/error.h>
#include "ahci/ahci_driver.h"
#include "denali/denali.h"
@ -7,7 +9,7 @@ class DenaliServer {
public:
DenaliServer(uint64_t channel_cap, AhciDriver& driver);
z_err_t RunServer();
glcr::ErrorCode RunServer();
void HandleResponse(uint64_t lba, uint64_t size, uint64_t cap);
@ -18,5 +20,5 @@ class DenaliServer {
AhciDriver& driver_;
z_err_t HandleRead(const DenaliRead& read);
glcr::ErrorCode HandleRead(const DenaliRead& read);
};