1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 #ifndef SELFTEST_RISCV_HWPROBE_H 3 #define SELFTEST_RISCV_HWPROBE_H 4 #include <stddef.h> 5 #include <asm/hwprobe.h> 6 7 /* 8 * Rather than relying on having a new enough libc to define this, just do it 9 * ourselves. This way we don't need to be coupled to a new-enough libc to 10 * contain the call. 11 */ 12 long riscv_hwprobe(struct riscv_hwprobe *pairs, size_t pair_count, 13 size_t cpu_count, unsigned long *cpus, unsigned int flags); 14 15 #endif 16