Lines Matching +full:board +full:- +full:2

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
12 * 2. Redistributions in binary form must reproduce the above copyright
70 ida_outl(ida, R_CMD_FIFO, qcb->hwqcb_busaddr); in ida_v3_submit()
79 if (completed == -1) { in ida_v3_done()
95 ida->flags |= IDA_INTERRUPTS; in ida_v3_int_enable()
97 ida->flags &= ~IDA_INTERRUPTS; in ida_v3_int_enable()
110 ida_outl(ida, R_42XX_REQUEST, qcb->hwqcb_busaddr); in ida_v4_submit()
119 if (completed == -1) in ida_v4_done()
135 ida->flags |= IDA_INTERRUPTS; in ida_v4_int_enable()
137 ida->flags &= ~IDA_INTERRUPTS; in ida_v4_int_enable()
159 { 0x40300E11, "Compaq SMART-2/P array controller",
161 { 0x40310E11, "Compaq SMART-2SL array controller",
213 for (i = 0; board_id[i].board; i++) in ida_pci_match()
214 if (board_id[i].board == sub_id) in ida_pci_match()
223 struct ida_board *board = ida_pci_match(dev); in ida_pci_probe() local
225 if (board != NULL) { in ida_pci_probe()
226 device_set_desc(dev, board->desc); in ida_pci_probe()
235 struct ida_board *board = ida_pci_match(dev); in ida_pci_attach() local
241 ida->dev = dev; in ida_pci_attach()
242 ida->cmd = *board->accessor; in ida_pci_attach()
243 ida->flags = board->flags; in ida_pci_attach()
244 mtx_init(&ida->lock, "ida", NULL, MTX_DEF); in ida_pci_attach()
245 callout_init_mtx(&ida->ch, &ida->lock, 0); in ida_pci_attach()
247 ida->regs_res_type = SYS_RES_MEMORY; in ida_pci_attach()
248 ida->regs_res_id = IDA_PCI_MEMADDR; in ida_pci_attach()
250 ida->regs_res_id = PCIR_BAR(0); in ida_pci_attach()
252 ida->regs = bus_alloc_resource_any(dev, ida->regs_res_type, in ida_pci_attach()
253 &ida->regs_res_id, RF_ACTIVE); in ida_pci_attach()
254 if (ida->regs == NULL) { in ida_pci_attach()
273 &ida->parent_dmat); in ida_pci_attach()
281 ida->irq_res_type = SYS_RES_IRQ; in ida_pci_attach()
282 ida->irq = bus_alloc_resource_any(dev, ida->irq_res_type, &rid, in ida_pci_attach()
284 if (ida->irq == NULL) { in ida_pci_attach()
288 error = bus_setup_intr(dev, ida->irq, INTR_TYPE_BIO | INTR_ENTROPY | INTR_MPSAFE, in ida_pci_attach()
289 NULL, ida_intr, ida, &ida->ih); in ida_pci_attach()
307 nitems(board_id) - 1);