1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:18:12 +00:00
serenity/Kernel/Net
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
..
ARP.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
E1000ENetworkAdapter.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
E1000ENetworkAdapter.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
E1000NetworkAdapter.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
E1000NetworkAdapter.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
EthernetFrameHeader.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
EtherType.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ICMP.h Kernel: Switch static_asserts of a type size to AK::AssertSize 2021-09-05 20:08:57 +02:00
IPv4.h Kernel: Switch static_asserts of a type size to AK::AssertSize 2021-09-05 20:08:57 +02:00
IPv4Socket.cpp Kernel: Make copy_{from,to}_user() return KResult and use TRY() 2021-09-05 17:38:37 +02:00
IPv4Socket.h Kernel: Rename ProtectedValue<T> => MutexProtected<T> 2021-08-22 03:34:09 +02:00
IPv4SocketTuple.h Kernel: Move Mutex into Locking/ 2021-08-07 11:48:00 +02:00
LocalSocket.cpp Kernel: Use TRY() once more in LocalSocket::try_create_connected_pair() 2021-09-06 20:26:03 +02:00
LocalSocket.h Kernel: Store LocalSocket address as a KString internally 2021-08-29 02:21:01 +02:00
LoopbackAdapter.cpp Kernel: LoopbackAdapter::create() => try_create() 2021-07-11 18:00:31 +02:00
LoopbackAdapter.h Kernel: Add interface to read link speed and duplex for NetworkAdapter 2021-08-03 10:20:51 +02:00
NE2000NetworkAdapter.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
NE2000NetworkAdapter.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
NetworkAdapter.cpp Everywhere: Make ByteBuffer::{create_*,copy}() OOM-safe 2021-09-06 01:53:26 +02:00
NetworkAdapter.h Kernel: Handle OOM when allocating Packet KBuffers 2021-08-03 18:54:23 +02:00
NetworkingManagement.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
NetworkingManagement.h Kernel: Rename Kernel/VM/ to Kernel/Memory/ 2021-08-06 14:05:58 +02:00
NetworkTask.cpp Kernel: Avoid string creation for simple string comparison 2021-09-07 13:16:01 +02:00
NetworkTask.h Kernel: Avoid deadlock when trying to send packets from the NetworkTask 2021-04-30 23:11:56 +02:00
Routing.cpp Kernel: Improve names in the ARP table thread blocker 2021-09-05 01:10:56 +02:00
Routing.h Kernel: Convert Routing to east-const style 2021-09-03 23:18:50 +02:00
RTL8139NetworkAdapter.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
RTL8139NetworkAdapter.h Kernel: Rename PCI::DeviceController => PCI::Device 2021-08-23 01:07:45 +02:00
RTL8168NetworkAdapter.cpp Kernel/PCI: Simplify the entire subsystem 2021-09-07 13:47:37 +02:00
RTL8168NetworkAdapter.h Kernel: Switch static_asserts of a type size to AK::AssertSize 2021-09-05 20:08:57 +02:00
Socket.cpp Kernel: Make copy_time_from_user() helpers use KResultOr<Time> 2021-09-07 01:18:02 +02:00
Socket.h AK+Kernel: Move KResult.h to Kernel/API for userspace access 2021-09-05 12:54:48 +02:00
TCP.h Kernel: Switch static_asserts of a type size to AK::AssertSize 2021-09-05 20:08:57 +02:00
TCPSocket.cpp Kernel: Use TRY() in TCPSocket 2021-09-05 16:25:40 +02:00
TCPSocket.h AK+Kernel: Move KResult.h to Kernel/API for userspace access 2021-09-05 12:54:48 +02:00
UDP.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
UDPSocket.cpp Kernel: Tidy up UDPSocket creation a bit 2021-09-04 23:11:04 +02:00
UDPSocket.h AK+Kernel: Move KResult.h to Kernel/API for userspace access 2021-09-05 12:54:48 +02:00