[Zion][Denali] Move to MSI for AHCI devices.
This will allow us to properly do interrupts for XHCI devices in the future. Also move PCI device header parsing to a shared library. Get rid of the old irq register format which supplied an irq number and instead pass the appropriate irq number back out to the caller.
This commit is contained in:
parent
c645405ca8
commit
f26fd73116
21 changed files with 371 additions and 124 deletions
|
|
@ -15,9 +15,10 @@ class DriverManager {
|
|||
|
||||
void WriteMessage(uint64_t irq_num, IpcMessage&& message);
|
||||
|
||||
[[nodiscard]] glcr::ErrorCode RegisterListener(uint64_t irq_num,
|
||||
glcr::RefPtr<Port> port);
|
||||
[[nodiscard]] glcr::ErrorOr<uint8_t> RegisterListener(
|
||||
glcr::RefPtr<Port> port);
|
||||
|
||||
private:
|
||||
glcr::HashMap<uint64_t, glcr::RefPtr<Port>> driver_map_;
|
||||
const uint64_t IRQ_OFFSET = 0x60;
|
||||
glcr::Vector<glcr::RefPtr<Port>> driver_list_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue