[Denali] Move denali server to yunq.

This commit is contained in:
Drew Galbraith 2023-10-25 20:28:28 -07:00
parent acfaf26391
commit 3e4fdfee84
25 changed files with 526 additions and 163 deletions

View file

@ -7,11 +7,8 @@
Command::~Command() {}
DmaReadCommand::DmaReadCommand(uint64_t lba, uint64_t sector_cnt,
Mutex& callback_mutex, ResponseContext& response)
: response_(response),
lba_(lba),
sector_cnt_(sector_cnt),
callback_mutex_(callback_mutex) {
Mutex& callback_mutex)
: lba_(lba), sector_cnt_(sector_cnt), callback_mutex_(callback_mutex) {
region_ = MappedMemoryRegion::ContiguousPhysical(sector_cnt * 512);
}

View file

@ -17,8 +17,7 @@ class Command {
class DmaReadCommand : public Command {
public:
DmaReadCommand(uint64_t lba, uint64_t sector_cnt, Mutex& callback_mutex_,
ResponseContext& reply_port);
DmaReadCommand(uint64_t lba, uint64_t sector_cnt, Mutex& callback_mutex);
virtual ~DmaReadCommand() override;
@ -30,7 +29,6 @@ class DmaReadCommand : public Command {
z_cap_t GetMemoryRegion() { return region_.cap(); }
private:
ResponseContext& response_;
uint64_t lba_;
uint64_t sector_cnt_;
Mutex& callback_mutex_;