ladybird/Kernel/Storage
Liav A 25ea7461a0 Kernel/PCI: Simplify the entire subsystem
A couple of things were changed:
1. Semantic changes - PCI segments are now called PCI domains, to better
match what they are really. It's also the name that Linux gave, and it
seems that Wikipedia also uses this name.
We also remove PCI::ChangeableAddress, because it was used in the past
but now it's no longer being used.
2. There are no WindowedMMIOAccess or MMIOAccess classes anymore, as
they made a bunch of unnecessary complexity. Instead, Windowed access is
removed entirely (this was tested, but never was benchmarked), so we are
left with IO access and memory access options. The memory access option
is essentially mapping the PCI bus (from the chosen PCI domain), to
virtual memory as-is. This means that unless needed, at any time, there
is only one PCI bus being mapped, and this is changed if access to
another PCI bus in the same PCI domain is needed. For now, we don't
support mapping of different PCI buses from different PCI domains at the
same time, because basically it's still a non-issue for most machines
out there.
2. OOM-safety is increased, especially when constructing the Access
object. It means that we pre-allocating any needed resources, and we try
to find PCI domains (if requested to initialize memory access) after we
attempt to construct the Access object, so it's possible to fail at this
point "gracefully".
3. All PCI API functions are now separated into a different header file,
which means only "clients" of the PCI subsystem API will need to include
that header file.
4. Functional changes - we only allow now to enumerate the bus after
a hardware scan. This means that the old method "enumerate_hardware"
is removed, so, when initializing an Access object, the initializing
function must call rescan on it to force it to find devices. This makes
it possible to fail rescan, and also to defer it after construction from
both OOM-safety terms and hotplug capabilities.
2021-09-07 13:47:37 +02:00
..
Partition Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
AHCI.h Kernel/AHCI: Fix shift of 1 2021-06-25 16:27:01 +02:00
AHCIController.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
AHCIController.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
AHCIPort.cpp Kernel: Make kernel region allocators return KResultOr<NOP<Region>> 2021-09-06 01:55:27 +02:00
AHCIPort.h Kernel: Make all Spinlocks use u8 for storage, remove template 2021-09-05 20:46:02 +02:00
AHCIPortHandler.cpp Kernel/Interrupts: Return boolean on whether we handled the interrupt 2021-06-17 16:53:25 +02:00
AHCIPortHandler.h Kernel: Move Mutex into Locking/ 2021-08-07 11:48:00 +02:00
ATA.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
BMIDEChannel.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
BMIDEChannel.h Kernel: Move Kernel/Memory/ code into Kernel::Memory namespace 2021-08-06 14:05:58 +02:00
IDEChannel.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
IDEChannel.h Kernel: Make all Spinlocks use u8 for storage, remove template 2021-09-05 20:46:02 +02:00
IDEController.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
IDEController.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
PATADiskDevice.cpp Kernel: Remove unused header includes in Storage subtree 2021-07-11 21:37:38 +02:00
PATADiskDevice.h Kernel: Remove unused mutex PATADiskDevice::m_lock 2021-08-08 00:08:24 +02:00
RamdiskController.cpp Kernel: Make kernel region allocators return KResultOr<NOP<Region>> 2021-09-06 01:55:27 +02:00
RamdiskController.h Everywhere: Use "the SerenityOS developers." in copyright headers 2021-04-29 00:59:26 +02:00
RamdiskDevice.cpp Kernel: Move Kernel/Memory/ code into Kernel::Memory namespace 2021-08-06 14:05:58 +02:00
RamdiskDevice.h Kernel: Move Mutex into Locking/ 2021-08-07 11:48:00 +02:00
SATADiskDevice.cpp Kernel: Remove unused header includes in Storage subtree 2021-07-11 21:37:38 +02:00
SATADiskDevice.h Kernel: Move Mutex into Locking/ 2021-08-07 11:48:00 +02:00
StorageController.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
StorageDevice.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
StorageDevice.h Kernel: Move Mutex into Locking/ 2021-08-07 11:48:00 +02:00
StorageManagement.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
StorageManagement.h Kernel: Rename FS => FileSystem 2021-07-11 00:20:38 +02:00