mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:08:12 +00:00
Kernel: Make the PresentState register a bitfield in the SDHC driver
This commit is contained in:
parent
6391480b80
commit
b90a20aee6
3 changed files with 31 additions and 8 deletions
|
@ -43,8 +43,7 @@ private:
|
|||
|
||||
bool is_card_inserted() const
|
||||
{
|
||||
constexpr u32 card_inserted = 1 << 16;
|
||||
return m_registers->present_state & card_inserted;
|
||||
return m_registers->present_state.card_inserted;
|
||||
}
|
||||
|
||||
SD::HostVersion host_version() { return m_registers->slot_interrupt_status_and_version.specification_version_number; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue