/* * Load a MCPCIA SGMAP-mapped DMA map with a uio. */ int mcpcia_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags) { int error; struct mcpcia_config *ccp = t->_cookie; error = pci_sgmap_pte64_load_uio(t, map, uio, flags, t->_sgmap); if (error == 0) MCPCIA_SGTLB_INVALIDATE(ccp); return (error); }
/* * Load a TSP SGMAP-mapped DMA map with a uio. */ int tsp_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags) { int error; error = pci_sgmap_pte64_load_uio(t, map, uio, flags, t->_sgmap); if (error == 0) tsp_tlb_invalidate(t->_cookie); return (error); }
/* * Load a T2 SGMAP-mapped DMA map with a uio. */ int ttwoga_bus_dmamap_load_uio_sgmap(bus_dma_tag_t t, bus_dmamap_t map, struct uio *uio, int flags) { struct ttwoga_config *tcp = t->_cookie; int error; error = pci_sgmap_pte64_load_uio(t, map, uio, flags, t->_sgmap); if (error == 0 && tcp->tc_use_tlb) TTWOGA_TLB_INVALIDATE(tcp); return (error); }