cregit-Linux how code gets into the kernel

Release 4.10 arch/arc/include/asm/dma-mapping.h

/*
 * DMA Mapping glue for ARC
 *
 * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef ASM_ARC_DMA_MAPPING_H

#define ASM_ARC_DMA_MAPPING_H

#ifndef CONFIG_ARC_PLAT_NEEDS_PHYS_TO_DMA

#define plat_dma_to_phys(dev, dma_handle) ((phys_addr_t)(dma_handle))

#define plat_phys_to_dma(dev, paddr) ((dma_addr_t)(paddr))
#else
#include <plat/dma.h>
#endif

extern struct dma_map_ops arc_dma_ops;


static inline struct dma_map_ops *get_dma_ops(struct device *dev) { return &arc_dma_ops; }

Contributors

PersonTokensPropCommitsCommitProp
vineet guptavineet gupta1477.78%150.00%
christoph hellwigchristoph hellwig422.22%150.00%
Total18100.00%2100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
vineet guptavineet gupta5490.00%266.67%
christoph hellwigchristoph hellwig610.00%133.33%
Total60100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.