VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.14.0/misyncstr.h

最後變更 在這個檔案是 45134,由 vboxsync 提交於 12 年 前

Additions/X11: build vboxvideo_drv.so for X.Org Server 1.14.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.1 KB
 
1/*
2 * Copyright © 2010 NVIDIA Corporation
3 *
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:
10 *
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 */
23
24#ifdef HAVE_DIX_CONFIG_H
25#include <dix-config.h>
26#endif
27
28#ifndef _MISYNCSTR_H_
29#define _MISYNCSTR_H_
30
31#include "dix.h"
32#include <X11/extensions/syncconst.h>
33
34#define CARD64 XSyncValue /* XXX temporary! need real 64 bit values for Alpha */
35
36/* Sync object types */
37#define SYNC_COUNTER 0
38#define SYNC_FENCE 1
39
40typedef struct _SyncObject {
41 ClientPtr client; /* Owning client. 0 for system counters */
42 struct _SyncTriggerList *pTriglist; /* list of triggers */
43 XID id; /* resource ID */
44 unsigned char type; /* SYNC_* */
45 Bool beingDestroyed; /* in process of going away */
46} SyncObject;
47
48typedef struct _SyncCounter {
49 SyncObject sync; /* Common sync object data */
50 CARD64 value; /* counter value */
51 struct _SysCounterInfo *pSysCounterInfo; /* NULL if not a system counter */
52} SyncCounter;
53
54struct _SyncFence {
55 SyncObject sync; /* Common sync object data */
56 ScreenPtr pScreen; /* Screen of this fence object */
57 SyncFenceFuncsRec funcs; /* Funcs for performing ops on fence */
58 Bool triggered; /* fence state */
59 PrivateRec *devPrivates; /* driver-specific per-fence data */
60};
61
62struct _SyncTrigger {
63 SyncObject *pSync;
64 CARD64 wait_value; /* wait value */
65 unsigned int value_type; /* Absolute or Relative */
66 unsigned int test_type; /* transition or Comparision type */
67 CARD64 test_value; /* trigger event threshold value */
68 Bool (*CheckTrigger) (struct _SyncTrigger * /*pTrigger */ ,
69 CARD64 /*newval */
70 );
71 void (*TriggerFired) (struct _SyncTrigger * /*pTrigger */
72 );
73 void (*CounterDestroyed) (struct _SyncTrigger * /*pTrigger */
74 );
75};
76
77typedef struct _SyncTriggerList {
78 SyncTrigger *pTrigger;
79 struct _SyncTriggerList *next;
80} SyncTriggerList;
81
82#endif /* _MISYNCSTR_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette