mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
Kernel/PCI: Move the PCI components as a subfolder to the Bus directory
This commit is contained in:
parent
26e9140ea1
commit
6568bb47cb
Notes:
sideshowbarker
2024-07-18 11:08:21 +09:00
Author: https://github.com/supercomputer7
Commit: 6568bb47cb
Pull-request: https://github.com/SerenityOS/serenity/pull/8241
Issue: https://github.com/SerenityOS/serenity/issues/6948
Issue: https://github.com/SerenityOS/serenity/issues/7445
Issue: https://github.com/SerenityOS/serenity/issues/8331
Reviewed-by: https://github.com/IdanHo
Reviewed-by: https://github.com/awesomekling
43 changed files with 60 additions and 60 deletions
26
Kernel/Bus/PCI/Device.h
Normal file
26
Kernel/Bus/PCI/Device.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2020, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Types.h>
|
||||
#include <Kernel/Bus/PCI/Definitions.h>
|
||||
#include <Kernel/Interrupts/IRQHandler.h>
|
||||
|
||||
namespace Kernel {
|
||||
class PCI::Device : public IRQHandler {
|
||||
public:
|
||||
Address pci_address() const { return m_pci_address; };
|
||||
|
||||
protected:
|
||||
Device(Address pci_address);
|
||||
Device(Address pci_address, u8 interrupt_vector);
|
||||
~Device();
|
||||
|
||||
private:
|
||||
Address m_pci_address;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue