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