sparc/iommu: create a common helper for map_sg