tinygrad 0.9.1__py3-none-any.whl → 0.10.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tinygrad/__init__.py +11 -6
- tinygrad/codegen/kernel.py +308 -175
- tinygrad/codegen/linearize.py +95 -0
- tinygrad/codegen/lowerer.py +143 -0
- tinygrad/codegen/transcendental.py +257 -0
- tinygrad/codegen/uopgraph.py +506 -0
- tinygrad/device.py +72 -171
- tinygrad/dtype.py +122 -47
- tinygrad/engine/jit.py +184 -87
- tinygrad/{lazy.py → engine/lazy.py} +74 -66
- tinygrad/engine/memory.py +51 -0
- tinygrad/engine/realize.py +86 -61
- tinygrad/engine/schedule.py +366 -317
- tinygrad/engine/search.py +58 -47
- tinygrad/function.py +59 -58
- tinygrad/helpers.py +120 -102
- tinygrad/multi.py +82 -78
- tinygrad/nn/__init__.py +116 -67
- tinygrad/nn/datasets.py +12 -5
- tinygrad/nn/optim.py +1 -1
- tinygrad/nn/state.py +91 -6
- tinygrad/ops.py +1126 -143
- tinygrad/renderer/__init__.py +47 -23
- tinygrad/renderer/cstyle.py +338 -265
- tinygrad/renderer/llvmir.py +125 -143
- tinygrad/renderer/ptx.py +225 -0
- tinygrad/runtime/autogen/adreno.py +17904 -0
- tinygrad/runtime/autogen/amd_gpu.py +46974 -11993
- tinygrad/runtime/autogen/cuda.py +6 -162
- tinygrad/runtime/autogen/io_uring.py +97 -63
- tinygrad/runtime/autogen/kfd.py +60 -47
- tinygrad/runtime/autogen/kgsl.py +1386 -0
- tinygrad/runtime/autogen/libc.py +5462 -0
- tinygrad/runtime/autogen/nv_gpu.py +1976 -1957
- tinygrad/runtime/autogen/nvrtc.py +579 -0
- tinygrad/runtime/autogen/opencl.py +11 -11
- tinygrad/runtime/autogen/qcom_dsp.py +1739 -0
- tinygrad/runtime/graph/clang.py +3 -3
- tinygrad/runtime/graph/cuda.py +11 -15
- tinygrad/runtime/graph/hcq.py +120 -107
- tinygrad/runtime/graph/metal.py +71 -43
- tinygrad/runtime/ops_amd.py +244 -323
- tinygrad/runtime/ops_clang.py +12 -5
- tinygrad/runtime/ops_cloud.py +220 -0
- tinygrad/runtime/ops_cuda.py +42 -99
- tinygrad/runtime/ops_disk.py +25 -26
- tinygrad/runtime/ops_dsp.py +181 -0
- tinygrad/runtime/ops_gpu.py +29 -16
- tinygrad/runtime/ops_hip.py +68 -0
- tinygrad/runtime/ops_llvm.py +15 -10
- tinygrad/runtime/ops_metal.py +147 -64
- tinygrad/runtime/ops_nv.py +356 -397
- tinygrad/runtime/ops_python.py +78 -79
- tinygrad/runtime/ops_qcom.py +405 -0
- tinygrad/runtime/support/__init__.py +0 -0
- tinygrad/runtime/support/compiler_cuda.py +77 -0
- tinygrad/runtime/{driver/hip_comgr.py → support/compiler_hip.py} +13 -1
- tinygrad/runtime/support/elf.py +38 -0
- tinygrad/runtime/support/hcq.py +539 -0
- tinygrad/shape/shapetracker.py +40 -50
- tinygrad/shape/view.py +102 -63
- tinygrad/tensor.py +1109 -365
- {tinygrad-0.9.1.dist-info → tinygrad-0.10.0.dist-info}/METADATA +54 -50
- tinygrad-0.10.0.dist-info/RECORD +77 -0
- {tinygrad-0.9.1.dist-info → tinygrad-0.10.0.dist-info}/WHEEL +1 -1
- tinygrad/codegen/linearizer.py +0 -528
- tinygrad/codegen/uops.py +0 -451
- tinygrad/engine/graph.py +0 -100
- tinygrad/renderer/assembly.py +0 -269
- tinygrad/shape/symbolic.py +0 -327
- tinygrad-0.9.1.dist-info/RECORD +0 -63
- /tinygrad/{runtime/driver/__init__.py → py.typed} +0 -0
- {tinygrad-0.9.1.dist-info → tinygrad-0.10.0.dist-info}/LICENSE +0 -0
- {tinygrad-0.9.1.dist-info → tinygrad-0.10.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1739 @@
|
|
1
|
+
# mypy: ignore-errors
|
2
|
+
# -*- coding: utf-8 -*-
|
3
|
+
#
|
4
|
+
# TARGET arch is: []
|
5
|
+
# WORD_SIZE is: 8
|
6
|
+
# POINTER_SIZE is: 8
|
7
|
+
# LONGDOUBLE_SIZE is: 16
|
8
|
+
#
|
9
|
+
import ctypes
|
10
|
+
|
11
|
+
|
12
|
+
class AsDictMixin:
|
13
|
+
@classmethod
|
14
|
+
def as_dict(cls, self):
|
15
|
+
result = {}
|
16
|
+
if not isinstance(self, AsDictMixin):
|
17
|
+
# not a structure, assume it's already a python object
|
18
|
+
return self
|
19
|
+
if not hasattr(cls, "_fields_"):
|
20
|
+
return result
|
21
|
+
# sys.version_info >= (3, 5)
|
22
|
+
# for (field, *_) in cls._fields_: # noqa
|
23
|
+
for field_tuple in cls._fields_: # noqa
|
24
|
+
field = field_tuple[0]
|
25
|
+
if field.startswith('PADDING_'):
|
26
|
+
continue
|
27
|
+
value = getattr(self, field)
|
28
|
+
type_ = type(value)
|
29
|
+
if hasattr(value, "_length_") and hasattr(value, "_type_"):
|
30
|
+
# array
|
31
|
+
if not hasattr(type_, "as_dict"):
|
32
|
+
value = [v for v in value]
|
33
|
+
else:
|
34
|
+
type_ = type_._type_
|
35
|
+
value = [type_.as_dict(v) for v in value]
|
36
|
+
elif hasattr(value, "contents") and hasattr(value, "_type_"):
|
37
|
+
# pointer
|
38
|
+
try:
|
39
|
+
if not hasattr(type_, "as_dict"):
|
40
|
+
value = value.contents
|
41
|
+
else:
|
42
|
+
type_ = type_._type_
|
43
|
+
value = type_.as_dict(value.contents)
|
44
|
+
except ValueError:
|
45
|
+
# nullptr
|
46
|
+
value = None
|
47
|
+
elif isinstance(value, AsDictMixin):
|
48
|
+
# other structure
|
49
|
+
value = type_.as_dict(value)
|
50
|
+
result[field] = value
|
51
|
+
return result
|
52
|
+
|
53
|
+
|
54
|
+
class Structure(ctypes.Structure, AsDictMixin):
|
55
|
+
|
56
|
+
def __init__(self, *args, **kwds):
|
57
|
+
# We don't want to use positional arguments fill PADDING_* fields
|
58
|
+
|
59
|
+
args = dict(zip(self.__class__._field_names_(), args))
|
60
|
+
args.update(kwds)
|
61
|
+
super(Structure, self).__init__(**args)
|
62
|
+
|
63
|
+
@classmethod
|
64
|
+
def _field_names_(cls):
|
65
|
+
if hasattr(cls, '_fields_'):
|
66
|
+
return (f[0] for f in cls._fields_ if not f[0].startswith('PADDING'))
|
67
|
+
else:
|
68
|
+
return ()
|
69
|
+
|
70
|
+
@classmethod
|
71
|
+
def get_type(cls, field):
|
72
|
+
for f in cls._fields_:
|
73
|
+
if f[0] == field:
|
74
|
+
return f[1]
|
75
|
+
return None
|
76
|
+
|
77
|
+
@classmethod
|
78
|
+
def bind(cls, bound_fields):
|
79
|
+
fields = {}
|
80
|
+
for name, type_ in cls._fields_:
|
81
|
+
if hasattr(type_, "restype"):
|
82
|
+
if name in bound_fields:
|
83
|
+
if bound_fields[name] is None:
|
84
|
+
fields[name] = type_()
|
85
|
+
else:
|
86
|
+
# use a closure to capture the callback from the loop scope
|
87
|
+
fields[name] = (
|
88
|
+
type_((lambda callback: lambda *args: callback(*args))(
|
89
|
+
bound_fields[name]))
|
90
|
+
)
|
91
|
+
del bound_fields[name]
|
92
|
+
else:
|
93
|
+
# default callback implementation (does nothing)
|
94
|
+
try:
|
95
|
+
default_ = type_(0).restype().value
|
96
|
+
except TypeError:
|
97
|
+
default_ = None
|
98
|
+
fields[name] = type_((
|
99
|
+
lambda default_: lambda *args: default_)(default_))
|
100
|
+
else:
|
101
|
+
# not a callback function, use default initialization
|
102
|
+
if name in bound_fields:
|
103
|
+
fields[name] = bound_fields[name]
|
104
|
+
del bound_fields[name]
|
105
|
+
else:
|
106
|
+
fields[name] = type_()
|
107
|
+
if len(bound_fields) != 0:
|
108
|
+
raise ValueError(
|
109
|
+
"Cannot bind the following unknown callback(s) {}.{}".format(
|
110
|
+
cls.__name__, bound_fields.keys()
|
111
|
+
))
|
112
|
+
return cls(**fields)
|
113
|
+
|
114
|
+
|
115
|
+
class Union(ctypes.Union, AsDictMixin):
|
116
|
+
pass
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
import fcntl, functools
|
122
|
+
|
123
|
+
def _do_ioctl(__idir, __base, __nr, __user_struct, __fd, *args, **kwargs):
|
124
|
+
ret = fcntl.ioctl(__fd, (__idir<<30) | (ctypes.sizeof(made := __user_struct(*args, **kwargs))<<16) | (__base<<8) | __nr, made)
|
125
|
+
if ret != 0: raise OSError(f"ioctl returned {ret}")
|
126
|
+
return made
|
127
|
+
|
128
|
+
def _IO(base, nr): return functools.partial(_do_ioctl, 0, ord(base) if isinstance(base, str) else base, nr, None)
|
129
|
+
def _IOW(base, nr, type): return functools.partial(_do_ioctl, 1, ord(base) if isinstance(base, str) else base, nr, type)
|
130
|
+
def _IOR(base, nr, type): return functools.partial(_do_ioctl, 2, ord(base) if isinstance(base, str) else base, nr, type)
|
131
|
+
def _IOWR(base, nr, type): return functools.partial(_do_ioctl, 3, ord(base) if isinstance(base, str) else base, nr, type)
|
132
|
+
|
133
|
+
c_int128 = ctypes.c_ubyte*16
|
134
|
+
c_uint128 = c_int128
|
135
|
+
void = None
|
136
|
+
if ctypes.sizeof(ctypes.c_longdouble) == 16:
|
137
|
+
c_long_double_t = ctypes.c_longdouble
|
138
|
+
else:
|
139
|
+
c_long_double_t = ctypes.c_ubyte*16
|
140
|
+
|
141
|
+
class FunctionFactoryStub:
|
142
|
+
def __getattr__(self, _):
|
143
|
+
return ctypes.CFUNCTYPE(lambda y:y)
|
144
|
+
|
145
|
+
# libraries['FIXME_STUB'] explanation
|
146
|
+
# As you did not list (-l libraryname.so) a library that exports this function
|
147
|
+
# This is a non-working stub instead.
|
148
|
+
# You can either re-run clan2py with -l /path/to/library.so
|
149
|
+
# Or manually fix this by comment the ctypes.CDLL loading
|
150
|
+
_libraries = {}
|
151
|
+
_libraries['FIXME_STUB'] = FunctionFactoryStub() # ctypes.CDLL('FIXME_STUB')
|
152
|
+
def string_cast(char_pointer, encoding='utf-8', errors='strict'):
|
153
|
+
value = ctypes.cast(char_pointer, ctypes.c_char_p).value
|
154
|
+
if value is not None and encoding is not None:
|
155
|
+
value = value.decode(encoding, errors=errors)
|
156
|
+
return value
|
157
|
+
|
158
|
+
|
159
|
+
def char_pointer_cast(string, encoding='utf-8'):
|
160
|
+
if encoding is not None:
|
161
|
+
try:
|
162
|
+
string = string.encode(encoding)
|
163
|
+
except AttributeError:
|
164
|
+
# In Python3, bytes has no encode attribute
|
165
|
+
pass
|
166
|
+
string = ctypes.c_char_p(string)
|
167
|
+
return ctypes.cast(string, ctypes.POINTER(ctypes.c_char))
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
_UAPI_LINUX_ION_H = True # macro
|
174
|
+
# ION_NUM_HEAP_IDS = (ctypes.sizeof*8) # macro
|
175
|
+
ION_FLAG_CACHED = 1 # macro
|
176
|
+
ION_FLAG_CACHED_NEEDS_SYNC = 2 # macro
|
177
|
+
ION_IOC_MAGIC = 'I' # macro
|
178
|
+
ion_user_handle_t = ctypes.c_int32
|
179
|
+
|
180
|
+
# values for enumeration 'ion_heap_type'
|
181
|
+
ion_heap_type__enumvalues = {
|
182
|
+
0: 'ION_HEAP_TYPE_SYSTEM',
|
183
|
+
1: 'ION_HEAP_TYPE_SYSTEM_CONTIG',
|
184
|
+
2: 'ION_HEAP_TYPE_CARVEOUT',
|
185
|
+
3: 'ION_HEAP_TYPE_CHUNK',
|
186
|
+
4: 'ION_HEAP_TYPE_DMA',
|
187
|
+
5: 'ION_HEAP_TYPE_CUSTOM',
|
188
|
+
16: 'ION_NUM_HEAPS',
|
189
|
+
}
|
190
|
+
ION_HEAP_TYPE_SYSTEM = 0
|
191
|
+
ION_HEAP_TYPE_SYSTEM_CONTIG = 1
|
192
|
+
ION_HEAP_TYPE_CARVEOUT = 2
|
193
|
+
ION_HEAP_TYPE_CHUNK = 3
|
194
|
+
ION_HEAP_TYPE_DMA = 4
|
195
|
+
ION_HEAP_TYPE_CUSTOM = 5
|
196
|
+
ION_NUM_HEAPS = 16
|
197
|
+
ion_heap_type = ctypes.c_uint32 # enum
|
198
|
+
ION_HEAP_SYSTEM_MASK = ((1<<ION_HEAP_TYPE_SYSTEM)) # macro
|
199
|
+
ION_HEAP_SYSTEM_CONTIG_MASK = ((1<<ION_HEAP_TYPE_SYSTEM_CONTIG)) # macro
|
200
|
+
ION_HEAP_CARVEOUT_MASK = ((1<<ION_HEAP_TYPE_CARVEOUT)) # macro
|
201
|
+
ION_HEAP_TYPE_DMA_MASK = ((1<<ION_HEAP_TYPE_DMA)) # macro
|
202
|
+
class struct_ion_allocation_data(Structure):
|
203
|
+
pass
|
204
|
+
|
205
|
+
struct_ion_allocation_data._pack_ = 1 # source:False
|
206
|
+
struct_ion_allocation_data._fields_ = [
|
207
|
+
('len', ctypes.c_uint64),
|
208
|
+
('align', ctypes.c_uint64),
|
209
|
+
('heap_id_mask', ctypes.c_uint32),
|
210
|
+
('flags', ctypes.c_uint32),
|
211
|
+
('handle', ctypes.c_int32),
|
212
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
213
|
+
]
|
214
|
+
|
215
|
+
ION_IOC_ALLOC = _IOWR ( 'I' , 0 , struct_ion_allocation_data ) # macro (from list)
|
216
|
+
class struct_ion_fd_data(Structure):
|
217
|
+
pass
|
218
|
+
|
219
|
+
struct_ion_fd_data._pack_ = 1 # source:False
|
220
|
+
struct_ion_fd_data._fields_ = [
|
221
|
+
('handle', ctypes.c_int32),
|
222
|
+
('fd', ctypes.c_int32),
|
223
|
+
]
|
224
|
+
|
225
|
+
ION_IOC_MAP = _IOWR ( 'I' , 2 , struct_ion_fd_data ) # macro (from list)
|
226
|
+
ION_IOC_SHARE = _IOWR ( 'I' , 4 , struct_ion_fd_data ) # macro (from list)
|
227
|
+
ION_IOC_IMPORT = _IOWR ( 'I' , 5 , struct_ion_fd_data ) # macro (from list)
|
228
|
+
ION_IOC_SYNC = _IOWR ( 'I' , 7 , struct_ion_fd_data ) # macro (from list)
|
229
|
+
class struct_ion_handle_data(Structure):
|
230
|
+
pass
|
231
|
+
|
232
|
+
struct_ion_handle_data._pack_ = 1 # source:False
|
233
|
+
struct_ion_handle_data._fields_ = [
|
234
|
+
('handle', ctypes.c_int32),
|
235
|
+
]
|
236
|
+
|
237
|
+
ION_IOC_FREE = _IOWR ( 'I' , 1 , struct_ion_handle_data ) # macro (from list)
|
238
|
+
class struct_ion_custom_data(Structure):
|
239
|
+
pass
|
240
|
+
|
241
|
+
struct_ion_custom_data._pack_ = 1 # source:False
|
242
|
+
struct_ion_custom_data._fields_ = [
|
243
|
+
('cmd', ctypes.c_uint32),
|
244
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
245
|
+
('arg', ctypes.c_uint64),
|
246
|
+
]
|
247
|
+
|
248
|
+
ION_IOC_CUSTOM = _IOWR ( 'I' , 6 , struct_ion_custom_data ) # macro (from list)
|
249
|
+
_UAPI_MSM_ION_H = True # macro
|
250
|
+
ION_HEAP_TYPE_IOMMU = ION_HEAP_TYPE_SYSTEM # macro
|
251
|
+
ION_FLAG_CP_TOUCH = (1<<17) # macro
|
252
|
+
ION_FLAG_CP_BITSTREAM = (1<<18) # macro
|
253
|
+
ION_FLAG_CP_PIXEL = (1<<19) # macro
|
254
|
+
ION_FLAG_CP_NON_PIXEL = (1<<20) # macro
|
255
|
+
ION_FLAG_CP_CAMERA = (1<<21) # macro
|
256
|
+
ION_FLAG_CP_HLOS = (1<<22) # macro
|
257
|
+
ION_FLAG_CP_HLOS_FREE = (1<<23) # macro
|
258
|
+
ION_FLAG_CP_SEC_DISPLAY = (1<<25) # macro
|
259
|
+
ION_FLAG_CP_APP = (1<<26) # macro
|
260
|
+
ION_FLAG_ALLOW_NON_CONTIG = (1<<24) # macro
|
261
|
+
ION_FLAG_FORCE_CONTIGUOUS = (1<<30) # macro
|
262
|
+
ION_FLAG_POOL_FORCE_ALLOC = (1<<16) # macro
|
263
|
+
ION_FLAG_POOL_PREFETCH = (1<<27) # macro
|
264
|
+
ION_FORCE_CONTIGUOUS = (1<<30) # macro
|
265
|
+
def ION_HEAP(bit): # macro
|
266
|
+
return (1<<(bit))
|
267
|
+
ION_ADSP_HEAP_NAME = "adsp" # macro
|
268
|
+
ION_SYSTEM_HEAP_NAME = "system" # macro
|
269
|
+
ION_VMALLOC_HEAP_NAME = "system" # macro
|
270
|
+
ION_KMALLOC_HEAP_NAME = "kmalloc" # macro
|
271
|
+
ION_AUDIO_HEAP_NAME = "audio" # macro
|
272
|
+
ION_SF_HEAP_NAME = "sf" # macro
|
273
|
+
ION_MM_HEAP_NAME = "mm" # macro
|
274
|
+
ION_CAMERA_HEAP_NAME = "camera_preview" # macro
|
275
|
+
ION_IOMMU_HEAP_NAME = "iommu" # macro
|
276
|
+
ION_MFC_HEAP_NAME = "mfc" # macro
|
277
|
+
ION_WB_HEAP_NAME = "wb" # macro
|
278
|
+
ION_MM_FIRMWARE_HEAP_NAME = "mm_fw" # macro
|
279
|
+
ION_PIL1_HEAP_NAME = "pil_1" # macro
|
280
|
+
ION_PIL2_HEAP_NAME = "pil_2" # macro
|
281
|
+
ION_QSECOM_HEAP_NAME = "qsecom" # macro
|
282
|
+
ION_SECURE_HEAP_NAME = "secure_heap" # macro
|
283
|
+
ION_SECURE_DISPLAY_HEAP_NAME = "secure_display" # macro
|
284
|
+
def ION_SET_CACHED(__cache): # macro
|
285
|
+
return (__cache|1)
|
286
|
+
def ION_SET_UNCACHED(__cache): # macro
|
287
|
+
return (__cache&~1)
|
288
|
+
def ION_IS_CACHED(__flags): # macro
|
289
|
+
return ((__flags)&1)
|
290
|
+
ION_IOC_MSM_MAGIC = 'M' # macro
|
291
|
+
|
292
|
+
# values for enumeration 'msm_ion_heap_types'
|
293
|
+
msm_ion_heap_types__enumvalues = {
|
294
|
+
6: 'ION_HEAP_TYPE_MSM_START',
|
295
|
+
6: 'ION_HEAP_TYPE_SECURE_DMA',
|
296
|
+
7: 'ION_HEAP_TYPE_SYSTEM_SECURE',
|
297
|
+
8: 'ION_HEAP_TYPE_HYP_CMA',
|
298
|
+
}
|
299
|
+
ION_HEAP_TYPE_MSM_START = 6
|
300
|
+
ION_HEAP_TYPE_SECURE_DMA = 6
|
301
|
+
ION_HEAP_TYPE_SYSTEM_SECURE = 7
|
302
|
+
ION_HEAP_TYPE_HYP_CMA = 8
|
303
|
+
msm_ion_heap_types = ctypes.c_uint32 # enum
|
304
|
+
|
305
|
+
# values for enumeration 'ion_heap_ids'
|
306
|
+
ion_heap_ids__enumvalues = {
|
307
|
+
-1: 'INVALID_HEAP_ID',
|
308
|
+
8: 'ION_CP_MM_HEAP_ID',
|
309
|
+
9: 'ION_SECURE_HEAP_ID',
|
310
|
+
10: 'ION_SECURE_DISPLAY_HEAP_ID',
|
311
|
+
12: 'ION_CP_MFC_HEAP_ID',
|
312
|
+
16: 'ION_CP_WB_HEAP_ID',
|
313
|
+
20: 'ION_CAMERA_HEAP_ID',
|
314
|
+
21: 'ION_SYSTEM_CONTIG_HEAP_ID',
|
315
|
+
22: 'ION_ADSP_HEAP_ID',
|
316
|
+
23: 'ION_PIL1_HEAP_ID',
|
317
|
+
24: 'ION_SF_HEAP_ID',
|
318
|
+
25: 'ION_SYSTEM_HEAP_ID',
|
319
|
+
26: 'ION_PIL2_HEAP_ID',
|
320
|
+
27: 'ION_QSECOM_HEAP_ID',
|
321
|
+
28: 'ION_AUDIO_HEAP_ID',
|
322
|
+
29: 'ION_MM_FIRMWARE_HEAP_ID',
|
323
|
+
31: 'ION_HEAP_ID_RESERVED',
|
324
|
+
}
|
325
|
+
INVALID_HEAP_ID = -1
|
326
|
+
ION_CP_MM_HEAP_ID = 8
|
327
|
+
ION_SECURE_HEAP_ID = 9
|
328
|
+
ION_SECURE_DISPLAY_HEAP_ID = 10
|
329
|
+
ION_CP_MFC_HEAP_ID = 12
|
330
|
+
ION_CP_WB_HEAP_ID = 16
|
331
|
+
ION_CAMERA_HEAP_ID = 20
|
332
|
+
ION_SYSTEM_CONTIG_HEAP_ID = 21
|
333
|
+
ION_ADSP_HEAP_ID = 22
|
334
|
+
ION_PIL1_HEAP_ID = 23
|
335
|
+
ION_SF_HEAP_ID = 24
|
336
|
+
ION_SYSTEM_HEAP_ID = 25
|
337
|
+
ION_PIL2_HEAP_ID = 26
|
338
|
+
ION_QSECOM_HEAP_ID = 27
|
339
|
+
ION_AUDIO_HEAP_ID = 28
|
340
|
+
ION_MM_FIRMWARE_HEAP_ID = 29
|
341
|
+
ION_HEAP_ID_RESERVED = 31
|
342
|
+
ion_heap_ids = ctypes.c_int32 # enum
|
343
|
+
ION_IOMMU_HEAP_ID = ION_SYSTEM_HEAP_ID # macro
|
344
|
+
ION_FLAG_SECURE = (1<<ION_HEAP_ID_RESERVED) # macro
|
345
|
+
ION_SECURE = (1<<ION_HEAP_ID_RESERVED) # macro
|
346
|
+
|
347
|
+
# values for enumeration 'ion_fixed_position'
|
348
|
+
ion_fixed_position__enumvalues = {
|
349
|
+
0: 'NOT_FIXED',
|
350
|
+
1: 'FIXED_LOW',
|
351
|
+
2: 'FIXED_MIDDLE',
|
352
|
+
3: 'FIXED_HIGH',
|
353
|
+
}
|
354
|
+
NOT_FIXED = 0
|
355
|
+
FIXED_LOW = 1
|
356
|
+
FIXED_MIDDLE = 2
|
357
|
+
FIXED_HIGH = 3
|
358
|
+
ion_fixed_position = ctypes.c_uint32 # enum
|
359
|
+
|
360
|
+
# values for enumeration 'cp_mem_usage'
|
361
|
+
cp_mem_usage__enumvalues = {
|
362
|
+
1: 'VIDEO_BITSTREAM',
|
363
|
+
2: 'VIDEO_PIXEL',
|
364
|
+
3: 'VIDEO_NONPIXEL',
|
365
|
+
4: 'DISPLAY_SECURE_CP_USAGE',
|
366
|
+
5: 'CAMERA_SECURE_CP_USAGE',
|
367
|
+
6: 'MAX_USAGE',
|
368
|
+
2147483647: 'UNKNOWN',
|
369
|
+
}
|
370
|
+
VIDEO_BITSTREAM = 1
|
371
|
+
VIDEO_PIXEL = 2
|
372
|
+
VIDEO_NONPIXEL = 3
|
373
|
+
DISPLAY_SECURE_CP_USAGE = 4
|
374
|
+
CAMERA_SECURE_CP_USAGE = 5
|
375
|
+
MAX_USAGE = 6
|
376
|
+
UNKNOWN = 2147483647
|
377
|
+
cp_mem_usage = ctypes.c_uint32 # enum
|
378
|
+
class struct_ion_flush_data(Structure):
|
379
|
+
pass
|
380
|
+
|
381
|
+
struct_ion_flush_data._pack_ = 1 # source:False
|
382
|
+
struct_ion_flush_data._fields_ = [
|
383
|
+
('handle', ctypes.c_int32),
|
384
|
+
('fd', ctypes.c_int32),
|
385
|
+
('vaddr', ctypes.POINTER(None)),
|
386
|
+
('offset', ctypes.c_uint32),
|
387
|
+
('length', ctypes.c_uint32),
|
388
|
+
]
|
389
|
+
|
390
|
+
ION_IOC_CLEAN_CACHES = _IOWR ( 'M' , 0 , struct_ion_flush_data ) # macro (from list)
|
391
|
+
ION_IOC_INV_CACHES = _IOWR ( 'M' , 1 , struct_ion_flush_data ) # macro (from list)
|
392
|
+
ION_IOC_CLEAN_INV_CACHES = _IOWR ( 'M' , 2 , struct_ion_flush_data ) # macro (from list)
|
393
|
+
class struct_ion_prefetch_regions(Structure):
|
394
|
+
pass
|
395
|
+
|
396
|
+
struct_ion_prefetch_regions._pack_ = 1 # source:False
|
397
|
+
struct_ion_prefetch_regions._fields_ = [
|
398
|
+
('vmid', ctypes.c_uint32),
|
399
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
400
|
+
('sizes', ctypes.POINTER(ctypes.c_uint64)),
|
401
|
+
('nr_sizes', ctypes.c_uint32),
|
402
|
+
('PADDING_1', ctypes.c_ubyte * 4),
|
403
|
+
]
|
404
|
+
|
405
|
+
class struct_ion_prefetch_data(Structure):
|
406
|
+
pass
|
407
|
+
|
408
|
+
struct_ion_prefetch_data._pack_ = 1 # source:False
|
409
|
+
struct_ion_prefetch_data._fields_ = [
|
410
|
+
('heap_id', ctypes.c_int32),
|
411
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
412
|
+
('len', ctypes.c_uint64),
|
413
|
+
('regions', ctypes.POINTER(struct_ion_prefetch_regions)),
|
414
|
+
('nr_regions', ctypes.c_uint32),
|
415
|
+
('PADDING_1', ctypes.c_ubyte * 4),
|
416
|
+
]
|
417
|
+
|
418
|
+
ION_IOC_PREFETCH = _IOWR ( 'M' , 3 , struct_ion_prefetch_data ) # macro (from list)
|
419
|
+
ION_IOC_DRAIN = _IOWR ( 'M' , 4 , struct_ion_prefetch_data ) # macro (from list)
|
420
|
+
ADSPRPC_SHARED_H = True # macro
|
421
|
+
FASTRPC_GLINK_GUID = "fastrpcglink-apps-dsp" # macro
|
422
|
+
FASTRPC_SMD_GUID = "fastrpcsmd-apps-dsp" # macro
|
423
|
+
DEVICE_NAME = "adsprpc-smd" # macro
|
424
|
+
FASTRPC_ATTR_NOVA = 0x1 # macro
|
425
|
+
FASTRPC_ATTR_NON_COHERENT = 0x2 # macro
|
426
|
+
FASTRPC_ATTR_COHERENT = 0x4 # macro
|
427
|
+
FASTRPC_ATTR_KEEP_MAP = 0x8 # macro
|
428
|
+
FASTRPC_ATTR_NOMAP = (16) # macro
|
429
|
+
FASTRPC_MODE_PARALLEL = 0 # macro
|
430
|
+
FASTRPC_MODE_SERIAL = 1 # macro
|
431
|
+
FASTRPC_MODE_PROFILE = 2 # macro
|
432
|
+
FASTRPC_MODE_SESSION = 4 # macro
|
433
|
+
FASTRPC_INIT_ATTACH = 0 # macro
|
434
|
+
FASTRPC_INIT_CREATE = 1 # macro
|
435
|
+
FASTRPC_INIT_CREATE_STATIC = 2 # macro
|
436
|
+
FASTRPC_INIT_ATTACH_SENSORS = 3 # macro
|
437
|
+
def REMOTE_SCALARS_INBUFS(dwScalars): # macro
|
438
|
+
return (((dwScalars)>>16)&0x0ff)
|
439
|
+
def REMOTE_SCALARS_OUTBUFS(dwScalars): # macro
|
440
|
+
return (((dwScalars)>>8)&0x0ff)
|
441
|
+
def REMOTE_SCALARS_INHANDLES(dwScalars): # macro
|
442
|
+
return (((dwScalars)>>4)&0x0f)
|
443
|
+
def REMOTE_SCALARS_OUTHANDLES(dwScalars): # macro
|
444
|
+
return ((dwScalars)&0x0f)
|
445
|
+
def REMOTE_SCALARS_LENGTH(sc): # macro
|
446
|
+
return (REMOTE_SCALARS_INBUFS(sc)+REMOTE_SCALARS_OUTBUFS(sc)+REMOTE_SCALARS_INHANDLES(sc)+REMOTE_SCALARS_OUTHANDLES(sc))
|
447
|
+
def REMOTE_SCALARS_MAKEX(nAttr, nMethod, nIn, nOut, noIn, noOut): # macro
|
448
|
+
return ((((nAttr)&0x7)<<29)|(((nMethod)&0x1f)<<24)|(((nIn)&0xff)<<16)|(((nOut)&0xff)<<8)|(((noIn)&0x0f)<<4)|((noOut)&0x0f))
|
449
|
+
def REMOTE_SCALARS_MAKE(nMethod, nIn, nOut): # macro
|
450
|
+
return REMOTE_SCALARS_MAKEX(0,nMethod,nIn,nOut,0,0)
|
451
|
+
# def VERIFY_EPRINTF(format, args): # macro
|
452
|
+
# return (void)0
|
453
|
+
# def VERIFY_IPRINTF(args): # macro
|
454
|
+
# return (void)0
|
455
|
+
# def __STR__(x): # macro
|
456
|
+
# return #x":"
|
457
|
+
def __TOSTR__(x): # macro
|
458
|
+
return __STR__(x)
|
459
|
+
# __FILE_LINE__ = __FILE__ ":" __TOSTR__ ( __LINE__ ) # macro
|
460
|
+
# def VERIFY(err, val): # macro
|
461
|
+
# return {VERIFY_IPRINTF(__FILE__":"__TOSTR__(__LINE__)"info: calling: "#val"\n");((val)==0){(err)=(err)==0?-1:(err);VERIFY_EPRINTF(__FILE__":"__TOSTR__(__LINE__)"error: %d: "#val"\n",(err));}{VERIFY_IPRINTF(__FILE__":"__TOSTR__(__LINE__)"info: passed: "#val"\n");}\}(0)
|
462
|
+
# remote_arg64_t = remote_arg64 # macro
|
463
|
+
FASTRPC_CONTROL_LATENCY = (1) # macro
|
464
|
+
FASTRPC_CONTROL_SMMU = (2) # macro
|
465
|
+
FASTRPC_CONTROL_KALLOC = (3) # macro
|
466
|
+
class struct_remote_buf64(Structure):
|
467
|
+
pass
|
468
|
+
|
469
|
+
struct_remote_buf64._pack_ = 1 # source:False
|
470
|
+
struct_remote_buf64._fields_ = [
|
471
|
+
('pv', ctypes.c_uint64),
|
472
|
+
('len', ctypes.c_uint64),
|
473
|
+
]
|
474
|
+
|
475
|
+
class struct_remote_dma_handle64(Structure):
|
476
|
+
pass
|
477
|
+
|
478
|
+
struct_remote_dma_handle64._pack_ = 1 # source:False
|
479
|
+
struct_remote_dma_handle64._fields_ = [
|
480
|
+
('fd', ctypes.c_int32),
|
481
|
+
('offset', ctypes.c_uint32),
|
482
|
+
('len', ctypes.c_uint32),
|
483
|
+
]
|
484
|
+
|
485
|
+
class union_remote_arg64(Union):
|
486
|
+
pass
|
487
|
+
|
488
|
+
union_remote_arg64._pack_ = 1 # source:False
|
489
|
+
union_remote_arg64._fields_ = [
|
490
|
+
('buf', struct_remote_buf64),
|
491
|
+
('dma', struct_remote_dma_handle64),
|
492
|
+
('h', ctypes.c_uint32),
|
493
|
+
('PADDING_0', ctypes.c_ubyte * 12),
|
494
|
+
]
|
495
|
+
|
496
|
+
class struct_remote_buf(Structure):
|
497
|
+
pass
|
498
|
+
|
499
|
+
struct_remote_buf._pack_ = 1 # source:False
|
500
|
+
struct_remote_buf._fields_ = [
|
501
|
+
('pv', ctypes.POINTER(None)),
|
502
|
+
('len', ctypes.c_uint64),
|
503
|
+
]
|
504
|
+
|
505
|
+
class struct_remote_dma_handle(Structure):
|
506
|
+
pass
|
507
|
+
|
508
|
+
struct_remote_dma_handle._pack_ = 1 # source:False
|
509
|
+
struct_remote_dma_handle._fields_ = [
|
510
|
+
('fd', ctypes.c_int32),
|
511
|
+
('offset', ctypes.c_uint32),
|
512
|
+
]
|
513
|
+
|
514
|
+
class union_remote_arg(Union):
|
515
|
+
pass
|
516
|
+
|
517
|
+
union_remote_arg._pack_ = 1 # source:False
|
518
|
+
union_remote_arg._fields_ = [
|
519
|
+
('buf', struct_remote_buf),
|
520
|
+
('dma', struct_remote_dma_handle),
|
521
|
+
('h', ctypes.c_uint32),
|
522
|
+
('PADDING_0', ctypes.c_ubyte * 12),
|
523
|
+
]
|
524
|
+
|
525
|
+
class struct_fastrpc_ioctl_invoke(Structure):
|
526
|
+
pass
|
527
|
+
|
528
|
+
struct_fastrpc_ioctl_invoke._pack_ = 1 # source:False
|
529
|
+
struct_fastrpc_ioctl_invoke._fields_ = [
|
530
|
+
('handle', ctypes.c_uint32),
|
531
|
+
('sc', ctypes.c_uint32),
|
532
|
+
('pra', ctypes.POINTER(union_remote_arg)),
|
533
|
+
]
|
534
|
+
|
535
|
+
FASTRPC_IOCTL_INVOKE = _IOWR ( 'R' , 1 , struct_fastrpc_ioctl_invoke ) # macro (from list)
|
536
|
+
class struct_fastrpc_ioctl_invoke_fd(Structure):
|
537
|
+
pass
|
538
|
+
|
539
|
+
struct_fastrpc_ioctl_invoke_fd._pack_ = 1 # source:False
|
540
|
+
struct_fastrpc_ioctl_invoke_fd._fields_ = [
|
541
|
+
('inv', struct_fastrpc_ioctl_invoke),
|
542
|
+
('fds', ctypes.POINTER(ctypes.c_int32)),
|
543
|
+
]
|
544
|
+
|
545
|
+
FASTRPC_IOCTL_INVOKE_FD = _IOWR ( 'R' , 4 , struct_fastrpc_ioctl_invoke_fd ) # macro (from list)
|
546
|
+
class struct_fastrpc_ioctl_invoke_attrs(Structure):
|
547
|
+
pass
|
548
|
+
|
549
|
+
struct_fastrpc_ioctl_invoke_attrs._pack_ = 1 # source:False
|
550
|
+
struct_fastrpc_ioctl_invoke_attrs._fields_ = [
|
551
|
+
('inv', struct_fastrpc_ioctl_invoke),
|
552
|
+
('fds', ctypes.POINTER(ctypes.c_int32)),
|
553
|
+
('attrs', ctypes.POINTER(ctypes.c_uint32)),
|
554
|
+
]
|
555
|
+
|
556
|
+
FASTRPC_IOCTL_INVOKE_ATTRS = _IOWR ( 'R' , 7 , struct_fastrpc_ioctl_invoke_attrs ) # macro (from list)
|
557
|
+
class struct_fastrpc_ioctl_invoke_crc(Structure):
|
558
|
+
pass
|
559
|
+
|
560
|
+
struct_fastrpc_ioctl_invoke_crc._pack_ = 1 # source:False
|
561
|
+
struct_fastrpc_ioctl_invoke_crc._fields_ = [
|
562
|
+
('inv', struct_fastrpc_ioctl_invoke),
|
563
|
+
('fds', ctypes.POINTER(ctypes.c_int32)),
|
564
|
+
('attrs', ctypes.POINTER(ctypes.c_uint32)),
|
565
|
+
('crc', ctypes.POINTER(ctypes.c_uint32)),
|
566
|
+
]
|
567
|
+
|
568
|
+
FASTRPC_IOCTL_INVOKE_CRC = _IOWR ( 'R' , 11 , struct_fastrpc_ioctl_invoke_crc ) # macro (from list)
|
569
|
+
class struct_fastrpc_ioctl_init(Structure):
|
570
|
+
pass
|
571
|
+
|
572
|
+
struct_fastrpc_ioctl_init._pack_ = 1 # source:False
|
573
|
+
struct_fastrpc_ioctl_init._fields_ = [
|
574
|
+
('flags', ctypes.c_uint32),
|
575
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
576
|
+
('file', ctypes.c_uint64),
|
577
|
+
('filelen', ctypes.c_uint32),
|
578
|
+
('filefd', ctypes.c_int32),
|
579
|
+
('mem', ctypes.c_uint64),
|
580
|
+
('memlen', ctypes.c_uint32),
|
581
|
+
('memfd', ctypes.c_int32),
|
582
|
+
]
|
583
|
+
|
584
|
+
FASTRPC_IOCTL_INIT = _IOWR ( 'R' , 6 , struct_fastrpc_ioctl_init ) # macro (from list)
|
585
|
+
class struct_fastrpc_ioctl_init_attrs(Structure):
|
586
|
+
pass
|
587
|
+
|
588
|
+
struct_fastrpc_ioctl_init_attrs._pack_ = 1 # source:False
|
589
|
+
struct_fastrpc_ioctl_init_attrs._fields_ = [
|
590
|
+
('init', struct_fastrpc_ioctl_init),
|
591
|
+
('attrs', ctypes.c_int32),
|
592
|
+
('siglen', ctypes.c_uint32),
|
593
|
+
]
|
594
|
+
|
595
|
+
FASTRPC_IOCTL_INIT_ATTRS = _IOWR ( 'R' , 10 , struct_fastrpc_ioctl_init_attrs ) # macro (from list)
|
596
|
+
class struct_fastrpc_ioctl_munmap(Structure):
|
597
|
+
pass
|
598
|
+
|
599
|
+
struct_fastrpc_ioctl_munmap._pack_ = 1 # source:False
|
600
|
+
struct_fastrpc_ioctl_munmap._fields_ = [
|
601
|
+
('vaddrout', ctypes.c_uint64),
|
602
|
+
('size', ctypes.c_uint64),
|
603
|
+
]
|
604
|
+
|
605
|
+
FASTRPC_IOCTL_MUNMAP = _IOWR ( 'R' , 3 , struct_fastrpc_ioctl_munmap ) # macro (from list)
|
606
|
+
class struct_fastrpc_ioctl_munmap_64(Structure):
|
607
|
+
pass
|
608
|
+
|
609
|
+
struct_fastrpc_ioctl_munmap_64._pack_ = 1 # source:False
|
610
|
+
struct_fastrpc_ioctl_munmap_64._fields_ = [
|
611
|
+
('vaddrout', ctypes.c_uint64),
|
612
|
+
('size', ctypes.c_uint64),
|
613
|
+
]
|
614
|
+
|
615
|
+
FASTRPC_IOCTL_MUNMAP_64 = _IOWR ( 'R' , 15 , struct_fastrpc_ioctl_munmap_64 ) # macro (from list)
|
616
|
+
class struct_fastrpc_ioctl_mmap(Structure):
|
617
|
+
pass
|
618
|
+
|
619
|
+
struct_fastrpc_ioctl_mmap._pack_ = 1 # source:False
|
620
|
+
struct_fastrpc_ioctl_mmap._fields_ = [
|
621
|
+
('fd', ctypes.c_int32),
|
622
|
+
('flags', ctypes.c_uint32),
|
623
|
+
('vaddrin', ctypes.c_uint64),
|
624
|
+
('size', ctypes.c_uint64),
|
625
|
+
('vaddrout', ctypes.c_uint64),
|
626
|
+
]
|
627
|
+
|
628
|
+
FASTRPC_IOCTL_MMAP = _IOWR ( 'R' , 2 , struct_fastrpc_ioctl_mmap ) # macro (from list)
|
629
|
+
class struct_fastrpc_ioctl_mmap_64(Structure):
|
630
|
+
pass
|
631
|
+
|
632
|
+
struct_fastrpc_ioctl_mmap_64._pack_ = 1 # source:False
|
633
|
+
struct_fastrpc_ioctl_mmap_64._fields_ = [
|
634
|
+
('fd', ctypes.c_int32),
|
635
|
+
('flags', ctypes.c_uint32),
|
636
|
+
('vaddrin', ctypes.c_uint64),
|
637
|
+
('size', ctypes.c_uint64),
|
638
|
+
('vaddrout', ctypes.c_uint64),
|
639
|
+
]
|
640
|
+
|
641
|
+
FASTRPC_IOCTL_MMAP_64 = _IOWR ( 'R' , 14 , struct_fastrpc_ioctl_mmap_64 ) # macro (from list)
|
642
|
+
class struct_fastrpc_ioctl_munmap_fd(Structure):
|
643
|
+
pass
|
644
|
+
|
645
|
+
struct_fastrpc_ioctl_munmap_fd._pack_ = 1 # source:False
|
646
|
+
struct_fastrpc_ioctl_munmap_fd._fields_ = [
|
647
|
+
('fd', ctypes.c_int32),
|
648
|
+
('flags', ctypes.c_uint32),
|
649
|
+
('va', ctypes.c_uint64),
|
650
|
+
('len', ctypes.c_int64),
|
651
|
+
]
|
652
|
+
|
653
|
+
FASTRPC_IOCTL_MUNMAP_FD = _IOWR ( 'R' , 13 , struct_fastrpc_ioctl_munmap_fd ) # macro (from list)
|
654
|
+
class struct_fastrpc_ioctl_perf(Structure):
|
655
|
+
pass
|
656
|
+
|
657
|
+
struct_fastrpc_ioctl_perf._pack_ = 1 # source:False
|
658
|
+
struct_fastrpc_ioctl_perf._fields_ = [
|
659
|
+
('data', ctypes.c_uint64),
|
660
|
+
('numkeys', ctypes.c_uint32),
|
661
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
662
|
+
('keys', ctypes.c_uint64),
|
663
|
+
]
|
664
|
+
|
665
|
+
FASTRPC_IOCTL_GETPERF = _IOWR ( 'R' , 9 , struct_fastrpc_ioctl_perf ) # macro (from list)
|
666
|
+
class struct_fastrpc_ctrl_latency(Structure):
|
667
|
+
pass
|
668
|
+
|
669
|
+
struct_fastrpc_ctrl_latency._pack_ = 1 # source:False
|
670
|
+
struct_fastrpc_ctrl_latency._fields_ = [
|
671
|
+
('enable', ctypes.c_uint32),
|
672
|
+
('level', ctypes.c_uint32),
|
673
|
+
]
|
674
|
+
|
675
|
+
class struct_fastrpc_ctrl_smmu(Structure):
|
676
|
+
pass
|
677
|
+
|
678
|
+
struct_fastrpc_ctrl_smmu._pack_ = 1 # source:False
|
679
|
+
struct_fastrpc_ctrl_smmu._fields_ = [
|
680
|
+
('sharedcb', ctypes.c_uint32),
|
681
|
+
]
|
682
|
+
|
683
|
+
class struct_fastrpc_ctrl_kalloc(Structure):
|
684
|
+
pass
|
685
|
+
|
686
|
+
struct_fastrpc_ctrl_kalloc._pack_ = 1 # source:False
|
687
|
+
struct_fastrpc_ctrl_kalloc._fields_ = [
|
688
|
+
('kalloc_support', ctypes.c_uint32),
|
689
|
+
]
|
690
|
+
|
691
|
+
class struct_fastrpc_ioctl_control(Structure):
|
692
|
+
pass
|
693
|
+
|
694
|
+
class union_fastrpc_ioctl_control_0(Union):
|
695
|
+
pass
|
696
|
+
|
697
|
+
union_fastrpc_ioctl_control_0._pack_ = 1 # source:False
|
698
|
+
union_fastrpc_ioctl_control_0._fields_ = [
|
699
|
+
('lp', struct_fastrpc_ctrl_latency),
|
700
|
+
('smmu', struct_fastrpc_ctrl_smmu),
|
701
|
+
('kalloc', struct_fastrpc_ctrl_kalloc),
|
702
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
703
|
+
]
|
704
|
+
|
705
|
+
struct_fastrpc_ioctl_control._pack_ = 1 # source:False
|
706
|
+
struct_fastrpc_ioctl_control._anonymous_ = ('_0',)
|
707
|
+
struct_fastrpc_ioctl_control._fields_ = [
|
708
|
+
('req', ctypes.c_uint32),
|
709
|
+
('_0', union_fastrpc_ioctl_control_0),
|
710
|
+
]
|
711
|
+
|
712
|
+
FASTRPC_IOCTL_CONTROL = _IOWR ( 'R' , 12 , struct_fastrpc_ioctl_control ) # macro (from list)
|
713
|
+
class struct_smq_null_invoke(Structure):
|
714
|
+
pass
|
715
|
+
|
716
|
+
struct_smq_null_invoke._pack_ = 1 # source:False
|
717
|
+
struct_smq_null_invoke._fields_ = [
|
718
|
+
('ctx', ctypes.c_uint64),
|
719
|
+
('handle', ctypes.c_uint32),
|
720
|
+
('sc', ctypes.c_uint32),
|
721
|
+
]
|
722
|
+
|
723
|
+
class struct_smq_phy_page(Structure):
|
724
|
+
pass
|
725
|
+
|
726
|
+
struct_smq_phy_page._pack_ = 1 # source:False
|
727
|
+
struct_smq_phy_page._fields_ = [
|
728
|
+
('addr', ctypes.c_uint64),
|
729
|
+
('size', ctypes.c_uint64),
|
730
|
+
]
|
731
|
+
|
732
|
+
class struct_smq_invoke_buf(Structure):
|
733
|
+
pass
|
734
|
+
|
735
|
+
struct_smq_invoke_buf._pack_ = 1 # source:False
|
736
|
+
struct_smq_invoke_buf._fields_ = [
|
737
|
+
('num', ctypes.c_int32),
|
738
|
+
('pgidx', ctypes.c_int32),
|
739
|
+
]
|
740
|
+
|
741
|
+
class struct_smq_invoke(Structure):
|
742
|
+
_pack_ = 1 # source:False
|
743
|
+
_fields_ = [
|
744
|
+
('header', struct_smq_null_invoke),
|
745
|
+
('page', struct_smq_phy_page),
|
746
|
+
]
|
747
|
+
|
748
|
+
class struct_smq_msg(Structure):
|
749
|
+
pass
|
750
|
+
|
751
|
+
struct_smq_msg._pack_ = 1 # source:False
|
752
|
+
struct_smq_msg._fields_ = [
|
753
|
+
('pid', ctypes.c_uint32),
|
754
|
+
('tid', ctypes.c_uint32),
|
755
|
+
('invoke', struct_smq_invoke),
|
756
|
+
]
|
757
|
+
|
758
|
+
class struct_smq_invoke_rsp(Structure):
|
759
|
+
pass
|
760
|
+
|
761
|
+
struct_smq_invoke_rsp._pack_ = 1 # source:False
|
762
|
+
struct_smq_invoke_rsp._fields_ = [
|
763
|
+
('ctx', ctypes.c_uint64),
|
764
|
+
('retval', ctypes.c_int32),
|
765
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
766
|
+
]
|
767
|
+
|
768
|
+
uint32_t = ctypes.c_uint32
|
769
|
+
FASTRPC_IOCTL_SETMODE = _IOWR ( 'R' , 5 , uint32_t ) # macro (from list)
|
770
|
+
FASTRPC_IOCTL_GETINFO = _IOWR ( 'R' , 8 , uint32_t ) # macro (from list)
|
771
|
+
try:
|
772
|
+
smq_invoke_buf_start = _libraries['FIXME_STUB'].smq_invoke_buf_start
|
773
|
+
smq_invoke_buf_start.restype = ctypes.POINTER(struct_smq_invoke_buf)
|
774
|
+
smq_invoke_buf_start.argtypes = [ctypes.POINTER(union_remote_arg64), uint32_t]
|
775
|
+
except AttributeError:
|
776
|
+
pass
|
777
|
+
try:
|
778
|
+
smq_phy_page_start = _libraries['FIXME_STUB'].smq_phy_page_start
|
779
|
+
smq_phy_page_start.restype = ctypes.POINTER(struct_smq_phy_page)
|
780
|
+
smq_phy_page_start.argtypes = [uint32_t, ctypes.POINTER(struct_smq_invoke_buf)]
|
781
|
+
except AttributeError:
|
782
|
+
pass
|
783
|
+
REMOTE_DEFAULT_H = True # macro
|
784
|
+
def REMOTE_SCALARS_METHOD_ATTR(dwScalars): # macro
|
785
|
+
return (((dwScalars)>>29)&0x7)
|
786
|
+
def REMOTE_SCALARS_METHOD(dwScalars): # macro
|
787
|
+
return (((dwScalars)>>24)&0x1f)
|
788
|
+
def __QAIC_REMOTE(ff): # macro
|
789
|
+
return ff
|
790
|
+
__QAIC_REMOTE_EXPORT = True # macro
|
791
|
+
__QAIC_REMOTE_ATTRIBUTE = True # macro
|
792
|
+
NUM_DOMAINS = 4 # macro
|
793
|
+
NUM_SESSIONS = 2 # macro
|
794
|
+
DOMAIN_ID_MASK = 3 # macro
|
795
|
+
DEFAULT_DOMAIN_ID = 0 # macro
|
796
|
+
ADSP_DOMAIN_ID = 0 # macro
|
797
|
+
MDSP_DOMAIN_ID = 1 # macro
|
798
|
+
SDSP_DOMAIN_ID = 2 # macro
|
799
|
+
CDSP_DOMAIN_ID = 3 # macro
|
800
|
+
ADSP_DOMAIN = "&_dom=adsp" # macro
|
801
|
+
MDSP_DOMAIN = "&_dom=mdsp" # macro
|
802
|
+
SDSP_DOMAIN = "&_dom=sdsp" # macro
|
803
|
+
CDSP_DOMAIN = "&_dom=cdsp" # macro
|
804
|
+
FASTRPC_WAKELOCK_CONTROL_SUPPORTED = 1 # macro
|
805
|
+
REMOTE_MODE_PARALLEL = 0 # macro
|
806
|
+
REMOTE_MODE_SERIAL = 1 # macro
|
807
|
+
# ITRANSPORT_PREFIX = "'\":;./\\" # macro
|
808
|
+
remote_handle = ctypes.c_uint32
|
809
|
+
remote_handle64 = ctypes.c_uint64
|
810
|
+
fastrpc_async_jobid = ctypes.c_uint64
|
811
|
+
class struct_c__SA_remote_buf(Structure):
|
812
|
+
pass
|
813
|
+
|
814
|
+
struct_c__SA_remote_buf._pack_ = 1 # source:False
|
815
|
+
struct_c__SA_remote_buf._fields_ = [
|
816
|
+
('pv', ctypes.POINTER(None)),
|
817
|
+
('nLen', ctypes.c_uint64),
|
818
|
+
]
|
819
|
+
|
820
|
+
remote_buf = struct_c__SA_remote_buf
|
821
|
+
class struct_c__SA_remote_dma_handle(Structure):
|
822
|
+
pass
|
823
|
+
|
824
|
+
struct_c__SA_remote_dma_handle._pack_ = 1 # source:False
|
825
|
+
struct_c__SA_remote_dma_handle._fields_ = [
|
826
|
+
('fd', ctypes.c_int32),
|
827
|
+
('offset', ctypes.c_uint32),
|
828
|
+
]
|
829
|
+
|
830
|
+
remote_dma_handle = struct_c__SA_remote_dma_handle
|
831
|
+
class union_c__UA_remote_arg(Union):
|
832
|
+
pass
|
833
|
+
|
834
|
+
union_c__UA_remote_arg._pack_ = 1 # source:False
|
835
|
+
union_c__UA_remote_arg._fields_ = [
|
836
|
+
('buf', remote_buf),
|
837
|
+
('h', ctypes.c_uint32),
|
838
|
+
('h64', ctypes.c_uint64),
|
839
|
+
('dma', remote_dma_handle),
|
840
|
+
('PADDING_0', ctypes.c_ubyte * 8),
|
841
|
+
]
|
842
|
+
|
843
|
+
remote_arg = union_c__UA_remote_arg
|
844
|
+
remote_arg_t = remote_arg # macro
|
845
|
+
|
846
|
+
# values for enumeration 'fastrpc_async_notify_type'
|
847
|
+
fastrpc_async_notify_type__enumvalues = {
|
848
|
+
0: 'FASTRPC_ASYNC_NO_SYNC',
|
849
|
+
1: 'FASTRPC_ASYNC_CALLBACK',
|
850
|
+
2: 'FASTRPC_ASYNC_POLL',
|
851
|
+
3: 'FASTRPC_ASYNC_TYPE_MAX',
|
852
|
+
}
|
853
|
+
FASTRPC_ASYNC_NO_SYNC = 0
|
854
|
+
FASTRPC_ASYNC_CALLBACK = 1
|
855
|
+
FASTRPC_ASYNC_POLL = 2
|
856
|
+
FASTRPC_ASYNC_TYPE_MAX = 3
|
857
|
+
fastrpc_async_notify_type = ctypes.c_uint32 # enum
|
858
|
+
class struct_fastrpc_async_callback(Structure):
|
859
|
+
pass
|
860
|
+
|
861
|
+
struct_fastrpc_async_callback._pack_ = 1 # source:False
|
862
|
+
struct_fastrpc_async_callback._fields_ = [
|
863
|
+
('fn', ctypes.CFUNCTYPE(None, ctypes.c_uint64, ctypes.POINTER(None), ctypes.c_int32)),
|
864
|
+
('context', ctypes.POINTER(None)),
|
865
|
+
]
|
866
|
+
|
867
|
+
fastrpc_async_callback_t = struct_fastrpc_async_callback
|
868
|
+
class struct_fastrpc_async_descriptor(Structure):
|
869
|
+
pass
|
870
|
+
|
871
|
+
class union_fastrpc_async_descriptor_0(Union):
|
872
|
+
_pack_ = 1 # source:False
|
873
|
+
_fields_ = [
|
874
|
+
('cb', fastrpc_async_callback_t),
|
875
|
+
]
|
876
|
+
|
877
|
+
struct_fastrpc_async_descriptor._pack_ = 1 # source:False
|
878
|
+
struct_fastrpc_async_descriptor._anonymous_ = ('_0',)
|
879
|
+
struct_fastrpc_async_descriptor._fields_ = [
|
880
|
+
('type', fastrpc_async_notify_type),
|
881
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
882
|
+
('jobid', ctypes.c_uint64),
|
883
|
+
('_0', union_fastrpc_async_descriptor_0),
|
884
|
+
]
|
885
|
+
|
886
|
+
fastrpc_async_descriptor_t = struct_fastrpc_async_descriptor
|
887
|
+
|
888
|
+
# values for enumeration 'fastrpc_process_type'
|
889
|
+
fastrpc_process_type__enumvalues = {
|
890
|
+
0: 'PROCESS_TYPE_SIGNED',
|
891
|
+
1: 'PROCESS_TYPE_UNSIGNED',
|
892
|
+
}
|
893
|
+
PROCESS_TYPE_SIGNED = 0
|
894
|
+
PROCESS_TYPE_UNSIGNED = 1
|
895
|
+
fastrpc_process_type = ctypes.c_uint32 # enum
|
896
|
+
try:
|
897
|
+
remote_handle_open = _libraries['FIXME_STUB'].remote_handle_open
|
898
|
+
remote_handle_open.restype = ctypes.c_int32
|
899
|
+
remote_handle_open.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_uint32)]
|
900
|
+
except AttributeError:
|
901
|
+
pass
|
902
|
+
try:
|
903
|
+
remote_handle64_open = _libraries['FIXME_STUB'].remote_handle64_open
|
904
|
+
remote_handle64_open.restype = ctypes.c_int32
|
905
|
+
remote_handle64_open.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_uint64)]
|
906
|
+
except AttributeError:
|
907
|
+
pass
|
908
|
+
try:
|
909
|
+
remote_handle_invoke = _libraries['FIXME_STUB'].remote_handle_invoke
|
910
|
+
remote_handle_invoke.restype = ctypes.c_int32
|
911
|
+
remote_handle_invoke.argtypes = [remote_handle, uint32_t, ctypes.POINTER(union_c__UA_remote_arg)]
|
912
|
+
except AttributeError:
|
913
|
+
pass
|
914
|
+
try:
|
915
|
+
remote_handle64_invoke = _libraries['FIXME_STUB'].remote_handle64_invoke
|
916
|
+
remote_handle64_invoke.restype = ctypes.c_int32
|
917
|
+
remote_handle64_invoke.argtypes = [remote_handle64, uint32_t, ctypes.POINTER(union_c__UA_remote_arg)]
|
918
|
+
except AttributeError:
|
919
|
+
pass
|
920
|
+
try:
|
921
|
+
remote_handle_invoke_async = _libraries['FIXME_STUB'].remote_handle_invoke_async
|
922
|
+
remote_handle_invoke_async.restype = ctypes.c_int32
|
923
|
+
remote_handle_invoke_async.argtypes = [remote_handle, ctypes.POINTER(struct_fastrpc_async_descriptor), uint32_t, ctypes.POINTER(union_c__UA_remote_arg)]
|
924
|
+
except AttributeError:
|
925
|
+
pass
|
926
|
+
try:
|
927
|
+
remote_handle64_invoke_async = _libraries['FIXME_STUB'].remote_handle64_invoke_async
|
928
|
+
remote_handle64_invoke_async.restype = ctypes.c_int32
|
929
|
+
remote_handle64_invoke_async.argtypes = [remote_handle64, ctypes.POINTER(struct_fastrpc_async_descriptor), uint32_t, ctypes.POINTER(union_c__UA_remote_arg)]
|
930
|
+
except AttributeError:
|
931
|
+
pass
|
932
|
+
try:
|
933
|
+
remote_handle_close = _libraries['FIXME_STUB'].remote_handle_close
|
934
|
+
remote_handle_close.restype = ctypes.c_int32
|
935
|
+
remote_handle_close.argtypes = [remote_handle]
|
936
|
+
except AttributeError:
|
937
|
+
pass
|
938
|
+
try:
|
939
|
+
remote_handle64_close = _libraries['FIXME_STUB'].remote_handle64_close
|
940
|
+
remote_handle64_close.restype = ctypes.c_int32
|
941
|
+
remote_handle64_close.argtypes = [remote_handle64]
|
942
|
+
except AttributeError:
|
943
|
+
pass
|
944
|
+
|
945
|
+
# values for enumeration 'handle_control_req_id'
|
946
|
+
handle_control_req_id__enumvalues = {
|
947
|
+
1: 'DSPRPC_CONTROL_LATENCY',
|
948
|
+
2: 'DSPRPC_GET_DSP_INFO',
|
949
|
+
3: 'DSPRPC_CONTROL_WAKELOCK',
|
950
|
+
4: 'DSPRPC_GET_DOMAIN',
|
951
|
+
}
|
952
|
+
DSPRPC_CONTROL_LATENCY = 1
|
953
|
+
DSPRPC_GET_DSP_INFO = 2
|
954
|
+
DSPRPC_CONTROL_WAKELOCK = 3
|
955
|
+
DSPRPC_GET_DOMAIN = 4
|
956
|
+
handle_control_req_id = ctypes.c_uint32 # enum
|
957
|
+
|
958
|
+
# values for enumeration 'remote_rpc_latency_flags'
|
959
|
+
remote_rpc_latency_flags__enumvalues = {
|
960
|
+
0: 'RPC_DISABLE_QOS',
|
961
|
+
1: 'RPC_PM_QOS',
|
962
|
+
2: 'RPC_ADAPTIVE_QOS',
|
963
|
+
3: 'RPC_POLL_QOS',
|
964
|
+
}
|
965
|
+
RPC_DISABLE_QOS = 0
|
966
|
+
RPC_PM_QOS = 1
|
967
|
+
RPC_ADAPTIVE_QOS = 2
|
968
|
+
RPC_POLL_QOS = 3
|
969
|
+
remote_rpc_latency_flags = ctypes.c_uint32 # enum
|
970
|
+
remote_rpc_control_latency_t = remote_rpc_latency_flags
|
971
|
+
remote_rpc_control_latency_t__enumvalues = remote_rpc_latency_flags__enumvalues
|
972
|
+
class struct_remote_rpc_control_latency(Structure):
|
973
|
+
pass
|
974
|
+
|
975
|
+
struct_remote_rpc_control_latency._pack_ = 1 # source:False
|
976
|
+
struct_remote_rpc_control_latency._fields_ = [
|
977
|
+
('enable', remote_rpc_control_latency_t),
|
978
|
+
('latency', ctypes.c_uint32),
|
979
|
+
]
|
980
|
+
|
981
|
+
|
982
|
+
# values for enumeration 'remote_dsp_attributes'
|
983
|
+
remote_dsp_attributes__enumvalues = {
|
984
|
+
0: 'DOMAIN_SUPPORT',
|
985
|
+
1: 'UNSIGNED_PD_SUPPORT',
|
986
|
+
2: 'HVX_SUPPORT_64B',
|
987
|
+
3: 'HVX_SUPPORT_128B',
|
988
|
+
4: 'VTCM_PAGE',
|
989
|
+
5: 'VTCM_COUNT',
|
990
|
+
6: 'ARCH_VER',
|
991
|
+
7: 'HMX_SUPPORT_DEPTH',
|
992
|
+
8: 'HMX_SUPPORT_SPATIAL',
|
993
|
+
9: 'ASYNC_FASTRPC_SUPPORT',
|
994
|
+
10: 'STATUS_NOTIFICATION_SUPPORT',
|
995
|
+
11: 'FASTRPC_MAX_DSP_ATTRIBUTES',
|
996
|
+
}
|
997
|
+
DOMAIN_SUPPORT = 0
|
998
|
+
UNSIGNED_PD_SUPPORT = 1
|
999
|
+
HVX_SUPPORT_64B = 2
|
1000
|
+
HVX_SUPPORT_128B = 3
|
1001
|
+
VTCM_PAGE = 4
|
1002
|
+
VTCM_COUNT = 5
|
1003
|
+
ARCH_VER = 6
|
1004
|
+
HMX_SUPPORT_DEPTH = 7
|
1005
|
+
HMX_SUPPORT_SPATIAL = 8
|
1006
|
+
ASYNC_FASTRPC_SUPPORT = 9
|
1007
|
+
STATUS_NOTIFICATION_SUPPORT = 10
|
1008
|
+
FASTRPC_MAX_DSP_ATTRIBUTES = 11
|
1009
|
+
remote_dsp_attributes = ctypes.c_uint32 # enum
|
1010
|
+
class struct_remote_dsp_capability(Structure):
|
1011
|
+
pass
|
1012
|
+
|
1013
|
+
struct_remote_dsp_capability._pack_ = 1 # source:False
|
1014
|
+
struct_remote_dsp_capability._fields_ = [
|
1015
|
+
('domain', ctypes.c_uint32),
|
1016
|
+
('attribute_ID', ctypes.c_uint32),
|
1017
|
+
('capability', ctypes.c_uint32),
|
1018
|
+
]
|
1019
|
+
|
1020
|
+
fastrpc_capability = struct_remote_dsp_capability
|
1021
|
+
class struct_remote_rpc_control_wakelock(Structure):
|
1022
|
+
pass
|
1023
|
+
|
1024
|
+
struct_remote_rpc_control_wakelock._pack_ = 1 # source:False
|
1025
|
+
struct_remote_rpc_control_wakelock._fields_ = [
|
1026
|
+
('enable', ctypes.c_uint32),
|
1027
|
+
]
|
1028
|
+
|
1029
|
+
class struct_remote_rpc_get_domain(Structure):
|
1030
|
+
pass
|
1031
|
+
|
1032
|
+
struct_remote_rpc_get_domain._pack_ = 1 # source:False
|
1033
|
+
struct_remote_rpc_get_domain._fields_ = [
|
1034
|
+
('domain', ctypes.c_int32),
|
1035
|
+
]
|
1036
|
+
|
1037
|
+
remote_rpc_get_domain_t = struct_remote_rpc_get_domain
|
1038
|
+
try:
|
1039
|
+
remote_handle_control = _libraries['FIXME_STUB'].remote_handle_control
|
1040
|
+
remote_handle_control.restype = ctypes.c_int32
|
1041
|
+
remote_handle_control.argtypes = [uint32_t, ctypes.POINTER(None), uint32_t]
|
1042
|
+
except AttributeError:
|
1043
|
+
pass
|
1044
|
+
try:
|
1045
|
+
remote_handle64_control = _libraries['FIXME_STUB'].remote_handle64_control
|
1046
|
+
remote_handle64_control.restype = ctypes.c_int32
|
1047
|
+
remote_handle64_control.argtypes = [remote_handle64, uint32_t, ctypes.POINTER(None), uint32_t]
|
1048
|
+
except AttributeError:
|
1049
|
+
pass
|
1050
|
+
|
1051
|
+
# values for enumeration 'session_control_req_id'
|
1052
|
+
session_control_req_id__enumvalues = {
|
1053
|
+
1: 'FASTRPC_THREAD_PARAMS',
|
1054
|
+
2: 'DSPRPC_CONTROL_UNSIGNED_MODULE',
|
1055
|
+
4: 'FASTRPC_RELATIVE_THREAD_PRIORITY',
|
1056
|
+
6: 'FASTRPC_REMOTE_PROCESS_KILL',
|
1057
|
+
7: 'FASTRPC_SESSION_CLOSE',
|
1058
|
+
8: 'FASTRPC_CONTROL_PD_DUMP',
|
1059
|
+
9: 'FASTRPC_REMOTE_PROCESS_EXCEPTION',
|
1060
|
+
10: 'FASTRPC_REMOTE_PROCESS_TYPE',
|
1061
|
+
11: 'FASTRPC_REGISTER_STATUS_NOTIFICATIONS',
|
1062
|
+
}
|
1063
|
+
FASTRPC_THREAD_PARAMS = 1
|
1064
|
+
DSPRPC_CONTROL_UNSIGNED_MODULE = 2
|
1065
|
+
FASTRPC_RELATIVE_THREAD_PRIORITY = 4
|
1066
|
+
FASTRPC_REMOTE_PROCESS_KILL = 6
|
1067
|
+
FASTRPC_SESSION_CLOSE = 7
|
1068
|
+
FASTRPC_CONTROL_PD_DUMP = 8
|
1069
|
+
FASTRPC_REMOTE_PROCESS_EXCEPTION = 9
|
1070
|
+
FASTRPC_REMOTE_PROCESS_TYPE = 10
|
1071
|
+
FASTRPC_REGISTER_STATUS_NOTIFICATIONS = 11
|
1072
|
+
session_control_req_id = ctypes.c_uint32 # enum
|
1073
|
+
class struct_remote_rpc_thread_params(Structure):
|
1074
|
+
pass
|
1075
|
+
|
1076
|
+
struct_remote_rpc_thread_params._pack_ = 1 # source:False
|
1077
|
+
struct_remote_rpc_thread_params._fields_ = [
|
1078
|
+
('domain', ctypes.c_int32),
|
1079
|
+
('prio', ctypes.c_int32),
|
1080
|
+
('stack_size', ctypes.c_int32),
|
1081
|
+
]
|
1082
|
+
|
1083
|
+
class struct_remote_rpc_control_unsigned_module(Structure):
|
1084
|
+
pass
|
1085
|
+
|
1086
|
+
struct_remote_rpc_control_unsigned_module._pack_ = 1 # source:False
|
1087
|
+
struct_remote_rpc_control_unsigned_module._fields_ = [
|
1088
|
+
('domain', ctypes.c_int32),
|
1089
|
+
('enable', ctypes.c_int32),
|
1090
|
+
]
|
1091
|
+
|
1092
|
+
class struct_remote_rpc_relative_thread_priority(Structure):
|
1093
|
+
pass
|
1094
|
+
|
1095
|
+
struct_remote_rpc_relative_thread_priority._pack_ = 1 # source:False
|
1096
|
+
struct_remote_rpc_relative_thread_priority._fields_ = [
|
1097
|
+
('domain', ctypes.c_int32),
|
1098
|
+
('relative_thread_priority', ctypes.c_int32),
|
1099
|
+
]
|
1100
|
+
|
1101
|
+
class struct_remote_rpc_process_clean_params(Structure):
|
1102
|
+
pass
|
1103
|
+
|
1104
|
+
struct_remote_rpc_process_clean_params._pack_ = 1 # source:False
|
1105
|
+
struct_remote_rpc_process_clean_params._fields_ = [
|
1106
|
+
('domain', ctypes.c_int32),
|
1107
|
+
]
|
1108
|
+
|
1109
|
+
class struct_remote_rpc_session_close(Structure):
|
1110
|
+
pass
|
1111
|
+
|
1112
|
+
struct_remote_rpc_session_close._pack_ = 1 # source:False
|
1113
|
+
struct_remote_rpc_session_close._fields_ = [
|
1114
|
+
('domain', ctypes.c_int32),
|
1115
|
+
]
|
1116
|
+
|
1117
|
+
class struct_remote_rpc_control_pd_dump(Structure):
|
1118
|
+
pass
|
1119
|
+
|
1120
|
+
struct_remote_rpc_control_pd_dump._pack_ = 1 # source:False
|
1121
|
+
struct_remote_rpc_control_pd_dump._fields_ = [
|
1122
|
+
('domain', ctypes.c_int32),
|
1123
|
+
('enable', ctypes.c_int32),
|
1124
|
+
]
|
1125
|
+
|
1126
|
+
class struct_remote_process_type(Structure):
|
1127
|
+
pass
|
1128
|
+
|
1129
|
+
struct_remote_process_type._pack_ = 1 # source:False
|
1130
|
+
struct_remote_process_type._fields_ = [
|
1131
|
+
('domain', ctypes.c_int32),
|
1132
|
+
('process_type', ctypes.c_int32),
|
1133
|
+
]
|
1134
|
+
|
1135
|
+
remote_rpc_process_exception = struct_remote_rpc_process_clean_params
|
1136
|
+
|
1137
|
+
# values for enumeration 'remote_rpc_status_flags'
|
1138
|
+
remote_rpc_status_flags__enumvalues = {
|
1139
|
+
0: 'FASTRPC_USER_PD_UP',
|
1140
|
+
1: 'FASTRPC_USER_PD_EXIT',
|
1141
|
+
2: 'FASTRPC_USER_PD_FORCE_KILL',
|
1142
|
+
3: 'FASTRPC_USER_PD_EXCEPTION',
|
1143
|
+
4: 'FASTRPC_DSP_SSR',
|
1144
|
+
}
|
1145
|
+
FASTRPC_USER_PD_UP = 0
|
1146
|
+
FASTRPC_USER_PD_EXIT = 1
|
1147
|
+
FASTRPC_USER_PD_FORCE_KILL = 2
|
1148
|
+
FASTRPC_USER_PD_EXCEPTION = 3
|
1149
|
+
FASTRPC_DSP_SSR = 4
|
1150
|
+
remote_rpc_status_flags = ctypes.c_uint32 # enum
|
1151
|
+
remote_rpc_status_flags_t = remote_rpc_status_flags
|
1152
|
+
remote_rpc_status_flags_t__enumvalues = remote_rpc_status_flags__enumvalues
|
1153
|
+
fastrpc_notif_fn_t = ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.POINTER(None), ctypes.c_int32, ctypes.c_int32, remote_rpc_status_flags)
|
1154
|
+
class struct_remote_rpc_notif_register(Structure):
|
1155
|
+
pass
|
1156
|
+
|
1157
|
+
struct_remote_rpc_notif_register._pack_ = 1 # source:False
|
1158
|
+
struct_remote_rpc_notif_register._fields_ = [
|
1159
|
+
('context', ctypes.POINTER(None)),
|
1160
|
+
('domain', ctypes.c_int32),
|
1161
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
1162
|
+
('notifier_fn', ctypes.CFUNCTYPE(ctypes.c_int32, ctypes.POINTER(None), ctypes.c_int32, ctypes.c_int32, remote_rpc_status_flags)),
|
1163
|
+
]
|
1164
|
+
|
1165
|
+
remote_rpc_notif_register_t = struct_remote_rpc_notif_register
|
1166
|
+
try:
|
1167
|
+
remote_session_control = _libraries['FIXME_STUB'].remote_session_control
|
1168
|
+
remote_session_control.restype = ctypes.c_int32
|
1169
|
+
remote_session_control.argtypes = [uint32_t, ctypes.POINTER(None), uint32_t]
|
1170
|
+
except AttributeError:
|
1171
|
+
pass
|
1172
|
+
try:
|
1173
|
+
remote_mmap = _libraries['FIXME_STUB'].remote_mmap
|
1174
|
+
remote_mmap.restype = ctypes.c_int32
|
1175
|
+
remote_mmap.argtypes = [ctypes.c_int32, uint32_t, uint32_t, ctypes.c_int32, ctypes.POINTER(ctypes.c_uint32)]
|
1176
|
+
except AttributeError:
|
1177
|
+
pass
|
1178
|
+
try:
|
1179
|
+
remote_munmap = _libraries['FIXME_STUB'].remote_munmap
|
1180
|
+
remote_munmap.restype = ctypes.c_int32
|
1181
|
+
remote_munmap.argtypes = [uint32_t, ctypes.c_int32]
|
1182
|
+
except AttributeError:
|
1183
|
+
pass
|
1184
|
+
|
1185
|
+
# values for enumeration 'remote_mem_map_flags'
|
1186
|
+
remote_mem_map_flags__enumvalues = {
|
1187
|
+
0: 'REMOTE_MAP_MEM_STATIC',
|
1188
|
+
1: 'REMOTE_MAP_MAX_FLAG',
|
1189
|
+
}
|
1190
|
+
REMOTE_MAP_MEM_STATIC = 0
|
1191
|
+
REMOTE_MAP_MAX_FLAG = 1
|
1192
|
+
remote_mem_map_flags = ctypes.c_uint32 # enum
|
1193
|
+
uint64_t = ctypes.c_uint64
|
1194
|
+
size_t = ctypes.c_uint64
|
1195
|
+
try:
|
1196
|
+
remote_mem_map = _libraries['FIXME_STUB'].remote_mem_map
|
1197
|
+
remote_mem_map.restype = ctypes.c_int32
|
1198
|
+
remote_mem_map.argtypes = [ctypes.c_int32, ctypes.c_int32, ctypes.c_int32, uint64_t, size_t, ctypes.POINTER(ctypes.c_uint64)]
|
1199
|
+
except AttributeError:
|
1200
|
+
pass
|
1201
|
+
try:
|
1202
|
+
remote_mem_unmap = _libraries['FIXME_STUB'].remote_mem_unmap
|
1203
|
+
remote_mem_unmap.restype = ctypes.c_int32
|
1204
|
+
remote_mem_unmap.argtypes = [ctypes.c_int32, uint64_t, size_t]
|
1205
|
+
except AttributeError:
|
1206
|
+
pass
|
1207
|
+
|
1208
|
+
# values for enumeration 'remote_buf_attributes'
|
1209
|
+
remote_buf_attributes__enumvalues = {
|
1210
|
+
2: 'FASTRPC_ATTR_NON_COHERENT',
|
1211
|
+
4: 'FASTRPC_ATTR_COHERENT',
|
1212
|
+
8: 'FASTRPC_ATTR_KEEP_MAP',
|
1213
|
+
16: 'FASTRPC_ATTR_NOMAP',
|
1214
|
+
32: 'FASTRPC_ATTR_FORCE_NOFLUSH',
|
1215
|
+
64: 'FASTRPC_ATTR_FORCE_NOINVALIDATE',
|
1216
|
+
128: 'FASTRPC_ATTR_TRY_MAP_STATIC',
|
1217
|
+
}
|
1218
|
+
FASTRPC_ATTR_NON_COHERENT = 2
|
1219
|
+
FASTRPC_ATTR_COHERENT = 4
|
1220
|
+
FASTRPC_ATTR_KEEP_MAP = 8
|
1221
|
+
FASTRPC_ATTR_NOMAP = 16
|
1222
|
+
FASTRPC_ATTR_FORCE_NOFLUSH = 32
|
1223
|
+
FASTRPC_ATTR_FORCE_NOINVALIDATE = 64
|
1224
|
+
FASTRPC_ATTR_TRY_MAP_STATIC = 128
|
1225
|
+
remote_buf_attributes = ctypes.c_uint32 # enum
|
1226
|
+
try:
|
1227
|
+
remote_register_buf_attr = _libraries['FIXME_STUB'].remote_register_buf_attr
|
1228
|
+
remote_register_buf_attr.restype = None
|
1229
|
+
remote_register_buf_attr.argtypes = [ctypes.POINTER(None), ctypes.c_int32, ctypes.c_int32, ctypes.c_int32]
|
1230
|
+
except AttributeError:
|
1231
|
+
pass
|
1232
|
+
try:
|
1233
|
+
remote_register_buf = _libraries['FIXME_STUB'].remote_register_buf
|
1234
|
+
remote_register_buf.restype = None
|
1235
|
+
remote_register_buf.argtypes = [ctypes.POINTER(None), ctypes.c_int32, ctypes.c_int32]
|
1236
|
+
except AttributeError:
|
1237
|
+
pass
|
1238
|
+
try:
|
1239
|
+
remote_register_dma_handle_attr = _libraries['FIXME_STUB'].remote_register_dma_handle_attr
|
1240
|
+
remote_register_dma_handle_attr.restype = ctypes.c_int32
|
1241
|
+
remote_register_dma_handle_attr.argtypes = [ctypes.c_int32, uint32_t, uint32_t]
|
1242
|
+
except AttributeError:
|
1243
|
+
pass
|
1244
|
+
try:
|
1245
|
+
remote_register_dma_handle = _libraries['FIXME_STUB'].remote_register_dma_handle
|
1246
|
+
remote_register_dma_handle.restype = ctypes.c_int32
|
1247
|
+
remote_register_dma_handle.argtypes = [ctypes.c_int32, uint32_t]
|
1248
|
+
except AttributeError:
|
1249
|
+
pass
|
1250
|
+
try:
|
1251
|
+
remote_register_fd = _libraries['FIXME_STUB'].remote_register_fd
|
1252
|
+
remote_register_fd.restype = ctypes.POINTER(None)
|
1253
|
+
remote_register_fd.argtypes = [ctypes.c_int32, ctypes.c_int32]
|
1254
|
+
except AttributeError:
|
1255
|
+
pass
|
1256
|
+
try:
|
1257
|
+
fastrpc_async_get_status = _libraries['FIXME_STUB'].fastrpc_async_get_status
|
1258
|
+
fastrpc_async_get_status.restype = ctypes.c_int32
|
1259
|
+
fastrpc_async_get_status.argtypes = [fastrpc_async_jobid, ctypes.c_int32, ctypes.POINTER(ctypes.c_int32)]
|
1260
|
+
except AttributeError:
|
1261
|
+
pass
|
1262
|
+
try:
|
1263
|
+
fastrpc_release_async_job = _libraries['FIXME_STUB'].fastrpc_release_async_job
|
1264
|
+
fastrpc_release_async_job.restype = ctypes.c_int32
|
1265
|
+
fastrpc_release_async_job.argtypes = [fastrpc_async_jobid]
|
1266
|
+
except AttributeError:
|
1267
|
+
pass
|
1268
|
+
try:
|
1269
|
+
remote_set_mode = _libraries['FIXME_STUB'].remote_set_mode
|
1270
|
+
remote_set_mode.restype = ctypes.c_int32
|
1271
|
+
remote_set_mode.argtypes = [uint32_t]
|
1272
|
+
except AttributeError:
|
1273
|
+
pass
|
1274
|
+
|
1275
|
+
# values for enumeration 'fastrpc_map_flags'
|
1276
|
+
fastrpc_map_flags__enumvalues = {
|
1277
|
+
0: 'FASTRPC_MAP_STATIC',
|
1278
|
+
1: 'FASTRPC_MAP_RESERVED',
|
1279
|
+
2: 'FASTRPC_MAP_FD',
|
1280
|
+
3: 'FASTRPC_MAP_FD_DELAYED',
|
1281
|
+
4: 'FASTRPC_MAP_MAX',
|
1282
|
+
}
|
1283
|
+
FASTRPC_MAP_STATIC = 0
|
1284
|
+
FASTRPC_MAP_RESERVED = 1
|
1285
|
+
FASTRPC_MAP_FD = 2
|
1286
|
+
FASTRPC_MAP_FD_DELAYED = 3
|
1287
|
+
FASTRPC_MAP_MAX = 4
|
1288
|
+
fastrpc_map_flags = ctypes.c_uint32 # enum
|
1289
|
+
try:
|
1290
|
+
fastrpc_mmap = _libraries['FIXME_STUB'].fastrpc_mmap
|
1291
|
+
fastrpc_mmap.restype = ctypes.c_int32
|
1292
|
+
fastrpc_mmap.argtypes = [ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(None), ctypes.c_int32, size_t, fastrpc_map_flags]
|
1293
|
+
except AttributeError:
|
1294
|
+
pass
|
1295
|
+
try:
|
1296
|
+
fastrpc_munmap = _libraries['FIXME_STUB'].fastrpc_munmap
|
1297
|
+
fastrpc_munmap.restype = ctypes.c_int32
|
1298
|
+
fastrpc_munmap.argtypes = [ctypes.c_int32, ctypes.c_int32, ctypes.POINTER(None), size_t]
|
1299
|
+
except AttributeError:
|
1300
|
+
pass
|
1301
|
+
_APPS_STD_H = True # macro
|
1302
|
+
def __QAIC_HEADER(ff): # macro
|
1303
|
+
return ff
|
1304
|
+
__QAIC_HEADER_EXPORT = True # macro
|
1305
|
+
__QAIC_HEADER_ATTRIBUTE = True # macro
|
1306
|
+
def __QAIC_IMPL(ff): # macro
|
1307
|
+
return ff
|
1308
|
+
__QAIC_IMPL_EXPORT = True # macro
|
1309
|
+
__QAIC_IMPL_ATTRIBUTE = True # macro
|
1310
|
+
__QAIC_STRING1_OBJECT_DEFINED__ = True # macro
|
1311
|
+
__STRING1_OBJECT__ = True # macro
|
1312
|
+
class struct__cstring1_s(Structure):
|
1313
|
+
pass
|
1314
|
+
|
1315
|
+
struct__cstring1_s._pack_ = 1 # source:False
|
1316
|
+
struct__cstring1_s._fields_ = [
|
1317
|
+
('data', ctypes.POINTER(ctypes.c_char)),
|
1318
|
+
('dataLen', ctypes.c_int32),
|
1319
|
+
('PADDING_0', ctypes.c_ubyte * 4),
|
1320
|
+
]
|
1321
|
+
|
1322
|
+
_cstring1_t = struct__cstring1_s
|
1323
|
+
apps_std_FILE = ctypes.c_int32
|
1324
|
+
|
1325
|
+
# values for enumeration 'apps_std_SEEK'
|
1326
|
+
apps_std_SEEK__enumvalues = {
|
1327
|
+
0: 'APPS_STD_SEEK_SET',
|
1328
|
+
1: 'APPS_STD_SEEK_CUR',
|
1329
|
+
2: 'APPS_STD_SEEK_END',
|
1330
|
+
2147483647: '_32BIT_PLACEHOLDER_apps_std_SEEK',
|
1331
|
+
}
|
1332
|
+
APPS_STD_SEEK_SET = 0
|
1333
|
+
APPS_STD_SEEK_CUR = 1
|
1334
|
+
APPS_STD_SEEK_END = 2
|
1335
|
+
_32BIT_PLACEHOLDER_apps_std_SEEK = 2147483647
|
1336
|
+
apps_std_SEEK = ctypes.c_uint32 # enum
|
1337
|
+
class struct_apps_std_DIR(Structure):
|
1338
|
+
pass
|
1339
|
+
|
1340
|
+
struct_apps_std_DIR._pack_ = 1 # source:False
|
1341
|
+
struct_apps_std_DIR._fields_ = [
|
1342
|
+
('handle', ctypes.c_uint64),
|
1343
|
+
]
|
1344
|
+
|
1345
|
+
apps_std_DIR = struct_apps_std_DIR
|
1346
|
+
class struct_apps_std_DIRENT(Structure):
|
1347
|
+
pass
|
1348
|
+
|
1349
|
+
struct_apps_std_DIRENT._pack_ = 1 # source:False
|
1350
|
+
struct_apps_std_DIRENT._fields_ = [
|
1351
|
+
('ino', ctypes.c_int32),
|
1352
|
+
('name', ctypes.c_char * 255),
|
1353
|
+
('PADDING_0', ctypes.c_ubyte),
|
1354
|
+
]
|
1355
|
+
|
1356
|
+
apps_std_DIRENT = struct_apps_std_DIRENT
|
1357
|
+
class struct_apps_std_STAT(Structure):
|
1358
|
+
pass
|
1359
|
+
|
1360
|
+
struct_apps_std_STAT._pack_ = 1 # source:False
|
1361
|
+
struct_apps_std_STAT._fields_ = [
|
1362
|
+
('tsz', ctypes.c_uint64),
|
1363
|
+
('dev', ctypes.c_uint64),
|
1364
|
+
('ino', ctypes.c_uint64),
|
1365
|
+
('mode', ctypes.c_uint32),
|
1366
|
+
('nlink', ctypes.c_uint32),
|
1367
|
+
('rdev', ctypes.c_uint64),
|
1368
|
+
('size', ctypes.c_uint64),
|
1369
|
+
('atime', ctypes.c_int64),
|
1370
|
+
('atimensec', ctypes.c_int64),
|
1371
|
+
('mtime', ctypes.c_int64),
|
1372
|
+
('mtimensec', ctypes.c_int64),
|
1373
|
+
('ctime', ctypes.c_int64),
|
1374
|
+
('ctimensec', ctypes.c_int64),
|
1375
|
+
]
|
1376
|
+
|
1377
|
+
apps_std_STAT = struct_apps_std_STAT
|
1378
|
+
try:
|
1379
|
+
apps_std_fopen = _libraries['FIXME_STUB'].apps_std_fopen
|
1380
|
+
apps_std_fopen.restype = ctypes.c_int32
|
1381
|
+
apps_std_fopen.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32)]
|
1382
|
+
except AttributeError:
|
1383
|
+
pass
|
1384
|
+
try:
|
1385
|
+
apps_std_freopen = _libraries['FIXME_STUB'].apps_std_freopen
|
1386
|
+
apps_std_freopen.restype = ctypes.c_int32
|
1387
|
+
apps_std_freopen.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32)]
|
1388
|
+
except AttributeError:
|
1389
|
+
pass
|
1390
|
+
try:
|
1391
|
+
apps_std_fflush = _libraries['FIXME_STUB'].apps_std_fflush
|
1392
|
+
apps_std_fflush.restype = ctypes.c_int32
|
1393
|
+
apps_std_fflush.argtypes = [apps_std_FILE]
|
1394
|
+
except AttributeError:
|
1395
|
+
pass
|
1396
|
+
try:
|
1397
|
+
apps_std_fclose = _libraries['FIXME_STUB'].apps_std_fclose
|
1398
|
+
apps_std_fclose.restype = ctypes.c_int32
|
1399
|
+
apps_std_fclose.argtypes = [apps_std_FILE]
|
1400
|
+
except AttributeError:
|
1401
|
+
pass
|
1402
|
+
try:
|
1403
|
+
apps_std_fread = _libraries['FIXME_STUB'].apps_std_fread
|
1404
|
+
apps_std_fread.restype = ctypes.c_int32
|
1405
|
+
apps_std_fread.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_ubyte), ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32)]
|
1406
|
+
except AttributeError:
|
1407
|
+
pass
|
1408
|
+
try:
|
1409
|
+
apps_std_fwrite = _libraries['FIXME_STUB'].apps_std_fwrite
|
1410
|
+
apps_std_fwrite.restype = ctypes.c_int32
|
1411
|
+
apps_std_fwrite.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_ubyte), ctypes.c_int32, ctypes.POINTER(ctypes.c_int32), ctypes.POINTER(ctypes.c_int32)]
|
1412
|
+
except AttributeError:
|
1413
|
+
pass
|
1414
|
+
try:
|
1415
|
+
apps_std_fgetpos = _libraries['FIXME_STUB'].apps_std_fgetpos
|
1416
|
+
apps_std_fgetpos.restype = ctypes.c_int32
|
1417
|
+
apps_std_fgetpos.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_ubyte), ctypes.c_int32, ctypes.POINTER(ctypes.c_int32)]
|
1418
|
+
except AttributeError:
|
1419
|
+
pass
|
1420
|
+
try:
|
1421
|
+
apps_std_fsetpos = _libraries['FIXME_STUB'].apps_std_fsetpos
|
1422
|
+
apps_std_fsetpos.restype = ctypes.c_int32
|
1423
|
+
apps_std_fsetpos.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_ubyte), ctypes.c_int32]
|
1424
|
+
except AttributeError:
|
1425
|
+
pass
|
1426
|
+
try:
|
1427
|
+
apps_std_ftell = _libraries['FIXME_STUB'].apps_std_ftell
|
1428
|
+
apps_std_ftell.restype = ctypes.c_int32
|
1429
|
+
apps_std_ftell.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_int32)]
|
1430
|
+
except AttributeError:
|
1431
|
+
pass
|
1432
|
+
try:
|
1433
|
+
apps_std_fseek = _libraries['FIXME_STUB'].apps_std_fseek
|
1434
|
+
apps_std_fseek.restype = ctypes.c_int32
|
1435
|
+
apps_std_fseek.argtypes = [apps_std_FILE, ctypes.c_int32, apps_std_SEEK]
|
1436
|
+
except AttributeError:
|
1437
|
+
pass
|
1438
|
+
try:
|
1439
|
+
apps_std_flen = _libraries['FIXME_STUB'].apps_std_flen
|
1440
|
+
apps_std_flen.restype = ctypes.c_int32
|
1441
|
+
apps_std_flen.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_uint64)]
|
1442
|
+
except AttributeError:
|
1443
|
+
pass
|
1444
|
+
try:
|
1445
|
+
apps_std_rewind = _libraries['FIXME_STUB'].apps_std_rewind
|
1446
|
+
apps_std_rewind.restype = ctypes.c_int32
|
1447
|
+
apps_std_rewind.argtypes = [apps_std_FILE]
|
1448
|
+
except AttributeError:
|
1449
|
+
pass
|
1450
|
+
try:
|
1451
|
+
apps_std_feof = _libraries['FIXME_STUB'].apps_std_feof
|
1452
|
+
apps_std_feof.restype = ctypes.c_int32
|
1453
|
+
apps_std_feof.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_int32)]
|
1454
|
+
except AttributeError:
|
1455
|
+
pass
|
1456
|
+
try:
|
1457
|
+
apps_std_ferror = _libraries['FIXME_STUB'].apps_std_ferror
|
1458
|
+
apps_std_ferror.restype = ctypes.c_int32
|
1459
|
+
apps_std_ferror.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_int32)]
|
1460
|
+
except AttributeError:
|
1461
|
+
pass
|
1462
|
+
try:
|
1463
|
+
apps_std_clearerr = _libraries['FIXME_STUB'].apps_std_clearerr
|
1464
|
+
apps_std_clearerr.restype = ctypes.c_int32
|
1465
|
+
apps_std_clearerr.argtypes = [apps_std_FILE]
|
1466
|
+
except AttributeError:
|
1467
|
+
pass
|
1468
|
+
try:
|
1469
|
+
apps_std_print_string = _libraries['FIXME_STUB'].apps_std_print_string
|
1470
|
+
apps_std_print_string.restype = ctypes.c_int32
|
1471
|
+
apps_std_print_string.argtypes = [ctypes.POINTER(ctypes.c_char)]
|
1472
|
+
except AttributeError:
|
1473
|
+
pass
|
1474
|
+
try:
|
1475
|
+
apps_std_getenv = _libraries['FIXME_STUB'].apps_std_getenv
|
1476
|
+
apps_std_getenv.restype = ctypes.c_int32
|
1477
|
+
apps_std_getenv.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_int32, ctypes.POINTER(ctypes.c_int32)]
|
1478
|
+
except AttributeError:
|
1479
|
+
pass
|
1480
|
+
try:
|
1481
|
+
apps_std_setenv = _libraries['FIXME_STUB'].apps_std_setenv
|
1482
|
+
apps_std_setenv.restype = ctypes.c_int32
|
1483
|
+
apps_std_setenv.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
|
1484
|
+
except AttributeError:
|
1485
|
+
pass
|
1486
|
+
try:
|
1487
|
+
apps_std_unsetenv = _libraries['FIXME_STUB'].apps_std_unsetenv
|
1488
|
+
apps_std_unsetenv.restype = ctypes.c_int32
|
1489
|
+
apps_std_unsetenv.argtypes = [ctypes.POINTER(ctypes.c_char)]
|
1490
|
+
except AttributeError:
|
1491
|
+
pass
|
1492
|
+
try:
|
1493
|
+
apps_std_fopen_with_env = _libraries['FIXME_STUB'].apps_std_fopen_with_env
|
1494
|
+
apps_std_fopen_with_env.restype = ctypes.c_int32
|
1495
|
+
apps_std_fopen_with_env.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_int32)]
|
1496
|
+
except AttributeError:
|
1497
|
+
pass
|
1498
|
+
try:
|
1499
|
+
apps_std_fgets = _libraries['FIXME_STUB'].apps_std_fgets
|
1500
|
+
apps_std_fgets.restype = ctypes.c_int32
|
1501
|
+
apps_std_fgets.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_ubyte), ctypes.c_int32, ctypes.POINTER(ctypes.c_int32)]
|
1502
|
+
except AttributeError:
|
1503
|
+
pass
|
1504
|
+
try:
|
1505
|
+
apps_std_get_search_paths_with_env = _libraries['FIXME_STUB'].apps_std_get_search_paths_with_env
|
1506
|
+
apps_std_get_search_paths_with_env.restype = ctypes.c_int32
|
1507
|
+
apps_std_get_search_paths_with_env.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char), ctypes.POINTER(struct__cstring1_s), ctypes.c_int32, ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(ctypes.c_uint16)]
|
1508
|
+
except AttributeError:
|
1509
|
+
pass
|
1510
|
+
try:
|
1511
|
+
apps_std_fileExists = _libraries['FIXME_STUB'].apps_std_fileExists
|
1512
|
+
apps_std_fileExists.restype = ctypes.c_int32
|
1513
|
+
apps_std_fileExists.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_ubyte)]
|
1514
|
+
except AttributeError:
|
1515
|
+
pass
|
1516
|
+
try:
|
1517
|
+
apps_std_fsync = _libraries['FIXME_STUB'].apps_std_fsync
|
1518
|
+
apps_std_fsync.restype = ctypes.c_int32
|
1519
|
+
apps_std_fsync.argtypes = [apps_std_FILE]
|
1520
|
+
except AttributeError:
|
1521
|
+
pass
|
1522
|
+
try:
|
1523
|
+
apps_std_fremove = _libraries['FIXME_STUB'].apps_std_fremove
|
1524
|
+
apps_std_fremove.restype = ctypes.c_int32
|
1525
|
+
apps_std_fremove.argtypes = [ctypes.POINTER(ctypes.c_char)]
|
1526
|
+
except AttributeError:
|
1527
|
+
pass
|
1528
|
+
try:
|
1529
|
+
apps_std_fdopen_decrypt = _libraries['FIXME_STUB'].apps_std_fdopen_decrypt
|
1530
|
+
apps_std_fdopen_decrypt.restype = ctypes.c_int32
|
1531
|
+
apps_std_fdopen_decrypt.argtypes = [apps_std_FILE, ctypes.POINTER(ctypes.c_int32)]
|
1532
|
+
except AttributeError:
|
1533
|
+
pass
|
1534
|
+
try:
|
1535
|
+
apps_std_opendir = _libraries['FIXME_STUB'].apps_std_opendir
|
1536
|
+
apps_std_opendir.restype = ctypes.c_int32
|
1537
|
+
apps_std_opendir.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(struct_apps_std_DIR)]
|
1538
|
+
except AttributeError:
|
1539
|
+
pass
|
1540
|
+
try:
|
1541
|
+
apps_std_closedir = _libraries['FIXME_STUB'].apps_std_closedir
|
1542
|
+
apps_std_closedir.restype = ctypes.c_int32
|
1543
|
+
apps_std_closedir.argtypes = [ctypes.POINTER(struct_apps_std_DIR)]
|
1544
|
+
except AttributeError:
|
1545
|
+
pass
|
1546
|
+
try:
|
1547
|
+
apps_std_readdir = _libraries['FIXME_STUB'].apps_std_readdir
|
1548
|
+
apps_std_readdir.restype = ctypes.c_int32
|
1549
|
+
apps_std_readdir.argtypes = [ctypes.POINTER(struct_apps_std_DIR), ctypes.POINTER(struct_apps_std_DIRENT), ctypes.POINTER(ctypes.c_int32)]
|
1550
|
+
except AttributeError:
|
1551
|
+
pass
|
1552
|
+
try:
|
1553
|
+
apps_std_mkdir = _libraries['FIXME_STUB'].apps_std_mkdir
|
1554
|
+
apps_std_mkdir.restype = ctypes.c_int32
|
1555
|
+
apps_std_mkdir.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.c_int32]
|
1556
|
+
except AttributeError:
|
1557
|
+
pass
|
1558
|
+
try:
|
1559
|
+
apps_std_rmdir = _libraries['FIXME_STUB'].apps_std_rmdir
|
1560
|
+
apps_std_rmdir.restype = ctypes.c_int32
|
1561
|
+
apps_std_rmdir.argtypes = [ctypes.POINTER(ctypes.c_char)]
|
1562
|
+
except AttributeError:
|
1563
|
+
pass
|
1564
|
+
try:
|
1565
|
+
apps_std_stat = _libraries['FIXME_STUB'].apps_std_stat
|
1566
|
+
apps_std_stat.restype = ctypes.c_int32
|
1567
|
+
apps_std_stat.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(struct_apps_std_STAT)]
|
1568
|
+
except AttributeError:
|
1569
|
+
pass
|
1570
|
+
try:
|
1571
|
+
apps_std_ftrunc = _libraries['FIXME_STUB'].apps_std_ftrunc
|
1572
|
+
apps_std_ftrunc.restype = ctypes.c_int32
|
1573
|
+
apps_std_ftrunc.argtypes = [apps_std_FILE, ctypes.c_int32]
|
1574
|
+
except AttributeError:
|
1575
|
+
pass
|
1576
|
+
try:
|
1577
|
+
apps_std_frename = _libraries['FIXME_STUB'].apps_std_frename
|
1578
|
+
apps_std_frename.restype = ctypes.c_int32
|
1579
|
+
apps_std_frename.argtypes = [ctypes.POINTER(ctypes.c_char), ctypes.POINTER(ctypes.c_char)]
|
1580
|
+
except AttributeError:
|
1581
|
+
pass
|
1582
|
+
__all__ = \
|
1583
|
+
['ADSPRPC_SHARED_H', 'ADSP_DOMAIN', 'ADSP_DOMAIN_ID',
|
1584
|
+
'APPS_STD_SEEK_CUR', 'APPS_STD_SEEK_END', 'APPS_STD_SEEK_SET',
|
1585
|
+
'ARCH_VER', 'ASYNC_FASTRPC_SUPPORT', 'CAMERA_SECURE_CP_USAGE',
|
1586
|
+
'CDSP_DOMAIN', 'CDSP_DOMAIN_ID', 'DEFAULT_DOMAIN_ID',
|
1587
|
+
'DEVICE_NAME', 'DISPLAY_SECURE_CP_USAGE', 'DOMAIN_ID_MASK',
|
1588
|
+
'DOMAIN_SUPPORT', 'DSPRPC_CONTROL_LATENCY',
|
1589
|
+
'DSPRPC_CONTROL_UNSIGNED_MODULE', 'DSPRPC_CONTROL_WAKELOCK',
|
1590
|
+
'DSPRPC_GET_DOMAIN', 'DSPRPC_GET_DSP_INFO',
|
1591
|
+
'FASTRPC_ASYNC_CALLBACK', 'FASTRPC_ASYNC_NO_SYNC',
|
1592
|
+
'FASTRPC_ASYNC_POLL', 'FASTRPC_ASYNC_TYPE_MAX',
|
1593
|
+
'FASTRPC_ATTR_COHERENT', 'FASTRPC_ATTR_COHERENT',
|
1594
|
+
'FASTRPC_ATTR_FORCE_NOFLUSH', 'FASTRPC_ATTR_FORCE_NOINVALIDATE',
|
1595
|
+
'FASTRPC_ATTR_KEEP_MAP', 'FASTRPC_ATTR_KEEP_MAP',
|
1596
|
+
'FASTRPC_ATTR_NOMAP', 'FASTRPC_ATTR_NOMAP',
|
1597
|
+
'FASTRPC_ATTR_NON_COHERENT', 'FASTRPC_ATTR_NON_COHERENT',
|
1598
|
+
'FASTRPC_ATTR_NOVA', 'FASTRPC_ATTR_TRY_MAP_STATIC',
|
1599
|
+
'FASTRPC_CONTROL_KALLOC', 'FASTRPC_CONTROL_LATENCY',
|
1600
|
+
'FASTRPC_CONTROL_PD_DUMP', 'FASTRPC_CONTROL_SMMU',
|
1601
|
+
'FASTRPC_DSP_SSR', 'FASTRPC_GLINK_GUID', 'FASTRPC_INIT_ATTACH',
|
1602
|
+
'FASTRPC_INIT_ATTACH_SENSORS', 'FASTRPC_INIT_CREATE',
|
1603
|
+
'FASTRPC_INIT_CREATE_STATIC', 'FASTRPC_MAP_FD',
|
1604
|
+
'FASTRPC_MAP_FD_DELAYED', 'FASTRPC_MAP_MAX',
|
1605
|
+
'FASTRPC_MAP_RESERVED', 'FASTRPC_MAP_STATIC',
|
1606
|
+
'FASTRPC_MAX_DSP_ATTRIBUTES', 'FASTRPC_MODE_PARALLEL',
|
1607
|
+
'FASTRPC_MODE_PROFILE', 'FASTRPC_MODE_SERIAL',
|
1608
|
+
'FASTRPC_MODE_SESSION', 'FASTRPC_REGISTER_STATUS_NOTIFICATIONS',
|
1609
|
+
'FASTRPC_RELATIVE_THREAD_PRIORITY',
|
1610
|
+
'FASTRPC_REMOTE_PROCESS_EXCEPTION', 'FASTRPC_REMOTE_PROCESS_KILL',
|
1611
|
+
'FASTRPC_REMOTE_PROCESS_TYPE', 'FASTRPC_SESSION_CLOSE',
|
1612
|
+
'FASTRPC_SMD_GUID', 'FASTRPC_THREAD_PARAMS',
|
1613
|
+
'FASTRPC_USER_PD_EXCEPTION', 'FASTRPC_USER_PD_EXIT',
|
1614
|
+
'FASTRPC_USER_PD_FORCE_KILL', 'FASTRPC_USER_PD_UP',
|
1615
|
+
'FASTRPC_WAKELOCK_CONTROL_SUPPORTED', 'FIXED_HIGH', 'FIXED_LOW',
|
1616
|
+
'FIXED_MIDDLE', 'HMX_SUPPORT_DEPTH', 'HMX_SUPPORT_SPATIAL',
|
1617
|
+
'HVX_SUPPORT_128B', 'HVX_SUPPORT_64B', 'INVALID_HEAP_ID',
|
1618
|
+
'ION_ADSP_HEAP_ID', 'ION_ADSP_HEAP_NAME', 'ION_AUDIO_HEAP_ID',
|
1619
|
+
'ION_AUDIO_HEAP_NAME', 'ION_CAMERA_HEAP_ID',
|
1620
|
+
'ION_CAMERA_HEAP_NAME', 'ION_CP_MFC_HEAP_ID', 'ION_CP_MM_HEAP_ID',
|
1621
|
+
'ION_CP_WB_HEAP_ID', 'ION_FLAG_ALLOW_NON_CONTIG',
|
1622
|
+
'ION_FLAG_CACHED', 'ION_FLAG_CACHED_NEEDS_SYNC',
|
1623
|
+
'ION_FLAG_CP_APP', 'ION_FLAG_CP_BITSTREAM', 'ION_FLAG_CP_CAMERA',
|
1624
|
+
'ION_FLAG_CP_HLOS', 'ION_FLAG_CP_HLOS_FREE',
|
1625
|
+
'ION_FLAG_CP_NON_PIXEL', 'ION_FLAG_CP_PIXEL',
|
1626
|
+
'ION_FLAG_CP_SEC_DISPLAY', 'ION_FLAG_CP_TOUCH',
|
1627
|
+
'ION_FLAG_FORCE_CONTIGUOUS', 'ION_FLAG_POOL_FORCE_ALLOC',
|
1628
|
+
'ION_FLAG_POOL_PREFETCH', 'ION_FLAG_SECURE',
|
1629
|
+
'ION_FORCE_CONTIGUOUS', 'ION_HEAP_CARVEOUT_MASK',
|
1630
|
+
'ION_HEAP_ID_RESERVED', 'ION_HEAP_SYSTEM_CONTIG_MASK',
|
1631
|
+
'ION_HEAP_SYSTEM_MASK', 'ION_HEAP_TYPE_CARVEOUT',
|
1632
|
+
'ION_HEAP_TYPE_CHUNK', 'ION_HEAP_TYPE_CUSTOM',
|
1633
|
+
'ION_HEAP_TYPE_DMA', 'ION_HEAP_TYPE_DMA_MASK',
|
1634
|
+
'ION_HEAP_TYPE_HYP_CMA', 'ION_HEAP_TYPE_IOMMU',
|
1635
|
+
'ION_HEAP_TYPE_MSM_START', 'ION_HEAP_TYPE_SECURE_DMA',
|
1636
|
+
'ION_HEAP_TYPE_SYSTEM', 'ION_HEAP_TYPE_SYSTEM_CONTIG',
|
1637
|
+
'ION_HEAP_TYPE_SYSTEM_SECURE', 'ION_IOC_MAGIC',
|
1638
|
+
'ION_IOC_MSM_MAGIC', 'ION_IOMMU_HEAP_ID', 'ION_IOMMU_HEAP_NAME',
|
1639
|
+
'ION_KMALLOC_HEAP_NAME', 'ION_MFC_HEAP_NAME',
|
1640
|
+
'ION_MM_FIRMWARE_HEAP_ID', 'ION_MM_FIRMWARE_HEAP_NAME',
|
1641
|
+
'ION_MM_HEAP_NAME', 'ION_NUM_HEAPS', 'ION_PIL1_HEAP_ID',
|
1642
|
+
'ION_PIL1_HEAP_NAME', 'ION_PIL2_HEAP_ID', 'ION_PIL2_HEAP_NAME',
|
1643
|
+
'ION_QSECOM_HEAP_ID', 'ION_QSECOM_HEAP_NAME', 'ION_SECURE',
|
1644
|
+
'ION_SECURE_DISPLAY_HEAP_ID', 'ION_SECURE_DISPLAY_HEAP_NAME',
|
1645
|
+
'ION_SECURE_HEAP_ID', 'ION_SECURE_HEAP_NAME', 'ION_SF_HEAP_ID',
|
1646
|
+
'ION_SF_HEAP_NAME', 'ION_SYSTEM_CONTIG_HEAP_ID',
|
1647
|
+
'ION_SYSTEM_HEAP_ID', 'ION_SYSTEM_HEAP_NAME',
|
1648
|
+
'ION_VMALLOC_HEAP_NAME', 'ION_WB_HEAP_NAME', 'MAX_USAGE',
|
1649
|
+
'MDSP_DOMAIN', 'MDSP_DOMAIN_ID', 'NOT_FIXED', 'NUM_DOMAINS',
|
1650
|
+
'NUM_SESSIONS', 'PROCESS_TYPE_SIGNED', 'PROCESS_TYPE_UNSIGNED',
|
1651
|
+
'REMOTE_DEFAULT_H', 'REMOTE_MAP_MAX_FLAG',
|
1652
|
+
'REMOTE_MAP_MEM_STATIC', 'REMOTE_MODE_PARALLEL',
|
1653
|
+
'REMOTE_MODE_SERIAL', 'RPC_ADAPTIVE_QOS', 'RPC_DISABLE_QOS',
|
1654
|
+
'RPC_PM_QOS', 'RPC_POLL_QOS', 'SDSP_DOMAIN', 'SDSP_DOMAIN_ID',
|
1655
|
+
'STATUS_NOTIFICATION_SUPPORT', 'UNKNOWN', 'UNSIGNED_PD_SUPPORT',
|
1656
|
+
'VIDEO_BITSTREAM', 'VIDEO_NONPIXEL', 'VIDEO_PIXEL', 'VTCM_COUNT',
|
1657
|
+
'VTCM_PAGE', '_32BIT_PLACEHOLDER_apps_std_SEEK', '_APPS_STD_H',
|
1658
|
+
'_IO', '_IOR', '_IOW', '_IOWR', '_UAPI_LINUX_ION_H',
|
1659
|
+
'_UAPI_MSM_ION_H', '__QAIC_HEADER_ATTRIBUTE',
|
1660
|
+
'__QAIC_HEADER_EXPORT', '__QAIC_IMPL_ATTRIBUTE',
|
1661
|
+
'__QAIC_IMPL_EXPORT', '__QAIC_REMOTE_ATTRIBUTE',
|
1662
|
+
'__QAIC_REMOTE_EXPORT', '__QAIC_STRING1_OBJECT_DEFINED__',
|
1663
|
+
'__STRING1_OBJECT__', '_cstring1_t', 'apps_std_DIR',
|
1664
|
+
'apps_std_DIRENT', 'apps_std_FILE', 'apps_std_SEEK',
|
1665
|
+
'apps_std_STAT', 'apps_std_clearerr', 'apps_std_closedir',
|
1666
|
+
'apps_std_fclose', 'apps_std_fdopen_decrypt', 'apps_std_feof',
|
1667
|
+
'apps_std_ferror', 'apps_std_fflush', 'apps_std_fgetpos',
|
1668
|
+
'apps_std_fgets', 'apps_std_fileExists', 'apps_std_flen',
|
1669
|
+
'apps_std_fopen', 'apps_std_fopen_with_env', 'apps_std_fread',
|
1670
|
+
'apps_std_fremove', 'apps_std_frename', 'apps_std_freopen',
|
1671
|
+
'apps_std_fseek', 'apps_std_fsetpos', 'apps_std_fsync',
|
1672
|
+
'apps_std_ftell', 'apps_std_ftrunc', 'apps_std_fwrite',
|
1673
|
+
'apps_std_get_search_paths_with_env', 'apps_std_getenv',
|
1674
|
+
'apps_std_mkdir', 'apps_std_opendir', 'apps_std_print_string',
|
1675
|
+
'apps_std_readdir', 'apps_std_rewind', 'apps_std_rmdir',
|
1676
|
+
'apps_std_setenv', 'apps_std_stat', 'apps_std_unsetenv',
|
1677
|
+
'cp_mem_usage', 'fastrpc_async_callback_t',
|
1678
|
+
'fastrpc_async_descriptor_t', 'fastrpc_async_get_status',
|
1679
|
+
'fastrpc_async_jobid', 'fastrpc_async_notify_type',
|
1680
|
+
'fastrpc_capability', 'fastrpc_map_flags', 'fastrpc_mmap',
|
1681
|
+
'fastrpc_munmap', 'fastrpc_notif_fn_t', 'fastrpc_process_type',
|
1682
|
+
'fastrpc_release_async_job', 'handle_control_req_id',
|
1683
|
+
'ion_fixed_position', 'ion_heap_ids', 'ion_heap_type',
|
1684
|
+
'ion_user_handle_t', 'msm_ion_heap_types', 'remote_arg',
|
1685
|
+
'remote_arg_t', 'remote_buf', 'remote_buf_attributes',
|
1686
|
+
'remote_dma_handle', 'remote_dsp_attributes', 'remote_handle',
|
1687
|
+
'remote_handle64', 'remote_handle64_close',
|
1688
|
+
'remote_handle64_control', 'remote_handle64_invoke',
|
1689
|
+
'remote_handle64_invoke_async', 'remote_handle64_open',
|
1690
|
+
'remote_handle_close', 'remote_handle_control',
|
1691
|
+
'remote_handle_invoke', 'remote_handle_invoke_async',
|
1692
|
+
'remote_handle_open', 'remote_mem_map', 'remote_mem_map_flags',
|
1693
|
+
'remote_mem_unmap', 'remote_mmap', 'remote_munmap',
|
1694
|
+
'remote_register_buf', 'remote_register_buf_attr',
|
1695
|
+
'remote_register_dma_handle', 'remote_register_dma_handle_attr',
|
1696
|
+
'remote_register_fd', 'remote_rpc_control_latency_t',
|
1697
|
+
'remote_rpc_control_latency_t__enumvalues',
|
1698
|
+
'remote_rpc_get_domain_t', 'remote_rpc_latency_flags',
|
1699
|
+
'remote_rpc_notif_register_t', 'remote_rpc_process_exception',
|
1700
|
+
'remote_rpc_status_flags', 'remote_rpc_status_flags_t',
|
1701
|
+
'remote_rpc_status_flags_t__enumvalues', 'remote_session_control',
|
1702
|
+
'remote_set_mode', 'session_control_req_id', 'size_t',
|
1703
|
+
'smq_invoke_buf_start', 'smq_phy_page_start',
|
1704
|
+
'struct__cstring1_s', 'struct_apps_std_DIR',
|
1705
|
+
'struct_apps_std_DIRENT', 'struct_apps_std_STAT',
|
1706
|
+
'struct_c__SA_remote_buf', 'struct_c__SA_remote_dma_handle',
|
1707
|
+
'struct_fastrpc_async_callback',
|
1708
|
+
'struct_fastrpc_async_descriptor', 'struct_fastrpc_ctrl_kalloc',
|
1709
|
+
'struct_fastrpc_ctrl_latency', 'struct_fastrpc_ctrl_smmu',
|
1710
|
+
'struct_fastrpc_ioctl_control', 'struct_fastrpc_ioctl_init',
|
1711
|
+
'struct_fastrpc_ioctl_init_attrs', 'struct_fastrpc_ioctl_invoke',
|
1712
|
+
'struct_fastrpc_ioctl_invoke_attrs',
|
1713
|
+
'struct_fastrpc_ioctl_invoke_crc',
|
1714
|
+
'struct_fastrpc_ioctl_invoke_fd', 'struct_fastrpc_ioctl_mmap',
|
1715
|
+
'struct_fastrpc_ioctl_mmap_64', 'struct_fastrpc_ioctl_munmap',
|
1716
|
+
'struct_fastrpc_ioctl_munmap_64',
|
1717
|
+
'struct_fastrpc_ioctl_munmap_fd', 'struct_fastrpc_ioctl_perf',
|
1718
|
+
'struct_ion_allocation_data', 'struct_ion_custom_data',
|
1719
|
+
'struct_ion_fd_data', 'struct_ion_flush_data',
|
1720
|
+
'struct_ion_handle_data', 'struct_ion_prefetch_data',
|
1721
|
+
'struct_ion_prefetch_regions', 'struct_remote_buf',
|
1722
|
+
'struct_remote_buf64', 'struct_remote_dma_handle',
|
1723
|
+
'struct_remote_dma_handle64', 'struct_remote_dsp_capability',
|
1724
|
+
'struct_remote_process_type', 'struct_remote_rpc_control_latency',
|
1725
|
+
'struct_remote_rpc_control_pd_dump',
|
1726
|
+
'struct_remote_rpc_control_unsigned_module',
|
1727
|
+
'struct_remote_rpc_control_wakelock',
|
1728
|
+
'struct_remote_rpc_get_domain',
|
1729
|
+
'struct_remote_rpc_notif_register',
|
1730
|
+
'struct_remote_rpc_process_clean_params',
|
1731
|
+
'struct_remote_rpc_relative_thread_priority',
|
1732
|
+
'struct_remote_rpc_session_close',
|
1733
|
+
'struct_remote_rpc_thread_params', 'struct_smq_invoke',
|
1734
|
+
'struct_smq_invoke_buf', 'struct_smq_invoke_rsp',
|
1735
|
+
'struct_smq_msg', 'struct_smq_null_invoke', 'struct_smq_phy_page',
|
1736
|
+
'uint32_t', 'uint64_t', 'union_c__UA_remote_arg',
|
1737
|
+
'union_fastrpc_async_descriptor_0',
|
1738
|
+
'union_fastrpc_ioctl_control_0', 'union_remote_arg',
|
1739
|
+
'union_remote_arg64']
|