mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Kernel/AHCI: Add a method to get raw interrupt enable register
This commit is contained in:
parent
20cccda731
commit
21bb7fd5c9
Notes:
sideshowbarker
2024-07-18 21:11:58 +09:00
Author: https://github.com/supercomputer7
Commit: 21bb7fd5c9
Pull-request: https://github.com/SerenityOS/serenity/pull/5865
Reviewed-by: https://github.com/bgianfo
Reviewed-by: https://github.com/tomuta
1 changed files with 1 additions and 0 deletions
|
@ -484,6 +484,7 @@ public:
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u32 raw_value() const { return m_bitfield; }
|
||||||
bool is_set(PortInterruptFlag flag) { return m_bitfield & (u32)flag; }
|
bool is_set(PortInterruptFlag flag) { return m_bitfield & (u32)flag; }
|
||||||
void set_at(PortInterruptFlag flag) { m_bitfield = m_bitfield | static_cast<u32>(flag); }
|
void set_at(PortInterruptFlag flag) { m_bitfield = m_bitfield | static_cast<u32>(flag); }
|
||||||
void clear() { m_bitfield = 0; }
|
void clear() { m_bitfield = 0; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue