1 /****************************************************************************
3 * Copyright 1999-2005 ATI Technologies Inc., Markham, Ontario, CANADA. *
4 * All Rights Reserved. *
6 * Your use and or redistribution of this software in source and \ or *
7 * binary form, with or without modification, is subject to: (i) your *
8 * ongoing acceptance of and compliance with the terms and conditions of *
9 * the ATI Technologies Inc. software End User License Agreement; and (ii) *
10 * your inclusion of this notice in any version of this software that you *
11 * use or redistribute. A copy of the ATI Technologies Inc. software End *
12 * User License Agreement is included with this software and is also *
13 * available by contacting ATI Technologies Inc. at http://www.ati.com *
15 ****************************************************************************/
18 * \brief Protocol definitions for the ATI POWERplay extension
19 * \author Felix Kuehling
22 #ifndef __FGLRX_PP_PROTO_H
23 #define __FGLRX_PP_PROTO_H
26 #define XREP_SZ(name) sizeof(x##name##Reply)
29 #define XREQ_SZ(name) sizeof(x##name##Req)
32 #define X_FGLQueryPowerPlayInfo 13
33 #define X_FGLQueryPowerState 14
34 #define X_FGLSetPowerState 15
36 /*****************************************************************************
37 * FGLQueryPowerPlayInfo */
38 typedef struct _FGLQueryPowerPlayInfo {
44 } xFGLQueryPowerPlayInfoReq;
47 BYTE type; /* X_Reply */
49 CARD16 sequenceNumber B16;
52 CARD16 extVersion B16;
53 CARD16 extRevision B16;
55 CARD16 numPowerStates B16;
60 } xFGLQueryPowerPlayInfoReply;
62 #define sz_xFGLQueryPowerPlayInfoReq XREQ_SZ(FGLQueryPowerPlayInfo)
63 #define sz_xFGLQueryPowerPlayInfoReply XREP_SZ(FGLQueryPowerPlayInfo)
65 /*****************************************************************************
66 * FGLQueryPowerState */
67 typedef struct _FGLQueryPowerState {
75 } xFGLQueryPowerStateReq;
78 BYTE type; /* X_Reply */
80 CARD16 sequenceNumber B16;
84 CARD32 validEvents B32;
87 CARD32 refreshRate B32;
88 CARD16 upperTempLimit B16;
89 CARD16 lowerTempLimit B16;
90 CARD16 nextUpperTempState B16;
91 CARD16 nextLowerTempState B16;
92 } xFGLQueryPowerStateReply;
94 #define sz_xFGLQueryPowerStateReq XREQ_SZ(FGLQueryPowerState)
95 #define sz_xFGLQueryPowerStateReply XREP_SZ(FGLQueryPowerState)
97 /*****************************************************************************
99 typedef struct _FGLSetPowerState {
107 } xFGLSetPowerStateReq;
110 BYTE type; /* X_Reply */
112 CARD16 sequenceNumber B16;
121 } xFGLSetPowerStateReply;
123 #define sz_xFGLSetPowerStateReq XREQ_SZ(FGLSetPowerState)
124 #define sz_xFGLSetPowerStateReply XREP_SZ(FGLSetPowerState)
126 #endif /* __FGLRX_PP_PROTO_H */