diff options
author | Liav A <liavalb@gmail.com> | 2021-09-23 10:50:45 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-29 11:24:33 +0200 |
commit | a411a44fda3ba713e139331d4c29ea32f70c99d8 (patch) | |
tree | 8f17520fc4f614a622cd2a30b591db9beff61ae6 /Kernel/Bus/VirtIO/Device.cpp | |
parent | 057f5a12c2c69b1bad1d8b778d3cb934b3a8f346 (diff) | |
download | serenity-a411a44fda3ba713e139331d4c29ea32f70c99d8.zip |
Kernel/PCI: Cache interrupt line and interrupt pin of a device
This allows us to remove the PCI::get_interrupt_line API function. As a
result, this removes a bunch of not so great patterns that we used to
cache PCI interrupt line in many IRQHandler derived classes instead of
just using interrupt_number method of IRQHandler class.
Diffstat (limited to 'Kernel/Bus/VirtIO/Device.cpp')
-rw-r--r-- | Kernel/Bus/VirtIO/Device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Bus/VirtIO/Device.cpp b/Kernel/Bus/VirtIO/Device.cpp index d9ad50b8a4..6e869168fa 100644 --- a/Kernel/Bus/VirtIO/Device.cpp +++ b/Kernel/Bus/VirtIO/Device.cpp @@ -152,7 +152,7 @@ UNMAP_AFTER_INIT void Device::initialize() UNMAP_AFTER_INIT VirtIO::Device::Device(PCI::DeviceIdentifier const& device_identifier) : PCI::Device(device_identifier.address()) - , IRQHandler(PCI::get_interrupt_line(device_identifier.address())) + , IRQHandler(device_identifier.interrupt_line().value()) , m_io_base(IOAddress(PCI::get_BAR0(pci_address()) & ~1)) , m_class_name(VirtIO::determine_device_class(device_identifier)) { |