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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
/* SPDX-License-Identifier: GPL-2.0 */
 
/*  --------------------------------------------------------------------------------------------------------
 *  File:   connection_data.h
 *  --------------------------------------------------------------------------------------------------------
 */
 
#ifndef __CONNECTION_DATA_H__
#define __CONNECTION_DATA_H__
 
#ifdef __cplusplus
extern "C" {
#endif
 
/* ---------------------------------------------------------------------------------------------------------
 *  Include Files
 * ---------------------------------------------------------------------------------------------------------
 */
// #include <linux/kernel.h>
 
#include "handle.h"
#include "img_types.h"
#include "pvrsrv_cleanup.h"
 
 
/* ---------------------------------------------------------------------------------------------------------
 *  Macros Definition
 * ---------------------------------------------------------------------------------------------------------
 */
 
 
/* ---------------------------------------------------------------------------------------------------------
 *  Types and Structures Definition
 * ---------------------------------------------------------------------------------------------------------
 */
typedef struct _CONNECTION_DATA_ {
   PVRSRV_HANDLE_BASE        *psHandleBase;
   PROCESS_HANDLE_BASE        *psProcessHandleBase;
   struct _SYNC_CONNECTION_DATA_    *psSyncConnectionData;
   struct _PDUMP_CONNECTION_DATA_    *psPDumpConnectionData;
 
   /* Holds the client flags supplied at connection time */
   IMG_UINT32            ui32ClientFlags;
 
   /*
    * OS specific data can be stored via this handle.
    * See osconnection_server.h for a generic mechanism
    * for initialising this field.
    */
   IMG_HANDLE            hOsPrivateData;
 
   IMG_PID                pid;
 
   void                *hSecureData;
 
   IMG_HANDLE            hProcessStats;
 
   IMG_HANDLE            hClientTLStream;
 
   /* Structure which is hooked into the cleanup thread work list */
   PVRSRV_CLEANUP_THREAD_WORK sCleanupThreadFn;
 
   /* List navigation for deferred freeing of connection data */
   struct _CONNECTION_DATA_    **ppsThis;
   struct _CONNECTION_DATA_    *psNext;
} CONNECTION_DATA;
 
/* ---------------------------------------------------------------------------------------------------------
 *  Global Functions' Prototype
 * ---------------------------------------------------------------------------------------------------------
 */
 
 
/* ---------------------------------------------------------------------------------------------------------
 *  Inline Functions Implementation
 * ---------------------------------------------------------------------------------------------------------
 */
 
#ifdef __cplusplus
}
#endif
 
#endif /* __CONNECTION_DATA_H__ */