Forgot to commit the removal of the old file in r36223.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36741 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
cea369ce9d
commit
dea3dab422
@ -1,92 +0,0 @@
|
||||
/*
|
||||
* Copyright 2005-2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
* Copyright 2003, Marcus Overhagen. All rights reserved.
|
||||
*
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
|
||||
|
||||
#include <PCI.h>
|
||||
|
||||
#include "pci_private.h"
|
||||
#include "pci_info.h"
|
||||
#include "pci.h"
|
||||
|
||||
|
||||
device_manager_info *gDeviceManager;
|
||||
|
||||
|
||||
static int32
|
||||
pci_old_module_std_ops(int32 op, ...)
|
||||
{
|
||||
switch (op) {
|
||||
case B_MODULE_INIT:
|
||||
{
|
||||
status_t status;
|
||||
|
||||
TRACE(("PCI: pci_module_init\n"));
|
||||
|
||||
status = pci_init();
|
||||
if (status < B_OK)
|
||||
return status;
|
||||
|
||||
pci_print_info();
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
case B_MODULE_UNINIT:
|
||||
TRACE(("PCI: pci_module_uninit\n"));
|
||||
pci_uninit();
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
return B_BAD_VALUE;
|
||||
}
|
||||
|
||||
|
||||
static struct pci_module_info sOldPCIModule = {
|
||||
{
|
||||
{
|
||||
B_PCI_MODULE_NAME,
|
||||
B_KEEP_LOADED,
|
||||
pci_old_module_std_ops
|
||||
},
|
||||
NULL
|
||||
},
|
||||
&pci_read_io_8,
|
||||
&pci_write_io_8,
|
||||
&pci_read_io_16,
|
||||
&pci_write_io_16,
|
||||
&pci_read_io_32,
|
||||
&pci_write_io_32,
|
||||
&pci_get_nth_pci_info,
|
||||
&pci_read_config,
|
||||
&pci_write_config,
|
||||
&pci_ram_address,
|
||||
&pci_find_capability,
|
||||
&pci_reserve_device,
|
||||
&pci_unreserve_device
|
||||
};
|
||||
|
||||
module_dependency module_dependencies[] = {
|
||||
{B_DEVICE_MANAGER_MODULE_NAME, (module_info **)&gDeviceManager},
|
||||
{}
|
||||
};
|
||||
|
||||
driver_module_info gPCILegacyDriverModule = {
|
||||
{
|
||||
PCI_LEGACY_DRIVER_MODULE_NAME,
|
||||
0,
|
||||
NULL,
|
||||
},
|
||||
NULL
|
||||
};
|
||||
|
||||
module_info *modules[] = {
|
||||
(module_info *)&sOldPCIModule,
|
||||
(module_info *)&gPCIRootModule,
|
||||
(module_info *)&gPCIDeviceModule,
|
||||
(module_info *)&gPCILegacyDriverModule,
|
||||
NULL
|
||||
};
|
Loading…
Reference in New Issue
Block a user