/* This is a special map_sg function which is used if we should map a device which is not handled by an AMD IOMMU in the system.  */
static int map_sg_no_iommu(struct device *dev, struct scatterlist *sglist, int nelems, int dir)
/* This is a special map_sg function which is used if we should map a device which is not handled by an AMD IOMMU in the system.  */
static int map_sg_no_iommu(struct device *dev, struct scatterlist *sglist, int nelems, int dir)
{
	struct scatterlist *s;
	int i;
	for_each_sg(sglist, s, nelems, i) {
		s->dma_address = (dma_addr_t)sg_phys(s);
		s->dma_length  = s->length;
	}
	return nelems;
}