1 // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/dma-direct.h> 3 4 dma_addr_t phys_to_dma(struct device *dev, phy 5 { 6 return paddr | 0x80000000; 7 } 8 9 phys_addr_t dma_to_phys(struct device *dev, dm 10 { 11 if (dma_addr > 0x8fffffff) 12 return dma_addr; 13 return dma_addr & 0x0fffffff; 14 } 15
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.