mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +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
36
Kernel/Bus/PCI/DeviceController.h
Normal file
36
Kernel/Bus/PCI/DeviceController.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* 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>
|
||||
|
||||
namespace Kernel {
|
||||
class PCI::DeviceController {
|
||||
public:
|
||||
Address pci_address() const { return m_pci_address; };
|
||||
|
||||
virtual ~DeviceController() = default;
|
||||
void enable_pin_based_interrupts() const;
|
||||
void disable_pin_based_interrupts() const;
|
||||
|
||||
bool is_msi_capable() const;
|
||||
bool is_msix_capable() const;
|
||||
|
||||
void enable_message_signalled_interrupts();
|
||||
void disable_message_signalled_interrupts();
|
||||
|
||||
void enable_extended_message_signalled_interrupts();
|
||||
void disable_extended_message_signalled_interrupts();
|
||||
|
||||
protected:
|
||||
explicit DeviceController(Address pci_address);
|
||||
|
||||
private:
|
||||
Address m_pci_address;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue