2
* Copyright 2006 by VMware, Inc.
4
* Permission is hereby granted, free of charge, to any person obtaining a
5
* copy of this software and associated documentation files (the "Software"),
6
* to deal in the Software without restriction, including without limitation
7
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
8
* and/or sell copies of the Software, and to permit persons to whom the
9
* Software is furnished to do so, subject to the following conditions:
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
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20
* OTHER DEALINGS IN THE SOFTWARE.
22
* Except as contained in this notice, the name of the copyright holder(s)
23
* and author(s) shall not be used in advertising or otherwise to promote
24
* the sale, use or other dealings in this Software without prior written
25
* authorization from the copyright holder(s) and author(s).
29
* vmwarectrlproto.h --
31
* The description of the VMWARE_CTRL protocol extension that
32
* allows X clients to communicate with the driver.
35
#ifndef _VMWARE_CTRL_PROTO_H_
36
#define _VMWARE_CTRL_PROTO_H_
40
#include "vmwarectrl.h"
44
* Requests and Replies
47
/* Version 0.1 definitions. */
50
CARD8 reqType; /* always X_VMwareCtrlReqCode */
51
CARD8 VMwareCtrlReqType; /* always X_VMwareCtrlQueryVersion */
53
CARD32 majorVersion B32;
54
CARD32 minorVersion B32;
55
} xVMwareCtrlQueryVersionReq;
56
#define sz_xVMwareCtrlQueryVersionReq 12
59
BYTE type; /* X_Reply */
61
CARD16 sequenceNumber B16;
63
CARD32 majorVersion B32;
64
CARD32 minorVersion B32;
69
} xVMwareCtrlQueryVersionReply;
70
#define sz_xVMwareCtrlQueryVersionReply 32
73
CARD8 reqType; /* always X_VMwareCtrlReqCode */
74
CARD8 VMwareCtrlReqType; /* always X_VMwareCtrlSetRes */
79
} xVMwareCtrlSetResReq;
80
#define sz_xVMwareCtrlSetResReq 16
83
BYTE type; /* X_Reply */
85
CARD16 sequenceNumber B16;
93
} xVMwareCtrlSetResReply;
94
#define sz_xVMwareCtrlSetResReply 32
96
/* Version 0.2 definitions. */
99
CARD8 reqType; /* always X_VMwareCtrlReqCode */
100
CARD8 VMwareCtrlReqType; /* always X_VMwareCtrlSetTopology */
105
} xVMwareCtrlSetTopologyReq;
106
#define sz_xVMwareCtrlSetTopologyReq 16
109
BYTE type; /* X_Reply */
111
CARD16 sequenceNumber B16;
119
} xVMwareCtrlSetTopologyReply;
120
#define sz_xVMwareCtrlSetTopologyReply 32
122
#endif /* _VMWARE_CTRL_PROTO_H_ */