pc: enable UHCI driver in usb_host

Fix genodelabs/genode#4438
This commit is contained in:
Josef Söntgen 2022-02-22 15:53:08 +01:00 committed by Christian Helmuth
parent 2a35c8f9e7
commit 67f797abf2
8 changed files with 20 additions and 10 deletions

View File

@ -28,6 +28,7 @@ SRC_CC += lx_emul/debug.cc
SRC_CC += lx_emul/init.cc
SRC_CC += lx_emul/pci_init.cc
SRC_CC += lx_emul/io_mem.cc
SRC_CC += lx_emul/io_port.cc
SRC_CC += lx_emul/irq.cc
SRC_CC += lx_emul/log.cc
SRC_CC += lx_emul/page_virt.cc

View File

@ -155,6 +155,11 @@ drivers/usb/host/ohci-mem.c
drivers/usb/host/ohci-q.c
drivers/usb/host/ohci.h
drivers/usb/host/pci-quirks.h
drivers/usb/host/uhci-debug.c
drivers/usb/host/uhci-hcd.h
drivers/usb/host/uhci-hub.c
drivers/usb/host/uhci-pci.c
drivers/usb/host/uhci-q.c
drivers/usb/host/xhci-dbgcap.h
drivers/usb/host/xhci-debugfs.h
drivers/usb/host/xhci-ext-caps.h

View File

@ -325,14 +325,6 @@ int kobject_uevent_env(struct kobject * kobj,enum kobject_action action,char * e
}
#include <asm-generic/logic_io.h>
void memcpy_fromio(void * to,const volatile void __iomem * from,size_t n)
{
lx_emul_trace_and_stop(__func__);
}
#include <linux/kernel.h>
unsigned long long memparse(const char * ptr,char ** retptr)
@ -676,3 +668,10 @@ void wake_q_add_safe(struct wake_q_head * head,struct task_struct * task)
lx_emul_trace_and_stop(__func__);
}
#include <linux/slab.h>
void kmem_cache_destroy(struct kmem_cache * s)
{
lx_emul_trace_and_stop(__func__);
}

View File

@ -1,7 +1,7 @@
/*
* \brief Array defining order of Linux Kernel initcalls
* \author Automatically generated file - do no edit
* \date 2022-01-13
* \date 2022-02-21
*/
#pragma once
@ -58,7 +58,6 @@ static const char * lx_emul_initcall_order[] = {
"__initcall_init_reserve_notifier4",
"__initcall_pci_slot_init4",
"__initcall_misc_init4",
"__initcall_vga_arb_device_init4",
"__initcall_usb_common_init4",
"__initcall_usb_init4",
"__initcall_serio_init4",
@ -135,6 +134,7 @@ static const char * lx_emul_initcall_order[] = {
"__initcall_ehci_pci_init6",
"__initcall_ohci_hcd_mod_init6",
"__initcall_ohci_pci_init6",
"__initcall_uhci_hcd_init6",
"__initcall_xhci_hcd_init6",
"__initcall_xhci_pci_init6",
"__initcall_i8042_init6",

View File

@ -47,6 +47,7 @@ drivers/usb/host/ehci-pci.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-pci.c
drivers/usb/host/pci-quirks.c
drivers/usb/host/uhci-hcd.c
drivers/usb/host/xhci-dbg.c
drivers/usb/host/xhci-ext-caps.c
drivers/usb/host/xhci-hub.c

View File

@ -12,3 +12,5 @@ arch/x86/include/asm/user_64.h
arch/x86/include/uapi/asm/posix_types_64.h
arch/x86/include/uapi/asm/vsyscall.h
include/asm-generic/div64.h
kernel/irq/irqdomain.c
kernel/time/tick-broadcast.c

View File

@ -47,6 +47,7 @@ drivers/usb/host/ehci-pci.c
drivers/usb/host/ohci-hcd.c
drivers/usb/host/ohci-pci.c
drivers/usb/host/pci-quirks.c
drivers/usb/host/uhci-hcd.c
drivers/usb/host/xhci-dbg.c
drivers/usb/host/xhci-ext-caps.c
drivers/usb/host/xhci-hub.c

View File

@ -16,6 +16,7 @@ LX_ENABLE += PCI
# USB host-controller support
LX_ENABLE += USB_SUPPORT USB USB_ARCH_HAS_HCD USB_XHCI_HCD USB_EHCI_HCD USB_OHCI_HCD
LX_ENABLE += USB_PCI USB_UHCI_HCD
# mandatory fs support
LX_ENABLE += PROC_FS SYSFS