Lines Matching +full:dma +full:- +full:window

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
7 * Copyright (c) 2001-2010 Adaptec, Inc.
8 * Copyright (c) 2010-2012 PMC-Sierra, Inc.
106 nitems(aacraid_family_identifiers) - 1);
118 for (m = aacraid_family_identifiers; m->vendor != 0; m++) { in aac_find_ident()
119 if ((m->vendor == vendid) && (m->device == devid)) in aac_find_ident()
137 device_set_desc(dev, id->desc); in aacraid_pci_probe()
161 sc->aac_dev = dev; in aacraid_pci_attach()
170 command = pci_read_config(sc->aac_dev, PCIR_COMMAND, 2); in aacraid_pci_attach()
172 device_printf(sc->aac_dev, "can't enable bus-master feature\n"); in aacraid_pci_attach()
181 sc->aac_hwif = id->hwif; in aacraid_pci_attach()
182 switch(sc->aac_hwif) { in aacraid_pci_attach()
185 sc->aac_if = aacraid_src_interface; in aacraid_pci_attach()
189 sc->aac_if = aacraid_srcv_interface; in aacraid_pci_attach()
192 sc->aac_hwif = AAC_HWIF_UNKNOWN; in aacraid_pci_attach()
193 device_printf(sc->aac_dev, "unknown hardware type\n"); in aacraid_pci_attach()
202 * Allocate the PCI register window. in aacraid_pci_attach()
204 sc->aac_regs_rid0 = PCIR_BAR(0); in aacraid_pci_attach()
205 if ((sc->aac_regs_res0 = bus_alloc_resource_any(sc->aac_dev, in aacraid_pci_attach()
206 SYS_RES_MEMORY, &sc->aac_regs_rid0, RF_ACTIVE)) == NULL) { in aacraid_pci_attach()
207 device_printf(sc->aac_dev, in aacraid_pci_attach()
208 "couldn't allocate register window 0\n"); in aacraid_pci_attach()
211 sc->aac_btag0 = rman_get_bustag(sc->aac_regs_res0); in aacraid_pci_attach()
212 sc->aac_bhandle0 = rman_get_bushandle(sc->aac_regs_res0); in aacraid_pci_attach()
214 sc->aac_regs_rid1 = PCIR_BAR(2); in aacraid_pci_attach()
215 if ((sc->aac_regs_res1 = bus_alloc_resource_any(sc->aac_dev, in aacraid_pci_attach()
216 SYS_RES_MEMORY, &sc->aac_regs_rid1, RF_ACTIVE)) == NULL) { in aacraid_pci_attach()
217 device_printf(sc->aac_dev, in aacraid_pci_attach()
218 "couldn't allocate register window 1\n"); in aacraid_pci_attach()
221 sc->aac_btag1 = rman_get_bustag(sc->aac_regs_res1); in aacraid_pci_attach()
222 sc->aac_bhandle1 = rman_get_bushandle(sc->aac_regs_res1); in aacraid_pci_attach()
225 * Allocate the parent bus DMA tag appropriate for our PCI interface. in aacraid_pci_attach()
227 * Note that some of these controllers are 64-bit capable. in aacraid_pci_attach()
239 &sc->aac_parent_dmat)) { in aacraid_pci_attach()
240 device_printf(sc->aac_dev, "can't allocate parent DMA tag\n"); in aacraid_pci_attach()
245 sc->flags = id->quirks; in aacraid_pci_attach()
248 * Do bus-independent initialisation. in aacraid_pci_attach()