BPicture: Fix archive constructor.
[haiku.git] / src / add-ons / kernel / bus_managers / pci / arch / ppc / pci_controller.cpp
blob50caa2b6ff2109a8c5e4ad06919a0a5614d7c59b
1 /*
2 * Copyright 2006, Ingo Weinhold. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
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"
17 status_t
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();
25 default:
26 panic("pci: unknown platform");
28 return B_ERROR;
32 void *
33 pci_ram_address(const void *physical_address_in_system_memory)
35 return (void *)physical_address_in_system_memory;