This greatly reduces the size of the message (we had surpassed the 1 page - 4KiB message limit with the previous method).
25 lines
428 B
Text
25 lines
428 B
Text
interface Denali {
|
|
method Read(ReadRequest) -> (ReadResponse);
|
|
method ReadMany(ReadManyRequest) -> (ReadResponse);
|
|
}
|
|
|
|
message ReadRequest {
|
|
u64 device_id;
|
|
u64 lba;
|
|
u64 size;
|
|
}
|
|
|
|
message ReadManyRequest {
|
|
u64 device_id;
|
|
// FIXME: Add repeated message fields.
|
|
// Must be the same length.
|
|
repeated u64 lba;
|
|
repeated u64 sector_cnt;
|
|
}
|
|
|
|
message ReadResponse {
|
|
u64 device_id;
|
|
u64 size;
|
|
capability memory;
|
|
}
|
|
|