1/*
2 * Copyright 2006, Ingo Weinhold. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include "pci_controller.h"
8
9#include <arch_platform.h>
10
11#include "pci_private.h"
12
13#include "openfirmware/pci_openfirmware.h"
14
15
16status_t
17pci_controller_init(void)
18{
19	switch (PPCPlatform::Default()->PlatformType()) {
20		case PPC_PLATFORM_OPEN_FIRMWARE:
21			return ppc_openfirmware_pci_controller_init();
22			break;
23	}
24	return B_OK;
25}
26
27
28void *
29pci_ram_address(const void *physical_address_in_system_memory)
30{
31	return (void *)physical_address_in_system_memory;
32}
33