NVIDIA DriveOS Linux SDK API Reference

7.2.5.0 Early Access Release
NvRmStreamRec Struct Reference

Detailed Description

An exposed (not opaque) structure for a stream.

Definition at line 47 of file nvrm_stream.h.

Collaboration diagram for NvRmStreamRec:

Data Fields

NvU32 SyncPointID
 
NvU32 SyncPointsUsed
 The SyncPointsUsed field is expected to be incremented by the client whenever the client inserts a syncpoint-increment command. More...
 
NvBool UseImmediate
 Use Immediate sync pt increments instead of Operation Done to determine when a command buffer is flushed. More...
 
NvBool ClientManaged
 Client-managed sync point. More...
 
NvBool NullKickoff
 The NULL-Kickoff driver for a given stream: all of the "work" is done but the hardware doesn't ever fetch the data. More...
 
NvError ErrorFlag
 ErrorFlag keeps first detected NvError code since last NvRmStreamGetError() call. More...
 
NvRmModuleID LastEngineUsed
 
NvU32 LastClassUsed
 
NvRmContextHandle hContext
 The hardware context, if any, currently being used by this stream. More...
 
NvU32 * pContextShadowCopy
 XXX hContext should be made a transparent structure with a private pointer and a public part. More...
 
NvU32 ContextShadowCopySize
 
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 getting on each flush. More...
 
void * pClientPriv
 Private data member available for use by the client of the API. More...
 
NvS32 Flags
 
void * pRmPriv
 Opaque pointer to RM private data associated with this stream. More...
 
NvData32 * pBase
 pBase points to the base of the command buffer chunk that we are currently filling in. More...
 
NvData32 * pCurrent
 This points to the current location we are writing to. More...
 
NvU32 checksumMethods
 
NvU32 checksumFalconMethods
 
NvRmMemHandle hMem
 
void * pMem
 

Field Documentation

◆ checksumFalconMethods

NvU32 NvRmStreamRec::checksumFalconMethods

Definition at line 170 of file nvrm_stream.h.

◆ checksumMethods

NvU32 NvRmStreamRec::checksumMethods

Definition at line 169 of file nvrm_stream.h.

◆ ClientManaged

NvBool NvRmStreamRec::ClientManaged

Client-managed sync point.

The sync point will not be touched by the stream/channel software. SyncPointsUsed will not be modified, nor will there be a sync point increment appended during the flush.

Definition at line 83 of file nvrm_stream.h.

◆ ContextShadowCopySize

NvU32 NvRmStreamRec::ContextShadowCopySize

Definition at line 120 of file nvrm_stream.h.

◆ ErrorFlag

NvError NvRmStreamRec::ErrorFlag

ErrorFlag keeps first detected NvError code since last NvRmStreamGetError() call.

It is reset to NvSuccess by NvRmStreamGetError() and gets updated by NvRmStreamSetError()

Definition at line 97 of file nvrm_stream.h.

◆ Flags

NvS32 NvRmStreamRec::Flags

Definition at line 144 of file nvrm_stream.h.

◆ hContext

NvRmContextHandle NvRmStreamRec::hContext

The hardware context, if any, currently being used by this stream.

Leave as NULL if none is needed. This field may only be modified immediately after a NvRmStreamInit() or NvRmStreamFlush() call. XXX See bug 330297 for proposed API changes.

Definition at line 111 of file nvrm_stream.h.

◆ hMem

NvRmMemHandle NvRmStreamRec::hMem

Definition at line 173 of file nvrm_stream.h.

◆ LastClassUsed

NvU32 NvRmStreamRec::LastClassUsed

Definition at line 103 of file nvrm_stream.h.

◆ LastEngineUsed

NvRmModuleID NvRmStreamRec::LastEngineUsed

Definition at line 100 of file nvrm_stream.h.

◆ NullKickoff

NvBool NvRmStreamRec::NullKickoff

The NULL-Kickoff driver for a given stream: all of the "work" is done but the hardware doesn't ever fetch the data.

SyncPointID will be incremented by SyncPointsUsed.

Definition at line 90 of file nvrm_stream.h.

◆ pBase

NvData32* NvRmStreamRec::pBase

pBase points to the base of the command buffer chunk that we are currently filling in.

Definition at line 161 of file nvrm_stream.h.

◆ pClientPriv

void* NvRmStreamRec::pClientPriv

Private data member available for use by the client of the API.

You can do whatever you want with this field.

Definition at line 141 of file nvrm_stream.h.

◆ pContextShadowCopy

NvU32* NvRmStreamRec::pContextShadowCopy

XXX hContext should be made a transparent structure with a private pointer and a public part.

The two fields that follow become public part of hContext. Our marshalling does not currently descent into structures, so these fields stay here for now.

Definition at line 119 of file nvrm_stream.h.

◆ pCurrent

NvData32* NvRmStreamRec::pCurrent

This points to the current location we are writing to.

This should always be >= pBase and <= pFence.

Definition at line 167 of file nvrm_stream.h.

◆ pMem

void* NvRmStreamRec::pMem

Definition at line 174 of file nvrm_stream.h.

◆ pRmPriv

void* NvRmStreamRec::pRmPriv

Opaque pointer to RM private data associated with this stream.

Anything that RM does not need high-performance access to should be hidden behind here, so that we don't have to recompile the world when it changes.

Definition at line 153 of file nvrm_stream.h.

◆ pSyncPointBaseCallback

void(* NvRmStreamRec::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 getting on each flush.

Can be left NULL if not needed. If not NULL, it will be called every time NvRmStreamFlush() is called on this stream. The SyncPointBase parameter is the value that the syncpt register (specified by SyncPointID) will have before any of the syncpt increment commands that are currently being flushed take affect. XXX Should this be renamed to something more like "post-flush callback"?

Definition at line 132 of file nvrm_stream.h.

◆ SyncPointID

NvU32 NvRmStreamRec::SyncPointID

Definition at line 61 of file nvrm_stream.h.

◆ SyncPointsUsed

NvU32 NvRmStreamRec::SyncPointsUsed

The SyncPointsUsed field is expected to be incremented by the client whenever the client inserts a syncpoint-increment command.

Definition at line 67 of file nvrm_stream.h.

◆ UseImmediate

NvBool NvRmStreamRec::UseImmediate

Use Immediate sync pt increments instead of Operation Done to determine when a command buffer is flushed.

For streaming blocks, like VI in which OpDone does not indicate programming is done, but instead indicates when an image is captured, Immediate is a better choice.

Definition at line 76 of file nvrm_stream.h.


The documentation for this struct was generated from the following file: