blob: 4e6793810534a395c4fa855cf83812486a8ffbc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* Initialisation of the PCI bridge .
*/
#include <arch/io.h>
#include <device/pci.h>
#include <device/pci_ids.h>
#include <console/console.h>
static void
pci_bridge_init(struct device *dev)
{
printk_info("Configure PCI Bridge\n");
pci_write_config16(dev, PCI_COMMAND, PCI_COMMAND_MEMORY|PCI_COMMAND_MASTER);
pci_write_config16(dev, 0x60, 0x0f00);
printk_info("PCI Bridge configuration complete\n");
}
struct device_operations pci_bridge_ops = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = pci_bridge_init,
.scan_bus = 0,
};
struct pci_driver pci_bridge_pci_driver __pci_driver = {
/* w83c553f */
.ops = &pci_bridge_ops,
.device = PCI_DEVICE_ID_IBM_405GP,
.vendor = PCI_VENDOR_ID_IBM,
};
|