Searched refs:pci_res (Results 1 – 2 of 2) sorted by relevance
| /f-stack/freebsd/mips/mediatek/ |
| H A D | mtk_pcie.h | 37 struct resource * pci_res[MTK_PCI_NIRQS + 1]; member 141 bus_write_4((sc)->pci_res[0], (off), (val)) 143 bus_write_2((sc)->pci_res[0], (off), (val)) 145 bus_write_1((sc)->pci_res[0], (off), (val)) 147 bus_read_4((sc)->pci_res[0], (off)) 149 bus_read_2((sc)->pci_res[0], (off)) 151 bus_read_1((sc)->pci_res[0], (off))
|
| H A D | mtk_pcie.c | 245 if (sc->pci_res[0] == NULL) { in mtk_pci_attach() 255 sc->pci_res[2] = sc->pci_res[3] = NULL; in mtk_pci_attach() 264 if (sc->pci_res[i] == NULL) { in mtk_pci_attach() 330 if (bus_setup_intr(dev, sc->pci_res[i], INTR_TYPE_MISC, in mtk_pci_attach() 358 bus_teardown_intr(dev, sc->pci_res[i], in mtk_pci_attach() 368 if (sc->pci_res[0] != NULL) in mtk_pci_attach() 370 if (sc->pci_res[1] != NULL) in mtk_pci_attach() 371 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->pci_res[1]); in mtk_pci_attach() 372 if (sc->pci_res[2] != NULL) in mtk_pci_attach() 373 bus_release_resource(dev, SYS_RES_IRQ, 1, sc->pci_res[2]); in mtk_pci_attach() [all …]
|