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