1 #include <console/console.h>
\r
2 #include <device/device.h>
\r
3 #include <device/pci.h>
\r
4 #include <device/pci_ids.h>
\r
5 #include <device/pci_ops.h>
\r
6 #include "i82801ca.h"
\r
8 static void pci_init(struct device *dev)
\r
10 // NOTE: the original (v1) 'CA code set these in the bridge register (0x3E-3F)
\r
11 /* Enable pci error detecting */
\r
12 uint32_t dword = pci_read_config32(dev, PCI_COMMAND);
\r
13 dword |= (PCI_COMMAND_SERR | PCI_COMMAND_PARITY);
\r
14 pci_write_config32(dev, PCI_COMMAND, dword);
\r
17 static struct device_operations pci_ops = {
\r
18 .read_resources = pci_bus_read_resources,
\r
19 .set_resources = pci_dev_set_resources,
\r
20 .enable_resources = pci_bus_enable_resources,
\r
22 .scan_bus = pci_scan_bridge,
\r
25 static const struct pci_driver pci_driver __pci_driver = {
\r
27 .vendor = PCI_VENDOR_ID_INTEL,
\r
28 .device = PCI_DEVICE_ID_INTEL_82801CA_PCI,
\r