26 #include <linux/pci.h>
27 #include <linux/export.h>
30 static struct hpp_type0 pci_default_type0 = {
33 .latency_timer = 0x40,
40 u16 pci_cmd, pci_bctl;
49 dev_info(&dev->
dev,
"using default PCI settings\n");
50 hpp = &pci_default_type0;
55 "PCI settings rev %d not supported; using defaults\n",
57 hpp = &pci_default_type0;
93 dev_warn(&dev->
dev,
"PCI-X settings not supported\n");
105 dev_warn(&dev->
dev,
"PCIe settings rev %d not supported\n",
140 pci_read_config_dword(dev, pos +
PCI_ERR_CAP, ®32);
142 pci_write_config_dword(dev, pos +
PCI_ERR_CAP, reg32);
163 if (dev->
bus && dev->
bus->self)
165 dev->
bus->self->pcie_mpss);
167 memset(&hpp, 0,
sizeof(hpp));
170 dev_warn(&dev->
dev,
"no hotplug settings from platform\n");
172 program_hpp_type2(dev, hpp.
t2);
173 program_hpp_type1(dev, hpp.
t1);
174 program_hpp_type0(dev, hpp.
t0);