fbpmstr.h revision 919
258N/A/* Copyright 1999 Sun Microsystems, Inc. All rights reserved.
919N/A * Use is subject to license terms.
258N/A *
258N/A * Permission is hereby granted, free of charge, to any person obtaining a
919N/A * copy of this software and associated documentation files (the "Software"),
919N/A * to deal in the Software without restriction, including without limitation
919N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense,
919N/A * and/or sell copies of the Software, and to permit persons to whom the
919N/A * Software is furnished to do so, subject to the following conditions:
258N/A *
919N/A * The above copyright notice and this permission notice (including the next
919N/A * paragraph) shall be included in all copies or substantial portions of the
919N/A * Software.
258N/A *
919N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
919N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
919N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
919N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
919N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
919N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
919N/A * DEALINGS IN THE SOFTWARE.
258N/A */
258N/A
258N/A
258N/A
258N/A#define X_FBPMGetVersion 0
258N/A#define X_FBPMCapable 1
258N/A#define X_FBPMEnable 4
258N/A#define X_FBPMDisable 5
258N/A#define X_FBPMForceLevel 6
258N/A#define X_FBPMInfo 7
258N/A
258N/A#define FBPMNumberEvents 0
258N/A
258N/A#define FBPMNumberErrors 0
258N/A
258N/A#define FBPMMajorVersion 1
258N/A#define FBPMMinorVersion 1
258N/A
258N/A#define FBPMExtensionName "FBPM"
258N/A
258N/Atypedef struct {
258N/A CARD8 reqType; /* always FBPMCode */
258N/A CARD8 fbpmReqType; /* always X_FBPMGetVersion */
258N/A CARD16 length B16;
258N/A CARD16 majorVersion B16;
258N/A CARD16 minorVersion B16;
258N/A} xFBPMGetVersionReq;
258N/A#define sz_xFBPMGetVersionReq 8
258N/A
258N/Atypedef struct {
258N/A BYTE type; /* X_Reply */
258N/A CARD8 pad0;
258N/A CARD16 sequenceNumber B16;
258N/A CARD32 length B32;
258N/A CARD16 majorVersion B16;
258N/A CARD16 minorVersion B16;
258N/A CARD32 pad1 B32;
258N/A CARD32 pad2 B32;
258N/A CARD32 pad3 B32;
258N/A CARD32 pad4 B32;
258N/A CARD32 pad5 B32;
258N/A} xFBPMGetVersionReply;
258N/A#define sz_xFBPMGetVersionReply 32
258N/A
258N/Atypedef struct {
258N/A CARD8 reqType; /* always FBPMCode */
258N/A CARD8 fbpmReqType; /* always X_FBPMCapable */
258N/A CARD16 length B16;
258N/A} xFBPMCapableReq;
258N/A#define sz_xFBPMCapableReq 4
258N/A
258N/Atypedef struct {
258N/A BYTE type; /* X_Reply */
258N/A CARD8 pad0;
258N/A CARD16 sequenceNumber B16;
258N/A CARD32 length B32;
258N/A BOOL capable;
258N/A CARD8 pad1;
258N/A CARD16 pad2 B16;
258N/A CARD32 pad3 B32;
258N/A CARD32 pad4 B32;
258N/A CARD32 pad5 B32;
258N/A CARD32 pad6 B32;
258N/A CARD32 pad7 B32;
258N/A} xFBPMCapableReply;
258N/A#define sz_xFBPMCapableReply 32
258N/A
258N/Atypedef struct {
258N/A CARD8 reqType; /* always FBPMCode */
258N/A CARD8 fbpmReqType; /* always X_FBPMEnable */
258N/A CARD16 length B16;
258N/A CARD16 level B16; /* power level requested */
258N/A CARD16 pad0 B16;
258N/A
258N/A} xFBPMEnableReq;
258N/A#define sz_xFBPMEnableReq 8
258N/A
258N/Atypedef struct {
258N/A CARD8 reqType; /* always FBPMCode */
258N/A CARD8 fbpmReqType; /* always X_FBPMDisable */
258N/A CARD16 length B16;
258N/A} xFBPMDisableReq;
258N/A#define sz_xFBPMDisableReq 4
258N/A
258N/Atypedef struct {
258N/A CARD8 reqType; /* always FBPMCode */
258N/A CARD8 fbpmReqType; /* always X_FBPMInfo */
258N/A CARD16 length B16;
258N/A} xFBPMInfoReq;
258N/A#define sz_xFBPMInfoReq 4
258N/A
258N/Atypedef struct {
258N/A BYTE type; /* X_Reply */
258N/A CARD8 pad0;
258N/A CARD16 sequenceNumber B16;
258N/A CARD32 length B32;
258N/A CARD16 power_level B16;
258N/A BOOL state;
258N/A CARD8 pad1;
258N/A CARD32 pad2 B32;
258N/A CARD32 pad3 B32;
258N/A CARD32 pad4 B32;
258N/A CARD32 pad5 B32;
258N/A CARD32 pad6 B32;
258N/A} xFBPMInfoReply;
258N/A#define sz_xFBPMInfoReply 32
258N/A
258N/Atypedef struct {
258N/A CARD8 reqType; /* always FBPMCode */
258N/A CARD8 fbpmReqType; /* always X_FBPMForceLevel */
258N/A CARD16 length B16;
258N/A CARD16 level B16; /* power level requested */
258N/A CARD16 pad0 B16;
258N/A} xFBPMForceLevelReq;
258N/A#define sz_xFBPMForceLevelReq 8
258N/A