xref: /linux/tools/testing/selftests/riscv/hwprobe/hwprobe.h (revision 576d7fed09c7edbae7600f29a8a3ed6c1ead904f)
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