serenity/Kernel/Bus
Luke b6a2bbba3b Kernel/USB: Replace PortNumber enum with a raw u8
A hub can technically have up to 255 ports, given that bNbrPorts is a
u8 and the DeviceRemovable field is a VLA to support up to 255 ports.

Source: USB 2.0 Specification Section 11.23.2.1

That means this enum is not going to scale well in terms of size.
Replacing it with a raw u8 allows me to remove the two port assumption
and a cast.
2021-08-14 21:22:44 +02:00
..
PCI Kernel/PCI: Assign a PCI address in the SysFS PCI device directories 2021-08-14 17:47:42 +02:00
USB Kernel/USB: Replace PortNumber enum with a raw u8 2021-08-14 21:22:44 +02:00
VirtIO Kernel: Move VirtIO code into the Bus source folder 2021-08-13 08:06:47 +02:00