1 #include <console/console.h>
2 #include <device/device.h>
3 #include <device/pci.h>
4 #include <device/pci_ops.h>
5 #include <device/pci_ids.h>
8 * Enable the ethernet device and turn off stepping (because it is integrated
9 * inside the southbridge)
11 static void nic_init(struct device *dev)
15 printk(BIOS_DEBUG, "Configuring VIA LAN\n");
17 /* We don't need stepping - though the device supports it */
18 byte = pci_read_config8(dev, PCI_COMMAND);
19 byte &= ~PCI_COMMAND_WAIT;
20 pci_write_config8(dev, PCI_COMMAND, byte);
23 static struct device_operations nic_ops = {
24 .read_resources = pci_dev_read_resources,
25 .set_resources = pci_dev_set_resources,
26 .enable_resources = pci_dev_enable_resources,
32 static const struct pci_driver northbridge_driver __pci_driver = {
34 .vendor = PCI_VENDOR_ID_VIA,
35 .device = PCI_DEVICE_ID_VIA_8233_7,