hc
2023-05-26 a23f51ed7a39e452c1037343a84d7db1ca2c5bd7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/* SPDX-License-Identifier: GPL-2.0 */
 
/*  --------------------------------------------------------------------------------------------------------
 *  File:   server_sync_primitive.h
 *  --------------------------------------------------------------------------------------------------------
 */
 
 
#ifndef __SERVER_SYNC_PRIMITIVE_H__
#define __SERVER_SYNC_PRIMITIVE_H__
 
#ifdef __cplusplus
extern "C" {
#endif
 
/* ---------------------------------------------------------------------------------------------------------
 *  Include Files
 * ---------------------------------------------------------------------------------------------------------
 */
 
#include "lock_types.h"
#include "dllist.h"
#include "powervr/sync_external.h"
#include "pvrsrv_device_node.h"
 
/* ---------------------------------------------------------------------------------------------------------
 *  Macros Definition
 * ---------------------------------------------------------------------------------------------------------
 */
 
/* ---------------------------------------------------------------------------------------------------------
 *  Types and Structures Definition
 * ---------------------------------------------------------------------------------------------------------
 */
 
struct _SERVER_SYNC_PRIMITIVE_ {
   PVRSRV_DEVICE_NODE        *psDevNode;
   PVRSRV_CLIENT_SYNC_PRIM *psSync;
   IMG_UINT32                ui32NextOp;
   IMG_UINT32                ui32RefCount;
   IMG_UINT32                ui32UID;
   IMG_UINT32                ui32LastSyncRequesterID;
   DLLIST_NODE                sNode;
   /* PDump only data */
   IMG_BOOL                bSWOperation;
   IMG_BOOL                bSWOpStartedInCaptRange;
   IMG_UINT32                ui32LastHWUpdate;
   IMG_BOOL                bPDumped;
   POS_LOCK                hLock;
   IMG_CHAR                szClassName[SYNC_MAX_CLASS_NAME_LEN];
};
typedef struct _SERVER_SYNC_PRIMITIVE_ SERVER_SYNC_PRIMITIVE;
 
/* ---------------------------------------------------------------------------------------------------------
 *  Global Functions' Prototype
 * ---------------------------------------------------------------------------------------------------------
 */
 
 
/* ---------------------------------------------------------------------------------------------------------
 *  Inline Functions Implementation
 * ---------------------------------------------------------------------------------------------------------
 */
 
#ifdef __cplusplus
}
#endif
 
#endif /* __SERVER_SYNC_PRIMITIVE_H__ */