cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

dma-mapping.h (336B)


      1/* SPDX-License-Identifier: GPL-2.0 */
      2#ifndef ___ASM_SPARC_DMA_MAPPING_H
      3#define ___ASM_SPARC_DMA_MAPPING_H
      4
      5extern const struct dma_map_ops *dma_ops;
      6
      7static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
      8{
      9	/* sparc32 uses per-device dma_ops */
     10	return IS_ENABLED(CONFIG_SPARC64) ? dma_ops : NULL;
     11}
     12
     13#endif