Lines Matching defs:config
88 uint16_t config;
104 pci_read_config_word(dev, PCI_COMMAND, &config);
105 config |= PCI_COMMAND_PARITY | PCI_COMMAND_SERR;
106 pci_write_config_word(dev, PCI_COMMAND, config);
112 pci_read_config_word(dev, PCI_BRIDGE_CONTROL, &config);
113 config |= PCI_BRIDGE_CTL_PARITY | PCI_BRIDGE_CTL_SERR;
114 pci_write_config_word(dev, PCI_BRIDGE_CONTROL, config);
118 config = PCI_EXP_DEVCTL_CERE; /* Correctable Error Reporting */
119 config |= PCI_EXP_DEVCTL_NFERE; /* Non-Fatal Error Reporting */
120 config |= PCI_EXP_DEVCTL_FERE; /* Fatal Error Reporting */
121 config |= PCI_EXP_DEVCTL_URRE; /* Unsupported Request */
122 pcie_capability_set_word(dev, PCI_EXP_DEVCTL, config);
150 if (config & PCI_ERR_CAP_ECRC_GENC)
151 config |= PCI_ERR_CAP_ECRC_GENE;
153 if (config & PCI_ERR_CAP_ECRC_CHKC)
154 config |= PCI_ERR_CAP_ECRC_CHKE;