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
Notes: sideshowbarker 2024-07-19 02:54:44 +09:00

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;