2 * Copyright 2005-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 * Copyright 2003, Marcus Overhagen. All rights reserved.
5 * Distributed under the terms of the MIT License.
11 #include "pci_private.h"
16 device_manager_info
*gDeviceManager
;
17 extern struct pci_arch_module gPCIArchModule
;
20 pci_old_module_std_ops(int32 op
, ...)
27 TRACE(("PCI: pci_module_init\n"));
39 TRACE(("PCI: pci_module_uninit\n"));
48 static struct pci_module_info sOldPCIModule
= {
53 pci_old_module_std_ops
63 &pci_get_nth_pci_info
,
69 &pci_unreserve_device
,
70 &pci_update_interrupt_line
,
71 &pci_find_extended_capability
74 module_dependency module_dependencies
[] = {
75 {B_DEVICE_MANAGER_MODULE_NAME
, (module_info
**)&gDeviceManager
},
79 driver_module_info gPCILegacyDriverModule
= {
81 PCI_LEGACY_DRIVER_MODULE_NAME
,
88 module_info
*modules
[] = {
89 (module_info
*)&sOldPCIModule
,
90 (module_info
*)&gPCIRootModule
,
91 (module_info
*)&gPCIDeviceModule
,
92 (module_info
*)&gPCILegacyDriverModule
,
93 #if defined(__INTEL__) || defined(__x86_64__)
94 // add platforms when they provide an arch specific module
95 (module_info
*)&gPCIArchModule
,