|
@@ -15,15 +15,6 @@
|
|
* Generic iommu implementation
|
|
* Generic iommu implementation
|
|
*/
|
|
*/
|
|
|
|
|
|
-static inline unsigned long device_to_mask(struct device *dev)
|
|
|
|
-{
|
|
|
|
- if (dev->dma_mask && *dev->dma_mask)
|
|
|
|
- return *dev->dma_mask;
|
|
|
|
- /* Assume devices without mask can take 32 bit addresses */
|
|
|
|
- return 0xfffffffful;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
/* Allocates a contiguous real buffer and creates mappings over it.
|
|
/* Allocates a contiguous real buffer and creates mappings over it.
|
|
* Returns the virtual address of the buffer and sets dma_handle
|
|
* Returns the virtual address of the buffer and sets dma_handle
|
|
* to the dma address (mapping) of the first page.
|
|
* to the dma address (mapping) of the first page.
|