1 /* Copyright 2003 Tyan */
13 #include <console/console.h>
14 #include <device/device.h>
15 #include <device/pci.h>
16 #include <device/pci_ids.h>
17 #include <device/pci_ops.h>
20 static void intel_nic_init(struct device *dev)
24 word = pci_read_config16(dev, 0x4);
25 word |= ((1 << 2) |(1<<4)); // Command: 3--> 17
26 pci_write_config16(dev, 0x4, word);
28 printk_debug("INTEL_NIC_FIXUP: done \n");
33 static struct device_operations intel_nic_ops = {
34 .read_resources = pci_dev_read_resources,
35 .set_resources = pci_dev_set_resources,
36 .enable_resources = pci_dev_enable_resources,
37 .init = intel_nic_init,
41 static struct pci_driver intel_nic_driver __pci_driver = {
42 .ops = &intel_nic_ops,
43 .vendor = PCI_VENDOR_ID_INTEL,
46 static struct pci_driver intel_nic2_driver __pci_driver = {
47 .ops = &intel_nic_ops,
48 .vendor = PCI_VENDOR_ID_INTEL,