1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 /* 3 * Copyright 2023 Rivos, Inc 4 */ 5 6 #ifndef _UAPI_ASM_HWPROBE_H 7 #define _UAPI_ASM_HWPROBE_H 8 9 #include <linux/types.h> 10 11 /* 12 * Interface for probing hardware capabilities from userspace, see 13 * Documentation/riscv/hwprobe.rst for more information. 14 */ 15 struct riscv_hwprobe { 16 __s64 key; 17 __u64 value; 18 }; 19 20 #define RISCV_HWPROBE_KEY_MVENDORID 0 21 #define RISCV_HWPROBE_KEY_MARCHID 1 22 #define RISCV_HWPROBE_KEY_MIMPID 2 23 /* Increase RISCV_HWPROBE_MAX_KEY when adding items. */ 24 25 #endif 26