hwprobe.h (3fd6c59042dbba50391e30862beac979491145fe) | hwprobe.h (d1703dc7bc8ec7adb91f5ceaf1556ff1ed212858) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2/* 3 * Copyright 2023 Rivos, Inc 4 */ 5 6#ifndef _ASM_HWPROBE_H 7#define _ASM_HWPROBE_H 8 9#include <uapi/asm/hwprobe.h> 10 | 1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2/* 3 * Copyright 2023 Rivos, Inc 4 */ 5 6#ifndef _ASM_HWPROBE_H 7#define _ASM_HWPROBE_H 8 9#include <uapi/asm/hwprobe.h> 10 |
11#define RISCV_HWPROBE_MAX_KEY 9 | 11#define RISCV_HWPROBE_MAX_KEY 10 |
12 13static inline bool riscv_hwprobe_key_is_valid(__s64 key) 14{ 15 return key >= 0 && key <= RISCV_HWPROBE_MAX_KEY; 16} 17 18static inline bool hwprobe_key_is_bitmask(__s64 key) 19{ --- 23 unchanged lines hidden --- | 12 13static inline bool riscv_hwprobe_key_is_valid(__s64 key) 14{ 15 return key >= 0 && key <= RISCV_HWPROBE_MAX_KEY; 16} 17 18static inline bool hwprobe_key_is_bitmask(__s64 key) 19{ --- 23 unchanged lines hidden --- |