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)
13 /* Clear system errors */
14 word = pci_read_config16(dev, 0x06);
15 word |= 0xf900; /* Clear possible errors */
16 pci_write_config16(dev, 0x06, word);
18 word = pci_read_config16(dev, 0x1e);
19 word |= 0xf800; /* Clear possible errors */
20 pci_write_config16(dev, 0x1e, word);
23 static struct device_operations pci_ops = {
24 .read_resources = pci_bus_read_resources,
25 .set_resources = pci_dev_set_resources,
26 .enable_resources = pci_bus_enable_resources,
28 .scan_bus = pci_scan_bridge,
32 static const struct pci_driver pci_driver __pci_driver = {
34 .vendor = PCI_VENDOR_ID_INTEL,
35 .device = PCI_DEVICE_ID_INTEL_6300ESB_PCI,