Home
last modified time | relevance | path

Searched refs:pcictl (Results 1 – 3 of 3) sorted by relevance

/openbsd/sys/dev/pci/
H A Dqla_pci.c89 u_int32_t pcictl; in qla_pci_attach() local
136 pcictl |= PCI_COMMAND_INVALIDATE_ENABLE | in qla_pci_attach()
143 pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG); in qla_pci_attach()
144 pcictl &= ~(PCI_LATTIMER_MASK << PCI_LATTIMER_SHIFT); in qla_pci_attach()
145 pcictl &= ~(PCI_CACHELINE_MASK << PCI_CACHELINE_SHIFT); in qla_pci_attach()
146 pcictl |= (0x80 << PCI_LATTIMER_SHIFT); in qla_pci_attach()
147 pcictl |= (0x10 << PCI_CACHELINE_SHIFT); in qla_pci_attach()
148 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG, pcictl); in qla_pci_attach()
150 pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG); in qla_pci_attach()
151 pcictl &= ~1; in qla_pci_attach()
[all …]
H A Dqlw_pci.c103 u_int32_t pcictl; in qlw_pci_attach() local
149 pcictl |= PCI_COMMAND_INVALIDATE_ENABLE | in qlw_pci_attach()
153 pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG); in qlw_pci_attach()
154 pcictl &= ~(PCI_LATTIMER_MASK << PCI_LATTIMER_SHIFT); in qlw_pci_attach()
155 pcictl &= ~(PCI_CACHELINE_MASK << PCI_CACHELINE_SHIFT); in qlw_pci_attach()
156 pcictl |= (0x80 << PCI_LATTIMER_SHIFT); in qlw_pci_attach()
157 pcictl |= (0x10 << PCI_CACHELINE_SHIFT); in qlw_pci_attach()
158 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG, pcictl); in qlw_pci_attach()
160 pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG); in qlw_pci_attach()
161 pcictl &= ~1; in qlw_pci_attach()
[all …]
H A Dqle.c343 u_int32_t pcictl; in qle_attach() local
393 pcictl |= PCI_COMMAND_INVALIDATE_ENABLE | in qle_attach()
397 pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG); in qle_attach()
398 pcictl &= ~(PCI_LATTIMER_MASK << PCI_LATTIMER_SHIFT); in qle_attach()
399 pcictl &= ~(PCI_CACHELINE_MASK << PCI_CACHELINE_SHIFT); in qle_attach()
400 pcictl |= (0x80 << PCI_LATTIMER_SHIFT); in qle_attach()
401 pcictl |= (0x10 << PCI_CACHELINE_SHIFT); in qle_attach()
402 pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_BHLC_REG, pcictl); in qle_attach()
404 pcictl = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_ROM_REG); in qle_attach()
405 pcictl &= ~1; in qle_attach()
[all …]