[Denali] Move denali server to yunq.
This commit is contained in:
parent
acfaf26391
commit
3e4fdfee84
25 changed files with 526 additions and 163 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue