[yellowstone] Add a way to retrieve to denali client from yellowstone
This commit is contained in:
parent
b83385dfa6
commit
29d9923f5a
10 changed files with 99 additions and 7 deletions
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
const uint64_t kYellowstoneGetRegistration = 0x01;
|
||||
const uint64_t kYellowstoneGetAhci = 0x02;
|
||||
const uint64_t kYellowstoneGetDenali = 0x03;
|
||||
|
||||
struct YellowstoneGetReq {
|
||||
uint64_t type;
|
||||
|
|
@ -14,3 +15,10 @@ struct YellowstoneGetAhciResp {
|
|||
uint64_t type;
|
||||
uint64_t ahci_phys_offset;
|
||||
};
|
||||
|
||||
// Has a denali cap attached.
|
||||
struct YellowstoneGetDenaliResp {
|
||||
uint64_t type;
|
||||
uint64_t device_id;
|
||||
uint64_t lba_offset;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <denali/denali_client.h>
|
||||
#include <mammoth/endpoint_client.h>
|
||||
#include <mammoth/memory_region.h>
|
||||
#include <mammoth/port_client.h>
|
||||
|
|
@ -10,6 +11,7 @@ class YellowstoneStub {
|
|||
explicit YellowstoneStub(z_cap_t yellowstone_cap);
|
||||
|
||||
glcr::ErrorOr<MappedMemoryRegion> GetAhciConfig();
|
||||
glcr::ErrorOr<ScopedDenaliClient> GetDenali();
|
||||
|
||||
[[nodiscard]] glcr::ErrorCode Register(glcr::String name,
|
||||
const EndpointClient& client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue