Lines Matching refs:dev
41 #include <dev/pci/pcivar.h>
42 #include <dev/pci/pcireg.h>
52 static int fixup_pci_probe(device_t dev);
53 static void fixwsc_natoma(device_t dev);
54 static void fixc1_nforce2(device_t dev);
74 fixup_pci_probe(device_t dev)
76 switch (pci_get_devid(dev)) {
78 fixwsc_natoma(dev);
81 fixc1_nforce2(dev);
88 fixwsc_natoma(device_t dev)
92 pmccfg = pci_read_config(dev, 0x50, 2);
95 device_printf(dev, "correcting Natoma config for SMP\n");
97 pci_write_config(dev, 0x50, pmccfg, 2);
101 device_printf(dev, "correcting Natoma config for non-SMP\n");
103 pci_write_config(dev, 0x50, pmccfg, 2);
115 * for the Host-PCI bridge at bus/dev/function 0/0/0:
127 fixc1_nforce2(device_t dev)
131 if (pci_get_bus(dev) == 0 && pci_get_slot(dev) == 0 &&
132 pci_get_function(dev) == 0) {
133 val = pci_read_config(dev, 0x6c, 4);
135 device_printf(dev,
138 pci_write_config(dev, 0x6c, val, 4);