summaryrefslogtreecommitdiffstats
path: root/sys/sys/cpuctl.h
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-06-20 13:13:38 +0000
committerkib <kib@FreeBSD.org>2014-06-20 13:13:38 +0000
commitaf796366eb81db606f04f7bcb9363d26080b284b (patch)
treea96da53e534b64bb12c3124eaf81076623891ae1 /sys/sys/cpuctl.h
parent48fc86f80539c6362641bed31da3c45dc26a4bc8 (diff)
downloadFreeBSD-src-af796366eb81db606f04f7bcb9363d26080b284b.zip
FreeBSD-src-af796366eb81db606f04f7bcb9363d26080b284b.tar.gz
Restore the ABI of the cpuctl(4) ioctl request CPUCTL_CPUID, use
separate argument structure with added level_type field for CPUID_CPUID_COUNT request. Reviewed by: attilio (previous version) Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
Diffstat (limited to 'sys/sys/cpuctl.h')
-rw-r--r--sys/sys/cpuctl.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/sys/cpuctl.h b/sys/sys/cpuctl.h
index 4220dee..30af524 100644
--- a/sys/sys/cpuctl.h
+++ b/sys/sys/cpuctl.h
@@ -36,11 +36,16 @@ typedef struct {
typedef struct {
int level; /* CPUID level */
- int level_type; /* CPUID level type */
uint32_t data[4];
} cpuctl_cpuid_args_t;
typedef struct {
+ int level; /* CPUID level */
+ int level_type; /* CPUID level type */
+ uint32_t data[4];
+} cpuctl_cpuid_count_args_t;
+
+typedef struct {
void *data;
size_t size;
} cpuctl_update_args_t;
@@ -51,6 +56,6 @@ typedef struct {
#define CPUCTL_UPDATE _IOWR('c', 4, cpuctl_update_args_t)
#define CPUCTL_MSRSBIT _IOWR('c', 5, cpuctl_msr_args_t)
#define CPUCTL_MSRCBIT _IOWR('c', 6, cpuctl_msr_args_t)
-#define CPUCTL_CPUID_COUNT _IOWR('c', 7, cpuctl_cpuid_args_t)
+#define CPUCTL_CPUID_COUNT _IOWR('c', 7, cpuctl_cpuid_count_args_t)
#endif /* _CPUCTL_H_ */
OpenPOWER on IntegriCloud