summaryrefslogtreecommitdiffstats
path: root/include/linux/platform-feature.h
blob: 6ed859928b97831b36dd52f919e36419347ac0fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _PLATFORM_FEATURE_H
#define _PLATFORM_FEATURE_H

#include <linux/bitops.h>
#include <asm/platform-feature.h>

/* The platform features are starting with the architecture specific ones. */
#define PLATFORM_FEAT_N				(0 + PLATFORM_ARCH_FEAT_N)

void platform_set(unsigned int feature);
void platform_clear(unsigned int feature);
bool platform_has(unsigned int feature);

#endif /* _PLATFORM_FEATURE_H */