acadia/sys/denali/denali_server.h
Drew Galbraith e5da93757a Working AHCI DMA IPC from yellowstone to denali.
We have a weird bug in context switching where a process's rsp0 ends up
pointing at the wrong value sometimes which crashes the OS.
2023-06-16 01:31:23 -07:00

22 lines
438 B
C++

#pragma once
#include "ahci/ahci_driver.h"
#include "denali/denali.h"
class DenaliServer {
public:
DenaliServer(uint64_t channel_cap, AhciDriver& driver);
z_err_t RunServer();
void HandleResponse(uint64_t lba, uint64_t size, uint64_t cap);
private:
static const uint64_t kBuffSize = 1024;
uint64_t channel_cap_;
uint8_t read_buffer_[kBuffSize];
AhciDriver& driver_;
z_err_t HandleRead(const DenaliRead& read);
};