1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:57:35 +00:00

Kernel/USB: Disable autodetection of UHCI controllers for now

Until this thing becomes stable, let's not bother everyone with it.
This commit is contained in:
Andreas Kling 2020-09-05 15:41:50 +02:00
parent 3f36903201
commit 802f541184

View file

@ -26,6 +26,8 @@
#include <Kernel/Devices/UHCIController.h>
#define UHCI_ENABLED 0
namespace Kernel {
static constexpr u16 UHCI_USBCMD_RUN = 0x0001;
@ -46,6 +48,9 @@ static constexpr u16 UHCI_USBSTS_USB_INTERRUPT = 0x0001;
void UHCIController::detect()
{
#if !UHCI_ENABLED
return;
#endif
PCI::enumerate([&](const PCI::Address& address, PCI::ID id) {
if (address.is_null())
return;