GNU Linux-libre 4.4.289-gnu1
[releases.git] / drivers / cpufreq / powernow-k7.h
1 /*
2  *  (C) 2003 Dave Jones.
3  *
4  *  Licensed under the terms of the GNU GPL License version 2.
5  *
6  *  AMD-specific information
7  *
8  */
9
10 union msr_fidvidctl {
11         struct {
12                 unsigned FID:5,                 // 4:0
13                 reserved1:3,    // 7:5
14                 VID:5,                  // 12:8
15                 reserved2:3,    // 15:13
16                 FIDC:1,                 // 16
17                 VIDC:1,                 // 17
18                 reserved3:2,    // 19:18
19                 FIDCHGRATIO:1,  // 20
20                 reserved4:11,   // 31-21
21                 SGTC:20,                // 32:51
22                 reserved5:12;   // 63:52
23         } bits;
24         unsigned long long val;
25 };
26
27 union msr_fidvidstatus {
28         struct {
29                 unsigned CFID:5,                        // 4:0
30                 reserved1:3,    // 7:5
31                 SFID:5,                 // 12:8
32                 reserved2:3,    // 15:13
33                 MFID:5,                 // 20:16
34                 reserved3:11,   // 31:21
35                 CVID:5,                 // 36:32
36                 reserved4:3,    // 39:37
37                 SVID:5,                 // 44:40
38                 reserved5:3,    // 47:45
39                 MVID:5,                 // 52:48
40                 reserved6:11;   // 63:53
41         } bits;
42         unsigned long long val;
43 };