forked from LLNL/msr-safe
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmsr_version.h
47 lines (37 loc) · 1.25 KB
/
msr_version.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright 2011-2021 Lawrence Livermore National Security, LLC and other
// msr-safe Project Developers. See the top-level COPYRIGHT file for
// details.
//
// SPDX-License-Identifier: GPL-2.0-only
/*
* Internal declarations for x86 MSR version implementation functions.
*
* Thank you to everyone who has contributed and helped with this project:
*
* Kathleen Shoga, Peter Bailey, Trent D'Hooge, Jim Foraker, David Lowenthal
* Tapasya Patki, Barry Rountree, Kendrick Shaw, Marty McFadden
*/
#ifndef _ARCH_X68_KERNEL_MSR_VERSION_HEADER_INCLUDE
#define _ARCH_X68_KERNEL_MSR_VERSION_HEADER_INCLUDE
#include <linux/types.h>
int msr_version_init(int *majordev);
void msr_version_cleanup(int majordev);
#define MSR_SAFE_VERSION_MAJOR 1
#define MSR_SAFE_VERSION_MINOR 8
#define MSR_SAFE_VERSION_PATCH 0
#define MSR_SAFE_VERSION_u32 ( \
( MSR_SAFE_VERSION_MAJOR << 16 ) \
| ( MSR_SAFE_VERSION_MINOR << 8 ) \
| ( MSR_SAFE_VERSION_PATCH << 0 ) )
#define MAKESTRING( s ) #s
#define MAKE_VERSION_STRING(major,minor,patch) \
MAKESTRING( major ) \
"." \
MAKESTRING( minor ) \
"." \
MAKESTRING( patch )
#define MSR_SAFE_VERSION_STR MAKE_VERSION_STRING(\
MSR_SAFE_VERSION_MAJOR,\
MSR_SAFE_VERSION_MINOR,\
MSR_SAFE_VERSION_PATCH)
#endif