[Denali] Record SATA device sector size and count.
This commit is contained in:
parent
e308d8e120
commit
0375306f5e
2 changed files with 19 additions and 5 deletions
|
|
@ -20,7 +20,7 @@ class AhciPort {
|
|||
void DumpInfo();
|
||||
|
||||
bool IsSata() { return port_struct_->signature == 0x101; }
|
||||
bool IsInit() { return port_struct_ != nullptr && command_structures_; }
|
||||
bool IsInit() { return is_init_; }
|
||||
|
||||
glcr::ErrorCode Identify();
|
||||
|
||||
|
|
@ -43,5 +43,9 @@ class AhciPort {
|
|||
glcr::Array<mmth::Semaphore> command_signals_;
|
||||
uint32_t commands_issued_ = 0;
|
||||
|
||||
bool is_init_ = false;
|
||||
uint64_t lba_count_ = 0;
|
||||
uint32_t sector_size_ = 0;
|
||||
|
||||
glcr::ErrorOr<mmth::Semaphore*> IssueCommand(const CommandInfo& command);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue