The host controller type (u/e/xhci) usded by the drivers can be configured through attributes of the config node. See: READMEdevel
parent
6d07fff07c
commit
cda25a481b
@ -0,0 +1,36 @@
|
||||
/**
|
||||
* \brief X86 platform initialization
|
||||
* \author Sebastian Sumpf
|
||||
* \date 2013-05-17
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2013 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#include <platform.h>
|
||||
#include <platform/platform.h>
|
||||
|
||||
|
||||
extern "C" void module_ehci_hcd_init();
|
||||
extern "C" void module_ehci_pci_init();
|
||||
extern "C" void module_uhci_hcd_init();
|
||||
|
||||
void platform_hcd_init(Services *s)
|
||||
{
|
||||
/* ehci_hcd should always be loaded before uhci_hcd and ohci_hcd, not after */
|
||||
if (s->ehci) {
|
||||
module_ehci_hcd_init();
|
||||
module_ehci_pci_init();
|
||||
}
|
||||
|
||||
if (s->uhci)
|
||||
module_uhci_hcd_init();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in new issue