]>
Commit | Line | Data |
---|---|---|
2d21ac55 A |
1 | /* |
2 | * Copyright (c) 2006-2007 Apple Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
0a7de745 | 5 | * |
2d21ac55 A |
6 | * This file contains Original Code and/or Modifications of Original Code |
7 | * as defined in and that are subject to the Apple Public Source License | |
8 | * Version 2.0 (the 'License'). You may not use this file except in | |
9 | * compliance with the License. Please obtain a copy of the License at | |
10 | * http://www.opensource.apple.com/apsl/ and read it before using this | |
11 | * file. | |
0a7de745 | 12 | * |
2d21ac55 A |
13 | * The Original Code and all software distributed under the License are |
14 | * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER | |
15 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, | |
16 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
17 | * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. | |
18 | * Please see the License for the specific language governing rights and | |
19 | * limitations under the License. | |
0a7de745 | 20 | * |
2d21ac55 A |
21 | * @APPLE_LICENSE_HEADER_END@ |
22 | */ | |
23 | ||
24 | /* DO NOT MODIFY THIS FILE | |
25 | * | |
26 | * This file is a partial mirror of | |
27 | * AppleIntelCPUPowerManagement/pmioctl.h | |
28 | * Changes may only be made to the original, pmioctl.h. | |
29 | * This file must be updated only when pmioctl.h changes. | |
30 | */ | |
0a7de745 | 31 | |
2d21ac55 A |
32 | /* |
33 | * Defines the IOCTLs for dealing with the CPU power management KEXT. | |
34 | */ | |
35 | #ifndef _IOPMROOTDOMAINIOCTLS_H_ | |
36 | #define _IOPMROOTDOMAINIOCTLS_H_ | |
37 | ||
38 | #include <sys/ioccom.h> | |
39 | #include <i386/pmCPU.h> | |
40 | ||
0a7de745 A |
41 | #define PMIOCGETVARIDINFO _IOW('P', 25, uint64_t) |
42 | #define PMIOCGETVARNAMEINFO _IOW('P', 26, uint64_t) | |
43 | #define PMIOCSETVARINFO _IOW('P', 27, uint64_t) | |
2d21ac55 A |
44 | |
45 | /* | |
46 | * Data structures used by IOCTLs | |
47 | */ | |
48 | #pragma pack(4) | |
49 | ||
0a7de745 | 50 | #define PMVARNAMELEN 16 |
2d21ac55 | 51 | |
0a7de745 A |
52 | typedef enum{ |
53 | vUnknown = 0, /* Unknown type */ | |
54 | vBool = 1, /* Boolean value */ | |
55 | vInt = 2, /* signed integer value */ | |
56 | vUInt = 3, /* Unsigned integer value */ | |
57 | vChars = 4, /* 8 characters */ | |
58 | vInvalid = -1 /* invalid type */ | |
2d21ac55 A |
59 | } pmioctlVarType_t; |
60 | ||
0a7de745 A |
61 | typedef struct pmioctlVaribleInfo { |
62 | uint32_t varID; /* ID of variable */ | |
63 | uint8_t varName[PMVARNAMELEN + 1]; | |
64 | pmioctlVarType_t varType; /* type of variable's value */ | |
65 | uint64_t varInitValue;/* variable's initial value */ | |
66 | uint64_t varCurValue;/* variable's current value */ | |
2d21ac55 A |
67 | } pmioctlVariableInfo_t; |
68 | ||
69 | #pragma pack() | |
70 | ||
71 | #endif /* _IOPMROOTDOMAINIOCTLS_H_ */ |