mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel/USB: Move USB classes into USB
namespace
The entire USB spec involves more than just UHCI, so let's put everything into it's own nice namespace :^)
This commit is contained in:
parent
0dbb9361b8
commit
33d73c600c
Notes:
sideshowbarker
2024-07-19 00:01:03 +09:00
Author: https://github.com/Quaker762 Commit: https://github.com/SerenityOS/serenity/commit/33d73c600c4 Pull-request: https://github.com/SerenityOS/serenity/pull/4019 Reviewed-by: https://github.com/Lubrsi Reviewed-by: https://github.com/awesomekling
3 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@
|
|||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
@ -28,7 +28,7 @@
|
|||
|
||||
#define UHCI_ENABLED 0
|
||||
|
||||
namespace Kernel {
|
||||
namespace Kernel::USB {
|
||||
|
||||
static constexpr u16 UHCI_USBCMD_RUN = 0x0001;
|
||||
static constexpr u16 UHCI_USBCMD_HOST_CONTROLLER_RESET = 0x0002;
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
#include <Kernel/IO.h>
|
||||
#include <Kernel/PCI/Device.h>
|
||||
|
||||
namespace Kernel {
|
||||
namespace Kernel::USB {
|
||||
|
||||
class UHCIController final : public PCI::Device {
|
||||
public:
|
||||
|
|
|
@ -246,7 +246,7 @@ void init_stage2(void*)
|
|||
}
|
||||
}
|
||||
|
||||
UHCIController::detect();
|
||||
USB::UHCIController::detect();
|
||||
|
||||
E1000NetworkAdapter::detect();
|
||||
RTL8139NetworkAdapter::detect();
|
||||
|
|
Loading…
Reference in a new issue