Lines Matching refs:dev
43 #include <dev/pci/pcivar.h>
44 #include <dev/pci/pcireg.h>
54 static int fixup_pci_probe(device_t dev);
55 static void fixwsc_natoma(device_t dev);
56 static void fixc1_nforce2(device_t dev);
76 fixup_pci_probe(device_t dev)
78 switch (pci_get_devid(dev)) {
80 fixwsc_natoma(dev);
83 fixc1_nforce2(dev);
90 fixwsc_natoma(device_t dev)
94 pmccfg = pci_read_config(dev, 0x50, 2);
97 device_printf(dev, "correcting Natoma config for SMP\n");
99 pci_write_config(dev, 0x50, pmccfg, 2);
103 device_printf(dev, "correcting Natoma config for non-SMP\n");
105 pci_write_config(dev, 0x50, pmccfg, 2);
117 * for the Host-PCI bridge at bus/dev/function 0/0/0:
129 fixc1_nforce2(device_t dev)
133 if (pci_get_bus(dev) == 0 && pci_get_slot(dev) == 0 &&
134 pci_get_function(dev) == 0) {
135 val = pci_read_config(dev, 0x6c, 4);
137 device_printf(dev,
140 pci_write_config(dev, 0x6c, val, 4);