1 /*****************************************************************
3 Copyright (c) 1996 Digital Equipment Corporation, Maynard, Massachusetts.
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software.
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
18 BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
19 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
20 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 Except as contained in this notice, the name of Digital Equipment Corporation
23 shall not be used in advertising or otherwise to promote the sale, use or other
24 dealings in this Software without prior written authorization from Digital
25 Equipment Corporation.
27 ******************************************************************/
33 * @(#)RCSfile: dpmsstr.h,v Revision: 1.1.4.2 (DEC) Date: 1995/11/21 19:34:19
37 #define X_DPMSGetVersion 0
38 #define X_DPMSCapable 1
39 #define X_DPMSGetTimeouts 2
40 #define X_DPMSSetTimeouts 3
41 #define X_DPMSEnable 4
42 #define X_DPMSDisable 5
43 #define X_DPMSForceLevel 6
46 #define DPMSNumberEvents 0
48 #define DPMSNumberErrors 0
50 #define DPMSMajorVersion 1
51 #define DPMSMinorVersion 1
53 #define DPMSExtensionName "DPMS"
56 CARD8 reqType; /* always DPMSCode */
57 CARD8 dpmsReqType; /* always X_DPMSGetVersion */
59 CARD16 majorVersion B16;
60 CARD16 minorVersion B16;
62 #define sz_xDPMSGetVersionReq 8
65 BYTE type; /* X_Reply */
67 CARD16 sequenceNumber B16;
69 CARD16 majorVersion B16;
70 CARD16 minorVersion B16;
76 } xDPMSGetVersionReply;
77 #define sz_xDPMSGetVersionReply 32
80 CARD8 reqType; /* always DPMSCode */
81 CARD8 dpmsReqType; /* always X_DPMSCapable */
84 #define sz_xDPMSCapableReq 4
87 BYTE type; /* X_Reply */
89 CARD16 sequenceNumber B16;
100 #define sz_xDPMSCapableReply 32
103 CARD8 reqType; /* always DPMSCode */
104 CARD8 dpmsReqType; /* always X_DPMSGetTimeouts */
106 } xDPMSGetTimeoutsReq;
107 #define sz_xDPMSGetTimeoutsReq 4
110 BYTE type; /* X_Reply */
112 CARD16 sequenceNumber B16;
122 } xDPMSGetTimeoutsReply;
123 #define sz_xDPMSGetTimeoutsReply 32
126 CARD8 reqType; /* always DPMSCode */
127 CARD8 dpmsReqType; /* always X_DPMSSetTimeouts */
133 } xDPMSSetTimeoutsReq;
134 #define sz_xDPMSSetTimeoutsReq 12
137 CARD8 reqType; /* always DPMSCode */
138 CARD8 dpmsReqType; /* always X_DPMSEnable */
141 #define sz_xDPMSEnableReq 4
144 CARD8 reqType; /* always DPMSCode */
145 CARD8 dpmsReqType; /* always X_DPMSDisable */
148 #define sz_xDPMSDisableReq 4
151 CARD8 reqType; /* always DPMSCode */
152 CARD8 dpmsReqType; /* always X_DPMSForceLevel */
154 CARD16 level B16; /* power level requested */
156 } xDPMSForceLevelReq;
157 #define sz_xDPMSForceLevelReq 8
160 CARD8 reqType; /* always DPMSCode */
161 CARD8 dpmsReqType; /* always X_DPMSInfo */
164 #define sz_xDPMSInfoReq 4
167 BYTE type; /* X_Reply */
169 CARD16 sequenceNumber B16;
171 CARD16 power_level B16;
180 #define sz_xDPMSInfoReply 32