fbpmstr.h revision 258
1029N/A/* Copyright 1999 Sun Microsystems, Inc. All rights reserved.
1029N/A *
1339N/A * Permission is hereby granted, free of charge, to any person obtaining a
1029N/A * copy of this software and associated documentation files (the
1402N/A * "Software"), to deal in the Software without restriction, including
1029N/A * without limitation the rights to use, copy, modify, merge, publish,
1029N/A * distribute, and/or sell copies of the Software, and to permit persons
1075N/A * to whom the Software is furnished to do so, provided that the above
1075N/A * copyright notice(s) and this permission notice appear in all copies of
1075N/A * the Software and that both the above copyright notice(s) and this
1075N/A * permission notice appear in supporting documentation.
1075N/A *
1075N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1075N/A * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1075N/A * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
1075N/A * OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
1075N/A * HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
1075N/A * INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
1075N/A * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
1075N/A * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
1075N/A * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1075N/A *
1075N/A * Except as contained in this notice, the name of a copyright holder
1075N/A * shall not be used in advertising or otherwise to promote the sale, use
1029N/A * or other dealings in this Software without prior written authorization
1029N/A * of the copyright holder.
1029N/A */
1029N/A
1029N/A#pragma ident "@(#)fbpmstr.h 1.4 07/12/04 SMI"
1029N/A
1370N/A
1029N/A#define X_FBPMGetVersion 0
1029N/A#define X_FBPMCapable 1
1370N/A#define X_FBPMEnable 4
1370N/A#define X_FBPMDisable 5
1370N/A#define X_FBPMForceLevel 6
1029N/A#define X_FBPMInfo 7
1029N/A
1029N/A#define FBPMNumberEvents 0
1029N/A
1029N/A#define FBPMNumberErrors 0
1339N/A
1123N/A#define FBPMMajorVersion 1
1123N/A#define FBPMMinorVersion 1
1029N/A
1029N/A#define FBPMExtensionName "FBPM"
1276N/A
1351N/Atypedef struct {
1029N/A CARD8 reqType; /* always FBPMCode */
1132N/A CARD8 fbpmReqType; /* always X_FBPMGetVersion */
1132N/A CARD16 length B16;
1132N/A CARD16 majorVersion B16;
1029N/A CARD16 minorVersion B16;
1029N/A} xFBPMGetVersionReq;
1029N/A#define sz_xFBPMGetVersionReq 8
1029N/A
1402N/Atypedef struct {
1351N/A BYTE type; /* X_Reply */
1402N/A CARD8 pad0;
1402N/A CARD16 sequenceNumber B16;
1351N/A CARD32 length B32;
1029N/A CARD16 majorVersion B16;
1075N/A CARD16 minorVersion B16;
1029N/A CARD32 pad1 B32;
1029N/A CARD32 pad2 B32;
1029N/A CARD32 pad3 B32;
1029N/A CARD32 pad4 B32;
1029N/A CARD32 pad5 B32;
1029N/A} xFBPMGetVersionReply;
1029N/A#define sz_xFBPMGetVersionReply 32
1029N/A
1029N/Atypedef struct {
1029N/A CARD8 reqType; /* always FBPMCode */
1029N/A CARD8 fbpmReqType; /* always X_FBPMCapable */
1029N/A CARD16 length B16;
1029N/A} xFBPMCapableReq;
1029N/A#define sz_xFBPMCapableReq 4
1029N/A
1029N/Atypedef struct {
1029N/A BYTE type; /* X_Reply */
1029N/A CARD8 pad0;
1029N/A CARD16 sequenceNumber B16;
1029N/A CARD32 length B32;
1029N/A BOOL capable;
1029N/A CARD8 pad1;
1029N/A CARD16 pad2 B16;
1029N/A CARD32 pad3 B32;
1029N/A CARD32 pad4 B32;
1029N/A CARD32 pad5 B32;
1029N/A CARD32 pad6 B32;
1029N/A CARD32 pad7 B32;
1029N/A} xFBPMCapableReply;
1029N/A#define sz_xFBPMCapableReply 32
1029N/A
1029N/Atypedef struct {
1029N/A CARD8 reqType; /* always FBPMCode */
1029N/A CARD8 fbpmReqType; /* always X_FBPMEnable */
1029N/A CARD16 length B16;
1029N/A CARD16 level B16; /* power level requested */
1029N/A CARD16 pad0 B16;
1029N/A
1351N/A} xFBPMEnableReq;
1351N/A#define sz_xFBPMEnableReq 8
1351N/A
1029N/Atypedef struct {
1351N/A CARD8 reqType; /* always FBPMCode */
1351N/A CARD8 fbpmReqType; /* always X_FBPMDisable */
1351N/A CARD16 length B16;
1351N/A} xFBPMDisableReq;
1402N/A#define sz_xFBPMDisableReq 4
1351N/A
1402N/Atypedef struct {
1422N/A CARD8 reqType; /* always FBPMCode */
1351N/A CARD8 fbpmReqType; /* always X_FBPMInfo */
1402N/A CARD16 length B16;
1402N/A} xFBPMInfoReq;
1402N/A#define sz_xFBPMInfoReq 4
1402N/A
1422N/Atypedef struct {
BYTE type; /* X_Reply */
CARD8 pad0;
CARD16 sequenceNumber B16;
CARD32 length B32;
CARD16 power_level B16;
BOOL state;
CARD8 pad1;
CARD32 pad2 B32;
CARD32 pad3 B32;
CARD32 pad4 B32;
CARD32 pad5 B32;
CARD32 pad6 B32;
} xFBPMInfoReply;
#define sz_xFBPMInfoReply 32
typedef struct {
CARD8 reqType; /* always FBPMCode */
CARD8 fbpmReqType; /* always X_FBPMForceLevel */
CARD16 length B16;
CARD16 level B16; /* power level requested */
CARD16 pad0 B16;
} xFBPMForceLevelReq;
#define sz_xFBPMForceLevelReq 8