NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
nvrm_stream.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (c) 2007-2019 NVIDIA Corporation. All rights reserved.
4  *
5  * NVIDIA Corporation and its licensors retain all intellectual property
6  * and proprietary rights in and to this software, related documentation
7  * and any modifications thereto. Any use, reproduction, disclosure or
8  * distribution of this software and related documentation without an express
9  * license agreement from NVIDIA Corporation is strictly prohibited.
10  */
11 
12 #ifndef INCLUDED_nvrm_stream_H
13 #define INCLUDED_nvrm_stream_H
14 
15 #include "nvrm_memmgr.h"
16 #include "nvrm_module.h"
17 #include "nvrm_init.h"
18 #include "nvrm_host1x.h"
19 
20 struct NvRmSyncRec;
21 
22 #if defined(__cplusplus)
23 extern "C" {
24 #endif
25 
30 
35 
40 {
42 };
43 
47 typedef struct NvRmStreamRec
48 {
49  /*
50  * We need to know how many sync point increments have been used in each
51  * command buffer. (Parsing it would be very slow.) The client must keep
52  * these variables up to date accordingly (which sync point they are using,
53  * and how many times they have used it in the current buffer). Also, we
54  * need to insert an extra sync point every time we flush, in order to know
55  * when (1) the command buffer has been consumed and (2) memory can be
56  * unpinned. We use the sync point ID specified here for that operation.
57  * RM will automatically reset SyncPointsUsed to zero after every flush.
58  * The SyncPointID field may only be modified immediately after a
59  * NvRmStreamInit() or NvRmStreamFlush() call.
60  */
61  NvU32 SyncPointID;
62 
68 
76  NvBool UseImmediate;
77 
83  NvBool ClientManaged;
84 
90  NvBool NullKickoff;
91 
98 
99  /* The engine that the stream is using */
101 
102  /* The id of the class, the stream is using */
104 
112 
121 
133  struct NvRmStreamRec *pStream,
134  NvU32 SyncPointBase,
135  NvU32 SyncPointsUsed);
136 
141  void *pClientPriv;
142 
143  /* Storage for NvRmStreamFlags */
144  NvS32 Flags;
145 
146  /*** RM PRIVATE DATA STARTS HERE -- DO NOT ACCESS THE FOLLOWING FIELDS ***/
147 
153  void *pRmPriv;
154 
155  /*** Fields use by csim code path starts here */
156 
162 
168 
171 
172  /* Pointer to stream memory */
174  void *pMem;
175 } NvRmStream;
176 
182 {
183  NvU32 cmdBufSize; /* size of the command buffer in bytes. Must be a multiple of 8KB */
185 
189 #define NVRM_CMDBUF_GRANULARITY (8*1024)
190 
194 #define NVRM_CMDBUF_SIZE_MIN (48*1024)
195 
196 #define NVRM_SUPPORT_CHECKSUM 0
197 
198 #if NVRM_SUPPORT_CHECKSUM
199 #define NVRM_CALCULATE_CHECKSUM(FinalChecksum, NewValue) \
200  (FinalChecksum) ^= (NewValue)
201 #else
202 #define NVRM_CALCULATE_CHECKSUM(FinalChecksum, NewValue) {}
203 #endif
204 
209 #define NVRM_CH_OPCODE_ACQUIRE_MUTEX(MutexId) \
210  /* mutex ops are extended opcodes: ex-op, op, mutex id \
211  * aquire op is 0. \
212  */ \
213  ((14UL << 28) | (MutexId) )
214 #define NVRM_CH_OPCODE_RELEASE_MUTEX(MutexId) \
215  /* ex-op, op, mutex id */ \
216  ((14UL << 28) | (1 << 24) | (MutexId) )
217 #define NVRM_CH_OPCODE_SET_CLASS(ClassId, Offset, Mask) \
218  /* op, offset, classid, mask \
219  * setclass opcode is 0 \
220  */ \
221  (((NvU32)0 << 28) | ((Offset) << 16) | ((ClassId) << 6) | (Mask))
222 #define NVRM_CH_OPCODE_INCR(Addr, Count) \
223  /* op, addr, count */ \
224  (((NvU32)1 << 28) | ((Addr) << 16) | (Count))
225 #define NVRM_CH_OPCODE_NONINCR(Addr, Count) \
226  /* op, addr, count */ \
227  (((NvU32)2 << 28) | ((Addr) << 16) | (Count))
228 #define NVRM_CH_OPCODE_IMM(Addr, Value) \
229  /* op, addr, count */ \
230  (((NvU32)4 << 28) | ((Addr) << 16) | (Value))
231 #define NVRM_CH_OPCODE_MASK(Addr, Mask) \
232  /* op, addr, count */ \
233  (((NvU32)3 << 28) | ((Addr) << 16) | (Mask))
234 
238 enum { NVRM_STREAM_BEGIN_MAX_WORDS = 4096 };
239 
240 #define NVRM_STREAM_BEGIN(pStream, pCurrentArg, Words) \
241  do { pCurrentArg = NvRmStreamBegin(pStream, Words, 0, 0, 0); } while (0)
242 
243 #define NVRM_STREAM_BEGIN_WAIT(pStream, pCurrentArg, Words, Waits) \
244  do { pCurrentArg = NvRmStreamBegin(pStream, Words, Waits, 0, 0); } while (0)
245 
246 #define NVRM_STREAM_BEGIN_RELOC_GATHER(pStream, pCurrentArg, Words, Relocs, Gathers) \
247  do { \
248  pCurrentArg = NvRmStreamBegin(pStream, Words, 0, Relocs, Gathers); \
249  } while (0)
250 
251 #define NVRM_STREAM_BEGIN_RELOC_GATHER_WAIT(pStream, pCurrentArg, Words, Relocs, Gathers, Waits) \
252  do { \
253  pCurrentArg = NvRmStreamBegin(pStream, Words, Waits, Relocs, Gathers); \
254  } while (0)
255 
256 #define NVRM_STREAM_END(pStream, pCurrentArg) \
257  do { NvRmStreamEnd(pStream, pCurrentArg); } while (0)
258 
259 #define NVRM_STREAM_PUSH_U(pStream, u1) \
260  do { \
261  NvRmStream *s = (NvRmStream *)(pStream); \
262  (void) NvRmStreamPush(s, (u1)); \
263  } while (NV_FALSE)
264 
272 #define NVRM_STREAM_PUSH_FALCON_METHOD_RELOC_SHIFT_T(pStream, pCurrentArg, Method, hMemArg, OffsetArg, ShiftArg, TypeArg) \
273  do { \
274  pCurrentArg = NvRmStreamPushFalconMethodRelocType((pStream), \
275  (pCurrentArg), (Method), (hMemArg), (OffsetArg), (ShiftArg), (TypeArg)); \
276  } while (0)
277 
278 #define NVRM_STREAM_PUSH_FALCON_METHOD_RELOC_SHIFT(pStream, pCurrentArg, Method, hMemArg, OffsetArg, ShiftArg) \
279  do { \
280  pCurrentArg = NvRmStreamPushFalconMethodReloc((pStream), \
281  (pCurrentArg), (Method), (hMemArg), (OffsetArg), (ShiftArg)); \
282  } while (0)
283 
284 #define NVRM_STREAM_PUSH_FALCON_METHOD(pStream, pCurrentArg, Method0, Method1) \
285  do { \
286  pCurrentArg = NvRmStreamPushFalconMethod((pStream), (pCurrentArg), \
287  (Method0), (Method1)); \
288  } while (0)
289 
297 #define NVRM_STREAM_PUSH_RELOC_SHIFT(pStream, pCurrentArg, hMemArg, OffsetArg, ShiftArg) \
298  do { \
299  pCurrentArg = NvRmStreamPushReloc((pStream), (pCurrentArg), \
300  (hMemArg), (OffsetArg), (ShiftArg)); \
301  } while (0)
302 
303 #define NVRM_STREAM_PUSH_RELOC(pStream, pCurrentArg, hMemArg, OffsetArg) \
304  NVRM_STREAM_PUSH_RELOC_SHIFT(pStream, pCurrentArg, hMemArg, OffsetArg, 0)
305 
313 #define NVRM_STREAM_PUSH_RELOC_SHIFT_T(pStream, pCurrentArg, hMemArg, OffsetArg, ShiftArg, TypeArg) \
314  do { \
315  pCurrentArg = NvRmStreamPushRelocType((pStream), (pCurrentArg), \
316  (hMemArg), (OffsetArg), (ShiftArg), (TypeArg)); \
317  } while (0)
318 
319 #define NVRM_STREAM_PUSH_RELOC_T(pStream, pCurrentArg, hMemArg, OffsetArg, TypeArg) \
320  NVRM_STREAM_PUSH_RELOC_SHIFT_T(pStream, pCurrentArg, hMemArg, OffsetArg, 0, TypeArg)
321 
322 #define NVRM_STREAM_PUSH_GATHER(pStream, pCurrentArg, hMemArg, OffsetArg, WordsArg) \
323  do { \
324  pCurrentArg = NvRmStreamPushGather((pStream), (pCurrentArg), \
325  (hMemArg), (OffsetArg), (WordsArg)); \
326  } while (0)
327 
328 #define NVRM_STREAM_PUSH_FD_RELOC_SHIFT(pStream, pCurrentArg, fd, OffsetArg, ShiftArg) \
329  do { \
330  pCurrentArg = NvRmStreamPushFdReloc((pStream), (pCurrentArg), \
331  (fd), (OffsetArg), (ShiftArg)); \
332  } while (0)
333 
334 #define NVRM_STREAM_PUSH_FD_RELOC(pStream, pCurrentArg, fd, OffsetArg) \
335  NVRM_STREAM_PUSH_FD_RELOC_SHIFT(pStream, pCurrentArg, fd, OffsetArg, 0)
336 
337 #define NVRM_STREAM_PUSH_FD_GATHER(pStream, pCurrentArg, fd, OffsetArg, WordsArg) \
338  do { \
339  pCurrentArg = NvRmStreamPushFdGather((pStream), (pCurrentArg), \
340  (fd), (OffsetArg), (WordsArg)); \
341  } while (0)
342 
343 #define NVRM_STREAM_PUSH_SETCLASS(pStream, pCurrentArg, ModuleArg, ClassArg) \
344  do { \
345  pCurrentArg = NvRmStreamPushSetClass((pStream), (pCurrentArg), \
346  (ModuleArg), (ClassArg)); \
347  } while (0)
348 
349 #define NVRM_STREAM_PUSH_INCR(pStream, pCurrentArg, SyncPointArg, RegArg, CondArg, StreamArg) \
350  do { \
351  pCurrentArg = NvRmStreamPushIncr((pStream), (pCurrentArg), \
352  (SyncPointArg), (RegArg), (CondArg), (StreamArg)); \
353  } while (0)
354 
355 #define NVRM_STREAM_PUSH_WAIT(pStream, pCurrentArg, FenceArg) \
356  do { \
357  pCurrentArg = NvRmStreamPushWait((pStream), \
358  (pCurrentArg), (FenceArg)); \
359  } while (0)
360 
361 
365 #define NVRM_MUTEX_INVALID ((NvU32)-1)
366 
378 };
379 
386 
387 /* use this define to decouple submission into multiple repos. */
388 #define NVCONFIG_NVRMSTREAMINITEX_SUPPORTED
389 
390 
413  NvRmDeviceHandle hDevice,
414  NvRmChannelHandle hChannel,
415  const NvRmStreamInitParams* pInitParams,
416  NvRmStream *pStream);
417 
442  NvRmDeviceHandle hDevice,
443  NvRmChannelHandle hChannel,
444  NvRmStream *pStream);
445 
471  NvRmStream *pStream,
472  NvU32 words,
473  NvU32 waits,
474  NvU32 relocs,
475  NvU32 gathers);
476 
495 void NvRmStreamEnd(
496  NvRmStream *pStream,
497  NvData32 *pCurrent);
498 
499 NvError NvRmStreamPush(NvRmStream *pStream, NvU32 word);
500 
526  NvRmStream *pStream,
527  NvData32 *pCurrent,
528  NvRmMemHandle hMem,
529  NvU32 Offset,
530  NvU32 RelocShift);
531 
559  NvRmStream *pStream,
560  NvData32 *pCurrent,
561  NvRmMemHandle hMem,
562  NvU32 Offset,
563  NvU32 RelocShift,
564  NvU32 RelocType);
565 
591  NvRmStream *pStream,
592  NvData32 *pCurrent,
593  int fd,
594  NvU32 Offset,
595  NvU32 RelocShift);
596 
622  NvRmStream *pStream,
623  NvData32 *pCurrent,
624  NvRmMemHandle hMem,
625  NvU32 Offset,
626  NvU32 Words);
627 
653  NvRmStream *pStream,
654  NvData32 *pCurrent,
655  int fd,
656  NvU32 Offset,
657  NvU32 Words);
658 
682  NvRmStream *pStream,
683  NvData32 *pCurrent,
684  NvRmModuleID moduleId,
685  NvU32 classId);
686 
717  NvRmStream *pStream,
718  NvData32 *pCurrent,
719  NvU32 Method,
720  NvRmMemHandle hMem,
721  NvU32 Offset,
722  NvU32 RelocShift,
723  NvU32 RelocType);
724 
753  NvRmStream *pStream,
754  NvData32 *pCurrent,
755  NvU32 Method,
756  NvRmMemHandle hMem,
757  NvU32 Offset,
758  NvU32 RelocShift);
759 
783  NvRmStream *pStream,
784  NvData32 *pCurrent,
785  NvU32 Method0,
786  NvU32 Method1);
787 
815  NvRmStream *pStream,
816  NvData32 *pCurrent,
817  NvU32 syncPointId,
818  NvU32 reg,
819  NvU32 cond,
820  NvBool streamSyncPoint);
821 
841  NvRmStream *pStream,
842  NvU32 SyncPointID);
843 
867  NvRmStream *pStream,
868  NvData32 *pCurrent,
869  NvRmFence fence);
870 
896  NvRmStream *pStream,
897  NvData32 *pCurrent,
898  NvU32 numFences,
899  NvRmFence *fences);
900 
925  NvRmStream *pStream,
926  int fence_fd);
927 
948 NvError NvRmStreamSetWaitSync(NvRmStream *pStream, const struct NvRmSyncRec *pSync);
949 
968 void NvRmStreamFree(NvRmStream *pStream);
969 
991  NvRmStream *pStream);
992 
1011 void NvRmStreamSetError(NvRmStream *pStream, NvError err);
1012 
1039 void NvRmStreamFlush(NvRmStream *pStream, NvRmFence *pFence);
1040 
1059 int NvRmStreamFlushFenceFd(NvRmStream *pStream, const char *name);
1060 
1082 NvError NvRmStreamFlushSync(NvRmStream *pStream, struct NvRmSyncRec **pSync);
1083 
1086 #if defined(__cplusplus)
1087 }
1088 #endif
1089 
1090 #endif
nvrm_host1x.h
NvRmStreamRec::UseImmediate
NvBool UseImmediate
Use Immediate sync pt increments instead of Operation Done to determine when a command buffer is flus...
Definition: nvrm_stream.h:76
nvrm_memmgr.h
NvRmStreamRec::LastClassUsed
NvU32 LastClassUsed
Definition: nvrm_stream.h:103
NvRmStreamRec::checksumMethods
NvU32 checksumMethods
Definition: nvrm_stream.h:169
NvError
NvError
The NvError enumeration contains ALL return / error codes.
Definition: nverror.h:43
NvRmStreamBegin
NvData32 * NvRmStreamBegin(NvRmStream *pStream, NvU32 words, NvU32 waits, NvU32 relocs, NvU32 gathers)
Begin a new stream.
NvRmStreamFlushSync
NvError NvRmStreamFlushSync(NvRmStream *pStream, struct NvRmSyncRec **pSync)
Same as NvRmStreamFlush, but returns a NvRmSync.
NvRmStreamInitParams
struct NvRmStreamInitParamsRec NvRmStreamInitParams
An exposed, non-opaque structure describing parameters that can be overridden when initializing an Nv...
NvRmStreamFlag
NvRmStreamFlag
Valid flags for NvRmStream structure.
Definition: nvrm_stream.h:39
NvRmStreamRec::LastEngineUsed
NvRmModuleID LastEngineUsed
Definition: nvrm_stream.h:100
NvRmStreamRec::ContextShadowCopySize
NvU32 ContextShadowCopySize
Definition: nvrm_stream.h:120
NVRM_STREAM_GATHER_TABLE_SIZE
@ NVRM_STREAM_GATHER_TABLE_SIZE
Definition: nvrm_stream.h:34
NvRmStreamInitParamsRec
An exposed, non-opaque structure describing parameters that can be overridden when initializing an Nv...
Definition: nvrm_stream.h:181
NvRmStreamRec::SyncPointID
NvU32 SyncPointID
Definition: nvrm_stream.h:61
NvRmStream
struct NvRmStreamRec NvRmStream
An exposed (not opaque) structure for a stream.
NvRmStreamRelocType_Pitch
@ NvRmStreamRelocType_Pitch
Definition: nvrm_stream.h:372
NvRmStreamRelocType_Default
@ NvRmStreamRelocType_Default
Definition: nvrm_stream.h:371
NvRmStreamRec::hContext
NvRmContextHandle hContext
The hardware context, if any, currently being used by this stream.
Definition: nvrm_stream.h:111
NvRmStreamRec::SyncPointsUsed
NvU32 SyncPointsUsed
The SyncPointsUsed field is expected to be incremented by the client whenever the client inserts a sy...
Definition: nvrm_stream.h:67
NvRmStreamFree
void NvRmStreamFree(NvRmStream *pStream)
Frees the resources associated with a stream struct.
NvRmStreamPushReloc
NvData32 * NvRmStreamPushReloc(NvRmStream *pStream, NvData32 *pCurrent, NvRmMemHandle hMem, NvU32 Offset, NvU32 RelocShift)
Push a relocation to stream.
NvRmStreamRec::pCurrent
NvData32 * pCurrent
This points to the current location we are writing to.
Definition: nvrm_stream.h:167
NvRmStreamPushSetClass
NvData32 * NvRmStreamPushSetClass(NvRmStream *pStream, NvData32 *pCurrent, NvRmModuleID moduleId, NvU32 classId)
Push a setclass.
NvRmStreamGetError
NvError NvRmStreamGetError(NvRmStream *pStream)
NvRmStreamGetError returns the value of the stream ErrorFlag.
NvRmStreamRec::pBase
NvData32 * pBase
pBase points to the base of the command buffer chunk that we are currently filling in.
Definition: nvrm_stream.h:161
NvRmStreamPushFalconMethodReloc
NvData32 * NvRmStreamPushFalconMethodReloc(NvRmStream *pStream, NvData32 *pCurrent, NvU32 Method, NvRmMemHandle hMem, NvU32 Offset, NvU32 RelocShift)
Push operations to write into Falcon METHOD0 and METHOD1 registers.
NvRmStreamFlush
void NvRmStreamFlush(NvRmStream *pStream, NvRmFence *pFence)
Flushes a stream so that all commands previously inserted are guaranteed to reach the hardware in fin...
NVRM_STREAM_RELOCATION_TABLE_SIZE
@ NVRM_STREAM_RELOCATION_TABLE_SIZE
Definition: nvrm_stream.h:29
NvRmFenceRec
@IgnoreForDoc
Definition: nvrm_host1x_safe_compat.h:54
NvRmStreamPushRelocType
NvData32 * NvRmStreamPushRelocType(NvRmStream *pStream, NvData32 *pCurrent, NvRmMemHandle hMem, NvU32 Offset, NvU32 RelocShift, NvU32 RelocType)
Push a relocation to stream.
NvRmStreamInitParamsRec::cmdBufSize
NvU32 cmdBufSize
Definition: nvrm_stream.h:183
NvRmStreamPushFdReloc
NvData32 * NvRmStreamPushFdReloc(NvRmStream *pStream, NvData32 *pCurrent, int fd, NvU32 Offset, NvU32 RelocShift)
Push a relocation to stream.
NvRmStreamEnd
void NvRmStreamEnd(NvRmStream *pStream, NvData32 *pCurrent)
End a stream.
NvRmStreamFlag_Invalid
@ NvRmStreamFlag_Invalid
Definition: nvrm_stream.h:41
NvRmStreamSetFenceFd
void NvRmStreamSetFenceFd(NvRmStream *pStream, int fence_fd)
Add a host wait for the fence fd at the current point in the stream.
fence
const WFDSource const NvSciSyncFence *const fence
Definition: wfdext.h:525
NvRmStreamInitEx
NvError NvRmStreamInitEx(NvRmDeviceHandle hDevice, NvRmChannelHandle hChannel, const NvRmStreamInitParams *pInitParams, NvRmStream *pStream)
This api is to initialize a stream struct.
NvRmStreamPushWait
NvData32 * NvRmStreamPushWait(NvRmStream *pStream, NvData32 *pCurrent, NvRmFence fence)
Push a host wait to stream.
NvRmMemHandle
struct NvRmMemRec * NvRmMemHandle
Definition: nvrm_memmgr_safe.h:160
NvRmContextHandle
struct NvRmContextRec * NvRmContextHandle
A type-safe handle for a hardware context, for the engines where such a concept is applicable.
Definition: nvrm_host1x.h:35
NvRmStreamRec
An exposed (not opaque) structure for a stream.
Definition: nvrm_stream.h:47
NvRmStreamInitParamsSetDefaults
void NvRmStreamInitParamsSetDefaults(NvRmStreamInitParams *pInitParams)
Sets the specified initialization parameters to default values.
NvRmStreamRec::hMem
NvRmMemHandle hMem
Definition: nvrm_stream.h:173
NvRmModuleID
NvRmModuleID
Defines SOC hardware controller class identifiers.
Definition: nvrm_module.h:68
nvrm_module.h
NVIDIA Driver Development Kit: Resource Manager Module Control APIs
NvRmStreamRec::NullKickoff
NvBool NullKickoff
The NULL-Kickoff driver for a given stream: all of the "work" is done but the hardware doesn't ever f...
Definition: nvrm_stream.h:90
NvRmStreamRec::ClientManaged
NvBool ClientManaged
Client-managed sync point.
Definition: nvrm_stream.h:83
NvRmStreamRec::pMem
void * pMem
Definition: nvrm_stream.h:174
NvRmStreamPush
NvError NvRmStreamPush(NvRmStream *pStream, NvU32 word)
void
typedef void(WFD_APIENTRY PFNWFDBINDSOURCETOPIPELINEWITHTIMESTAMPNV)(const WFDDevice device
NvRmStreamRelocTypeRec
NvRmStreamRelocTypeRec
Supported Reloc types.
Definition: nvrm_stream.h:370
NvRmDeviceHandle
struct NvRmDeviceRec * NvRmDeviceHandle
Definition: nvrm_defs.h:19
NvRmStreamSetError
void NvRmStreamSetError(NvRmStream *pStream, NvError err)
NvRmStreamSetError updates ErrorFlag if ErrorFlag is NvSuccess.
NvRmStreamPushFalconMethodRelocType
NvData32 * NvRmStreamPushFalconMethodRelocType(NvRmStream *pStream, NvData32 *pCurrent, NvU32 Method, NvRmMemHandle hMem, NvU32 Offset, NvU32 RelocShift, NvU32 RelocType)
Push operations to write into Falcon METHOD0 and METHOD1 registers.
NVRM_STREAM_BEGIN_MAX_WORDS
@ NVRM_STREAM_BEGIN_MAX_WORDS
Definition: nvrm_stream.h:234
NvData32Rec
Union that can be used to view a 32-bit word as your choice of a 32-bit unsigned integer,...
Definition: nvcommon.h:232
NvRmStreamRec::pContextShadowCopy
NvU32 * pContextShadowCopy
XXX hContext should be made a transparent structure with a private pointer and a public part.
Definition: nvrm_stream.h:119
NvRmStreamRec::checksumFalconMethods
NvU32 checksumFalconMethods
Definition: nvrm_stream.h:170
NvRmStreamRelocType_Blocklinear
@ NvRmStreamRelocType_Blocklinear
Definition: nvrm_stream.h:373
NvRmStreamRec::pSyncPointBaseCallback
void(* pSyncPointBaseCallback)(struct NvRmStreamRec *pStream, NvU32 SyncPointBase, NvU32 SyncPointsUsed)
Sync point callback: this callback will inform the client what sync point base it actually ended up g...
Definition: nvrm_stream.h:132
NvRmStreamRec::ErrorFlag
NvError ErrorFlag
ErrorFlag keeps first detected NvError code since last NvRmStreamGetError() call.
Definition: nvrm_stream.h:97
NvRmStreamRec::Flags
NvS32 Flags
Definition: nvrm_stream.h:144
NvRmChannelHandle
struct NvRmChannelRec * NvRmChannelHandle
A type-safe handle for a channel.
Definition: nvrm_host1x.h:29
NvRmStreamPushFdGather
NvData32 * NvRmStreamPushFdGather(NvRmStream *pStream, NvData32 *pCurrent, int fd, NvU32 Offset, NvU32 Words)
Push a gather to stream.
NvRmStreamInit
NvError NvRmStreamInit(NvRmDeviceHandle hDevice, NvRmChannelHandle hChannel, NvRmStream *pStream)
Initializes a stream struct.
NvRmStreamSetWaitSync
NvError NvRmStreamSetWaitSync(NvRmStream *pStream, const struct NvRmSyncRec *pSync)
Add a host wait for the given NvRmSync at the current point in the stream.
NvRmStreamPushIncr
NvData32 * NvRmStreamPushIncr(NvRmStream *pStream, NvData32 *pCurrent, NvU32 syncPointId, NvU32 reg, NvU32 cond, NvBool streamSyncPoint)
Push a sync point increment to stream.
NvRmStreamFlushFenceFd
int NvRmStreamFlushFenceFd(NvRmStream *pStream, const char *name)
Same as NvRmStreamFlush, but returns a sync fd.
NvRmStreamPushCpuIncr
void NvRmStreamPushCpuIncr(NvRmStream *pStream, NvU32 SyncPointID)
Mark a kernel managed syncpoint as used.
NvRmStreamRec::pClientPriv
void * pClientPriv
Private data member available for use by the client of the API.
Definition: nvrm_stream.h:141
nvrm_init.h
NvRmStreamRec::pRmPriv
void * pRmPriv
Opaque pointer to RM private data associated with this stream.
Definition: nvrm_stream.h:153
NvRmStreamPushFalconMethod
NvData32 * NvRmStreamPushFalconMethod(NvRmStream *pStream, NvData32 *pCurrent, NvU32 Method0, NvU32 Method1)
Push operations to write into Falcon METHOD0 and METHOD1 registers.
NvRmStreamPushGather
NvData32 * NvRmStreamPushGather(NvRmStream *pStream, NvData32 *pCurrent, NvRmMemHandle hMem, NvU32 Offset, NvU32 Words)
Push a gather to stream.
NvRmStreamPushWaits
NvData32 * NvRmStreamPushWaits(NvRmStream *pStream, NvData32 *pCurrent, NvU32 numFences, NvRmFence *fences)
Push a host wait to stream.