X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-mn10300%2Fscatterlist.h;h=67535901b9ffaf34e2ac366017313bf6dbd44da8;hb=7f37441c21d3ae9fec47ef418ccafb2823d12a27;hp=e29d91dbcf2b99fb82fc6b3ebdf8cbd52324f78c;hpb=dde0013782dbd09e1cc68ca03860f3a62b03cb34;p=linux-2.6 diff --git a/include/asm-mn10300/scatterlist.h b/include/asm-mn10300/scatterlist.h index e29d91dbcf..67535901b9 100644 --- a/include/asm-mn10300/scatterlist.h +++ b/include/asm-mn10300/scatterlist.h @@ -43,4 +43,13 @@ struct scatterlist { #define ISA_DMA_THRESHOLD (0x00ffffff) +/* + * These macros should be used after a pci_map_sg call has been done + * to get bus addresses of each of the SG entries and their lengths. + * You should only work with the number of sg entries pci_map_sg + * returns. + */ +#define sg_dma_address(sg) ((sg)->dma_address) +#define sg_dma_len(sg) ((sg)->length) + #endif /* _ASM_SCATTERLIST_H */