git clone https://garage44.eu/jeroen/pinnacle.git.. /kernel/src/drivers/mod.rs
//! Device drivers. QEMU's are virtio (`virtio`, over MMIO or PCI) and its
//! framebuffer (`display`); a PC's and a laptop's own are on PCI: disks
//! behind NVMe and AHCI, USB (`usb`: keyboards, mice, sticks), Intel HDA
//! sound (`hda`), Intel's Wi-Fi as far as its firmware's start
//! (`iwlwifi`); a board's come board by board.
pub mod ahci;
pub mod backlight;
pub mod block;
pub mod display;
pub mod e1000;
pub mod gpu;
pub mod gpu3d;
pub mod hda;
#[cfg(target_arch = "x86_64")]
pub mod i2c_dw;
#[cfg(target_arch = "x86_64")]
pub mod i2c_hid;
#[cfg(target_arch = "x86_64")]
pub mod i915;
pub mod input;
pub mod iwlwifi;
pub mod net;
pub mod nvme;
#[cfg(target_arch = "x86_64")]
pub mod ps2;
pub mod random;
pub mod scanout;
pub mod screen_log;
pub mod serial;
pub mod sound;
pub mod usb;
pub mod virtio;
pub mod virtio_blk;
/// A device's interrupt, to whichever driver it is: false when none is
/// its. Every driver is asked, not only until one answers: on PCI several
/// functions share an INTx line, and a level-triggered line left raised
/// by the one not asked would fire again for ever.
pub fn interrupt(intid: u32) -> bool {
let answers = [
input::interrupt(intid),
net::interrupt(intid),
block::interrupt(intid),
usb::interrupt(intid),
sound::interrupt(intid),
serial::interrupt(intid),
gpu::interrupt(intid),
gpu3d::interrupt(intid),
random::interrupt(intid),
#[cfg(target_arch = "x86_64")]
ps2::interrupt(intid),
#[cfg(target_arch = "x86_64")]
crate::acpi::interrupt(intid),
];
answers.contains(&true)
}