platform-feature.h (596B)
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _PLATFORM_FEATURE_H 3#define _PLATFORM_FEATURE_H 4 5#include <linux/bitops.h> 6#include <asm/platform-feature.h> 7 8/* The platform features are starting with the architecture specific ones. */ 9 10/* Used to enable platform specific DMA handling for virtio devices. */ 11#define PLATFORM_VIRTIO_RESTRICTED_MEM_ACCESS (0 + PLATFORM_ARCH_FEAT_N) 12 13#define PLATFORM_FEAT_N (1 + PLATFORM_ARCH_FEAT_N) 14 15void platform_set(unsigned int feature); 16void platform_clear(unsigned int feature); 17bool platform_has(unsigned int feature); 18 19#endif /* _PLATFORM_FEATURE_H */