mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-10 00:52:28 +02:00
The current USB::Device::enumerate_device() implementation is UHCI specific, and is not relevant for xHCI controllers. Move it to a USBController virtual method to allow different implementations for the other controller types.
18 lines
344 B
C++
18 lines
344 B
C++
/*
|
|
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Bus/USB/USBController.h>
|
|
#include <Kernel/Devices/Storage/StorageManagement.h>
|
|
|
|
namespace Kernel::USB {
|
|
|
|
USBController::USBController()
|
|
: m_storage_controller_id(StorageManagement::generate_controller_id())
|
|
{
|
|
}
|
|
|
|
}
|