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>
9 * Enable the ethernet device and turn off stepping (because it is integrated
10 * inside the southbridge)
12 static void nic_init(struct device *dev)
16 printk_debug("Configuring VIA Rhine LAN\n");
18 /* We don't need stepping - though the device supports it */
19 byte = pci_read_config8(dev, PCI_COMMAND);
20 byte &= ~PCI_COMMAND_WAIT;
21 pci_write_config8(dev, PCI_COMMAND, byte);
24 static struct device_operations nic_ops = {
25 .read_resources = pci_dev_read_resources,
26 .set_resources = pci_dev_set_resources,
27 .enable_resources = pci_dev_enable_resources,
33 static const struct pci_driver northbridge_driver __pci_driver = {
35 .vendor = PCI_VENDOR_ID_VIA,
36 .device = PCI_DEVICE_ID_VIA_8233_7,