|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
11 #ifndef INCLUDED_nvrm_host1x_H
12 #define INCLUDED_nvrm_host1x_H
20 struct NvRmHost1xChannel;
22 #if defined(__cplusplus)
79 #define NVRM_MUTEX_INVALID ((NvU32)-1)
183 NvU32 * pSyncPointID );
201 NvU32 SyncPointIndex,
202 NvU32 *pSyncPointID );
213 NvU32 SyncPointIndex,
214 NvU32 pSyncPointID );
431 NvBool DisableDebugDump );
442 NvU32 SubmitTimeout );
466 const NvU32 * offsets,
488 const NvU32 * offset,
489 const NvU32 * values );
638 #if defined(__cplusplus)
NvError NvRmChannelSyncPointWaitexTimeout(NvRmDeviceHandle hDevice, NvU32 SyncPointID, NvU32 Threshold, NvOsSemaphoreHandle hSema, NvU32 Timeout, NvU32 *Actual)
Same as NvRmChannelSyncPointWaitTimeout, but provides a pointer to memory allocated to hold the actua...
NvError NvRmChannelGetModuleSyncPoint(NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 Index, NvU32 *pSyncPointID)
Obtains the index of a dynamically allocated host managed sync point register for a particular <chann...
NvError NvRmHostCreateEventPollFd(NvRmDeviceHandle device, int *fd)
Get poll'able file descriptor (FD) User is responsible for closing the FD.
NvError NvRmChannelBlockRegWr(NvRmDeviceHandle device, NvRmChannelHandle ch, NvRmModuleID id, NvU32 num, NvU32 offset, NvU32 *values)
Write a block of consecutive register values from the given module's channel using using channel hand...
NvError NvRmFenceGetFromFile(NvS32 Fd, NvRmFence *Fences, NvU32 *NumFences)
Extracts fences from an Android fence file.
NvError
The NvError enumeration contains ALL return / error codes.
NvError NvRmChannelSyncPointWaitmexTimeout(NvRmDeviceHandle hDevice, NvU32 SyncPointID, NvU32 Threshold, NvOsSemaphoreHandle hSema, NvU32 Timeout, NvU32 *Actual, NvRmTimeval *tv)
Same as NvRmChannelSyncPointWaitTimeoutex, but provides information about the exact time of work comp...
Structure that is filled by either kernel-mode-driver or engine to denote the status.
void NvRmChannelSyncPointWait(NvRmDeviceHandle hDevice, NvU32 SyncPointID, NvU32 Threshold, NvOsSemaphoreHandle hSema)
Waits for a sync point to reach the given threshold.
A structure for storing an accurate time.
void NvRmChannelClose(NvRmChannelHandle hChannel)
Closes a channel handle from NvRmChannelOpen() or NvRmChannelAlloc().
struct NvRmEngineStatusRec NvRmEngineStatus
Structure that is filled by either kernel-mode-driver or engine to denote the status.
NvU32 NvRmChannelSyncPointRead(NvRmDeviceHandle hDevice, NvU32 SyncPointID)
Reads the current value of a particular sync point register.
void NvRmChannelFreeClientManagedSyncPoint(NvRmChannelHandle hChannel, NvU32 SyncPointIndex, NvU32 pSyncPointID)
Frees the dynamically allocated syncpt id.
struct NvOsSemaphoreRec * NvOsSemaphoreHandle
NvError NvRmChannelGetModuleClockRate(NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 *Rate)
Gets clock rate for the module.
NvError NvRmChannelSetSubmitTimeout(NvRmChannelHandle hChannel, NvU32 SubmitTimeout)
Sets a submit buffer timeout for this stream/context.
NvError NvRmHost1xChannelSetModuleClockRate(NvRmHost1xChannelHandle channel, NvRmModuleID moduleId, NvU32 rate)
Sets module clock rate.
NvError NvRmFenceWait(NvRmDeviceHandle hDevice, const NvRmFence *Fence, NvU32 Timeout)
Waits for a fence to be triggered.
static NV_INLINE NvBool NvSchedValueIsBetween(const NvU32 a, const NvU32 b, const NvU32 c)
NvError NvRmChannelRegWr(NvRmDeviceHandle device, NvRmChannelHandle ch, NvRmModuleID id, NvU32 num, const NvU32 *offset, const NvU32 *values)
Write register values to the module's channel using channel handle Can only be used for modules behin...
void NvRmChannelSyncPointFree(NvRmDeviceHandle hDevice, NvU32 SyncPointID)
Do nothing.
NvError NvRmChannelSetSubmitTimeoutEx(NvRmChannelHandle hChannel, NvU32 SubmitTimeout, NvBool DisableDebugDump)
Sets a submit buffer timeout for this stream/context.
struct NvRmTimevalRec NvRmTimeval
A structure for storing an accurate time.
NvError NvRmFencePutToFile(const char *Name, const NvRmFence *Fences, NvU32 NumFences, NvS32 *Fd)
Creates an Android fence file from fences.
NvError NvRmChannelOpenDeviceFile(NvRmDeviceHandle hDevice, NvRmChannelHandle *phChannel, const char *node)
Opens a handle to a channel using given channel device node.
NvError NvRmChannelSetModuleClockRate(NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 Rate)
Sets module clock rate.
struct NvRmHost1xChannel * NvRmHost1xChannelHandle
Handle to a Host1x channel.
struct NvRmContextRec * NvRmContextHandle
A type-safe handle for a hardware context, for the engines where such a concept is applicable.
NvError NvRmChannelRegRd(NvRmDeviceHandle device, NvRmChannelHandle ch, NvRmModuleID id, NvU32 num, const NvU32 *offsets, NvU32 *values)
Read register values from the given module's channel using channel handle Can only be used for module...
NvError NvRmHost1xChannelSetModuleBandwidth(NvRmHost1xChannelHandle channel, NvRmModuleID moduleId, NvU32 bandwidth)
Sets module bw rate.
NvError NvRmChannelOpen(NvRmDeviceHandle hDevice, NvRmChannelHandle *phChannel, NvU32 NumModules, const NvRmModuleID *pModuleIDs)
Opens a handle to a channel.
NvRmModuleID
Defines SOC hardware controller class identifiers.
NvError NvRmChannelGetClientManagedSyncPoint(NvRmChannelHandle hChannel, const char *name, NvU32 SyncPointIndex, NvU32 *pSyncPointID)
Obtains the index of a dynamically allocated client managed sync point register for a particular modu...
NvError NvRmChannelSyncPointWaitTimeout(NvRmDeviceHandle hDevice, NvU32 SyncPointID, NvU32 Threshold, NvOsSemaphoreHandle hSema, NvU32 Timeout)
Same as NvRmChannelSyncPointWait, but provides a semaphore timeout value.
NvRmClockId
Clock used to retrieve the timestamp.
NVIDIA Driver Development Kit: Resource Manager Module Control APIs
NvError NvRmChannelSetModulePixelRate(NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 PixelRate)
Set Module pixel rate.
NvError NvRmHostTriggerEventPollFd(NvRmDeviceHandle device, int fd, NvU32 syncpointID, NvU32 threshold)
Trigger an event on poll'able FD which is allocated with NvRmHostCreateEventPollFd()
void NvRmChannelSyncPointIncr(NvRmDeviceHandle hDevice, NvU32 SyncPointID)
Increments (using the CPU) a particular sync point register.
struct NvRmDeviceRec * NvRmDeviceHandle
NvError NvRmChannelSetModuleBandwidth(NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 BW)
Sets module bw rate.
struct NvRmChannelRec * NvRmChannelHandle
A type-safe handle for a channel.
NvError NvRmChannelBlockRegRd(NvRmDeviceHandle device, NvRmChannelHandle ch, NvRmModuleID id, NvU32 num, NvU32 offset, NvU32 *values)
Read a block of consecutive register values to the module's channel using channel handle Can only be ...
NvError NvRmHost1xChannelSetModulePixelRate(NvRmHost1xChannelHandle channel, NvRmModuleID moduleId, NvU32 pixelRate)
Set Module pixel rate.
static NV_INLINE NvBool NvSchedValueWrappingComparison(const NvU32 x, const NvU32 y)
NvError NvRmHost1xChannelGetModuleClockRate(NvRmHost1xChannelHandle channel, NvRmModuleID moduleId, NvU32 *rate)
Gets clock rate for the module.
NvError NvRmChannelSetErrNotifier(NvRmChannelHandle phChannel, NvU64 errLimit, NvU32 errOffset, NvU32 errMemHandle)
Sets error notifier for a channel.