mirror of
https://github.com/RGBCube/serenity
synced 2025-07-13 14:47:36 +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:
parent
3f36903201
commit
802f541184
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue