mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 01:37:39 +03: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:
parent
3f36903201
commit
802f541184
Notes:
sideshowbarker
2024-07-19 02:54:44 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/802f5411842
@ -26,6 +26,8 @@
|
|||||||
|
|
||||||
#include <Kernel/Devices/UHCIController.h>
|
#include <Kernel/Devices/UHCIController.h>
|
||||||
|
|
||||||
|
#define UHCI_ENABLED 0
|
||||||
|
|
||||||
namespace Kernel {
|
namespace Kernel {
|
||||||
|
|
||||||
static constexpr u16 UHCI_USBCMD_RUN = 0x0001;
|
static constexpr u16 UHCI_USBCMD_RUN = 0x0001;
|
||||||
@ -46,6 +48,9 @@ static constexpr u16 UHCI_USBSTS_USB_INTERRUPT = 0x0001;
|
|||||||
|
|
||||||
void UHCIController::detect()
|
void UHCIController::detect()
|
||||||
{
|
{
|
||||||
|
#if !UHCI_ENABLED
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
PCI::enumerate([&](const PCI::Address& address, PCI::ID id) {
|
PCI::enumerate([&](const PCI::Address& address, PCI::ID id) {
|
||||||
if (address.is_null())
|
if (address.is_null())
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user