2 * Copyright 2006, Ingo Weinhold. All rights reserved.
3 * Distributed under the terms of the MIT License.
7 #include "pci_controller.h"
9 #include <arch_platform.h>
11 #include "pci_private.h"
13 #include "openfirmware/pci_openfirmware.h"
14 #include "u-boot/pci_u-boot.h"
18 pci_controller_init(void)
20 switch (PPCPlatform::Default()->PlatformType()) {
21 case PPC_PLATFORM_OPEN_FIRMWARE
:
22 return ppc_openfirmware_pci_controller_init();
23 case PPC_PLATFORM_U_BOOT
:
24 return ppc_uboot_pci_controller_init();
26 panic("pci: unknown platform");
33 pci_ram_address(const void *physical_address_in_system_memory
)
35 return (void *)physical_address_in_system_memory
;