Add constants for fast path resume copying
[coreboot.git] / src / southbridge / intel / i82801cx / pci.c
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>
6 #include "i82801cx.h"
7
8 static void pci_init(struct device *dev)
9 {
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);
15 }
16
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,
21         .init             = pci_init,
22         .scan_bus         = pci_scan_bridge,
23 };
24
25 static const struct pci_driver pci_driver __pci_driver = {
26         .ops    = &pci_ops,
27         .vendor = PCI_VENDOR_ID_INTEL,
28         .device = PCI_DEVICE_ID_INTEL_82801CA_PCI,
29 };
30