diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mn10300/pci.h | 9 | ||||
-rw-r--r-- | include/asm-mn10300/scatterlist.h | 9 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/asm-mn10300/pci.h b/include/asm-mn10300/pci.h index 205192c52bb5..cd9cc5c89cea 100644 --- a/include/asm-mn10300/pci.h +++ b/include/asm-mn10300/pci.h | |||
@@ -74,15 +74,6 @@ struct pci_dev; | |||
74 | /* This is always fine. */ | 74 | /* This is always fine. */ |
75 | #define pci_dac_dma_supported(pci_dev, mask) (0) | 75 | #define pci_dac_dma_supported(pci_dev, mask) (0) |
76 | 76 | ||
77 | /* | ||
78 | * These macros should be used after a pci_map_sg call has been done | ||
79 | * to get bus addresses of each of the SG entries and their lengths. | ||
80 | * You should only work with the number of sg entries pci_map_sg | ||
81 | * returns. | ||
82 | */ | ||
83 | #define sg_dma_address(sg) ((sg)->dma_address) | ||
84 | #define sg_dma_len(sg) ((sg)->length) | ||
85 | |||
86 | /* Return the index of the PCI controller for device. */ | 77 | /* Return the index of the PCI controller for device. */ |
87 | static inline int pci_controller_num(struct pci_dev *dev) | 78 | static inline int pci_controller_num(struct pci_dev *dev) |
88 | { | 79 | { |
diff --git a/include/asm-mn10300/scatterlist.h b/include/asm-mn10300/scatterlist.h index e29d91dbcf2b..67535901b9ff 100644 --- a/include/asm-mn10300/scatterlist.h +++ b/include/asm-mn10300/scatterlist.h | |||
@@ -43,4 +43,13 @@ struct scatterlist { | |||
43 | 43 | ||
44 | #define ISA_DMA_THRESHOLD (0x00ffffff) | 44 | #define ISA_DMA_THRESHOLD (0x00ffffff) |
45 | 45 | ||
46 | /* | ||
47 | * These macros should be used after a pci_map_sg call has been done | ||
48 | * to get bus addresses of each of the SG entries and their lengths. | ||
49 | * You should only work with the number of sg entries pci_map_sg | ||
50 | * returns. | ||
51 | */ | ||
52 | #define sg_dma_address(sg) ((sg)->dma_address) | ||
53 | #define sg_dma_len(sg) ((sg)->length) | ||
54 | |||
46 | #endif /* _ASM_SCATTERLIST_H */ | 55 | #endif /* _ASM_SCATTERLIST_H */ |