Kernel/USB: Move USB classes into USB namespace

The entire USB spec involves more than just UHCI, so
let's put everything into it's own nice namespace :^)
This commit is contained in:
Jesse Buhagiar 2020-11-10 16:59:09 +11:00 committed by Andreas Kling
parent 0dbb9361b8
commit 33d73c600c
Notes: sideshowbarker 2024-07-19 00:01:03 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@
#define UHCI_ENABLED 0
namespace Kernel {
namespace Kernel::USB {
static constexpr u16 UHCI_USBCMD_RUN = 0x0001;
static constexpr u16 UHCI_USBCMD_HOST_CONTROLLER_RESET = 0x0002;

View file

@ -29,7 +29,7 @@
#include <Kernel/IO.h>
#include <Kernel/PCI/Device.h>
namespace Kernel {
namespace Kernel::USB {
class UHCIController final : public PCI::Device {
public:

View file

@ -246,7 +246,7 @@ void init_stage2(void*)
}
}
UHCIController::detect();
USB::UHCIController::detect();
E1000NetworkAdapter::detect();
RTL8139NetworkAdapter::detect();