Go to the source code of this file.
Data Structures | |
| struct | NvRmTimevalRec |
| A structure for storing an accurate time. More... | |
| struct | NvRmEngineStatusRec |
| Structure that is filled by either kernel-mode-driver or engine to denote the status. More... | |
Macros | |
| #define | NVRM_MUTEX_INVALID ((NvU32)-1) |
| Invalid Module Mutex ID. More... | |
Typedefs | |
| typedef struct NvRmChannelRec * | NvRmChannelHandle |
| A type-safe handle for a channel. More... | |
| typedef struct NvRmContextRec * | NvRmContextHandle |
| A type-safe handle for a hardware context, for the engines where such a concept is applicable. More... | |
| typedef struct NvRmTimevalRec | NvRmTimeval |
| A structure for storing an accurate time. More... | |
| typedef struct NvRmEngineStatusRec | NvRmEngineStatus |
| Structure that is filled by either kernel-mode-driver or engine to denote the status. More... | |
Enumerations | |
| enum | NvRmClockId { NvRmClockId_Unknown = 0, NvRmClockId_Monotonic, NvRmClockId_PTP } |
| Clock used to retrieve the timestamp. More... | |
Functions | |
| NvError | NvRmChannelOpenDeviceFile (NvRmDeviceHandle hDevice, NvRmChannelHandle *phChannel, const char *node) |
| Opens a handle to a channel using given channel device node. More... | |
| NvError | NvRmChannelOpen (NvRmDeviceHandle hDevice, NvRmChannelHandle *phChannel, NvU32 NumModules, const NvRmModuleID *pModuleIDs) |
| Opens a handle to a channel. More... | |
| void | NvRmChannelClose (NvRmChannelHandle hChannel) |
| Closes a channel handle from NvRmChannelOpen() or NvRmChannelAlloc(). More... | |
| NvError | NvRmChannelSetErrNotifier (NvRmChannelHandle phChannel, NvU64 errLimit, NvU32 errOffset, NvU32 errMemHandle) |
| Sets error notifier for a channel. More... | |
| void | NvRmChannelSyncPointFree (NvRmDeviceHandle hDevice, NvU32 SyncPointID) |
| Do nothing. More... | |
| 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 <channel, module> pair. More... | |
| 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 module. More... | |
| void | NvRmChannelFreeClientManagedSyncPoint (NvRmChannelHandle hChannel, NvU32 SyncPointIndex, NvU32 pSyncPointID) |
| Frees the dynamically allocated syncpt id. More... | |
| NvU32 | NvRmChannelSyncPointRead (NvRmDeviceHandle hDevice, NvU32 SyncPointID) |
| Reads the current value of a particular sync point register. More... | |
| void | NvRmChannelSyncPointIncr (NvRmDeviceHandle hDevice, NvU32 SyncPointID) |
| Increments (using the CPU) a particular sync point register. More... | |
| void | NvRmChannelSyncPointWait (NvRmDeviceHandle hDevice, NvU32 SyncPointID, NvU32 Threshold, NvOsSemaphoreHandle hSema) |
| Waits for a sync point to reach the given threshold. More... | |
| NvError | NvRmFenceWait (NvRmDeviceHandle hDevice, const NvRmFence *Fence, NvU32 Timeout) |
| Waits for a fence to be triggered. More... | |
| NvError | NvRmFencePutToFile (const char *Name, const NvRmFence *Fences, NvU32 NumFences, NvS32 *Fd) |
| Creates an Android fence file from fences. More... | |
| NvError | NvRmFenceGetFromFile (NvS32 Fd, NvRmFence *Fences, NvU32 *NumFences) |
| Extracts fences from an Android fence file. More... | |
| NvError | NvRmChannelSyncPointWaitTimeout (NvRmDeviceHandle hDevice, NvU32 SyncPointID, NvU32 Threshold, NvOsSemaphoreHandle hSema, NvU32 Timeout) |
| Same as NvRmChannelSyncPointWait, but provides a semaphore timeout value. More... | |
| 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 actual latest sync point. More... | |
| 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 completion. More... | |
| NvError | NvRmChannelGetModuleClockRate (NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 *Rate) |
| Gets clock rate for the module. More... | |
| NvError | NvRmChannelSetModuleClockRate (NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 Rate) |
| Sets module clock rate. More... | |
| NvError | NvRmChannelSetModuleBandwidth (NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 BW) |
| Sets module bw rate. More... | |
| NvError | NvRmChannelSetModulePixelRate (NvRmChannelHandle hChannel, NvRmModuleID Module, NvU32 PixelRate) |
| Set Module pixel rate. More... | |
| NvError | NvRmChannelSetSubmitTimeoutEx (NvRmChannelHandle hChannel, NvU32 SubmitTimeout, NvBool DisableDebugDump) |
| Sets a submit buffer timeout for this stream/context. More... | |
| NvError | NvRmChannelSetSubmitTimeout (NvRmChannelHandle hChannel, NvU32 SubmitTimeout) |
| Sets a submit buffer timeout for this stream/context. More... | |
| 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 modules behind host. More... | |
| 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 behind host. More... | |
| 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 used for modules behind host. More... | |
| 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 handle Can only be used for modules behind host. More... | |
| NvError | NvRmHostCreateEventPollFd (NvRmDeviceHandle device, int *fd) |
| Get poll'able file descriptor (FD) User is responsible for closing the FD. More... | |
| NvError | NvRmHostTriggerEventPollFd (NvRmDeviceHandle device, int fd, NvU32 syncpointID, NvU32 threshold) |
| Trigger an event on poll'able FD which is allocated with NvRmHostCreateEventPollFd() More... | |
| NvError | NvRmHost1xChannelGetModuleClockRate (NvRmHost1xChannelHandle channel, NvRmModuleID moduleId, NvU32 *rate) |
| Gets clock rate for the module. More... | |
| NvError | NvRmHost1xChannelSetModuleClockRate (NvRmHost1xChannelHandle channel, NvRmModuleID moduleId, NvU32 rate) |
| Sets module clock rate. More... | |
| NvError | NvRmHost1xChannelSetModulePixelRate (NvRmHost1xChannelHandle channel, NvRmModuleID moduleId, NvU32 pixelRate) |
| Set Module pixel rate. More... | |
| NvError | NvRmHost1xChannelSetModuleBandwidth (NvRmHost1xChannelHandle channel, NvRmModuleID moduleId, NvU32 bandwidth) |
| Sets module bw rate. More... | |
| static NV_INLINE NvBool | NvSchedValueIsBetween (const NvU32 a, const NvU32 b, const NvU32 c) |
| static NV_INLINE NvBool | NvSchedValueWrappingComparison (const NvU32 x, const NvU32 y) |
| #define NVRM_MUTEX_INVALID ((NvU32)-1) |
Invalid Module Mutex ID.
Definition at line 79 of file nvrm_host1x.h.
| typedef struct NvRmChannelRec* NvRmChannelHandle |
A type-safe handle for a channel.
Definition at line 29 of file nvrm_host1x.h.
| typedef struct NvRmContextRec* NvRmContextHandle |
A type-safe handle for a hardware context, for the engines where such a concept is applicable.
Definition at line 35 of file nvrm_host1x.h.
| typedef struct NvRmEngineStatusRec NvRmEngineStatus |
Structure that is filled by either kernel-mode-driver or engine to denote the status.
| typedef struct NvRmTimevalRec NvRmTimeval |
A structure for storing an accurate time.
| enum NvRmClockId |
Clock used to retrieve the timestamp.
| Enumerator | |
|---|---|
| NvRmClockId_Unknown | |
| NvRmClockId_Monotonic | |
| NvRmClockId_PTP | |
Definition at line 40 of file nvrm_host1x.h.
| 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 used for modules behind host.
| device | The RM instance |
| ch | The channel handle |
| id | The module id to write to |
| num | Number of registers to write |
| offset | Offset the first register to write |
| values | Values read into the registers |
See the comment above regarding byte addressing.
| 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 handle Can only be used for modules behind host.
| device | The RM instance |
| ch | The channel handle |
| id | The module id to read from |
| num | Number of registers to read |
| offset | Offset of the first register to read |
| values | Storage for the register values |
The offset is a byte address, not a word address. Some of the hardware specs have word addresses, so the offsets need to be mutlipled by 4.
| void NvRmChannelClose | ( | NvRmChannelHandle | hChannel | ) |
Closes a channel handle from NvRmChannelOpen() or NvRmChannelAlloc().
This API will never fail.
| hChannel | The channel handle to close. If hChannel is NULL, this API will do nothing. |
| void NvRmChannelFreeClientManagedSyncPoint | ( | NvRmChannelHandle | hChannel, |
| NvU32 | SyncPointIndex, | ||
| NvU32 | pSyncPointID | ||
| ) |
Frees the dynamically allocated syncpt id.
| SyncPointIndex | Index for the module. |
| pSyncPointID | The sync point id, which needs to be freed. |
| 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 module.
It is not allowed to set priority on a channel or stream which has (or will have) retrieved syncpoint IDs via this call.
| name | The name to be given to syncpt for debugging purpose |
| SyncPointIndex | Index for the module. |
| pSyncPointID | The sync point, if a free sync point is found for the given module, otherwise an error is returned. |
| NvError NvRmChannelGetModuleClockRate | ( | NvRmChannelHandle | hChannel, |
| NvRmModuleID | Module, | ||
| NvU32 * | Rate | ||
| ) |
Gets clock rate for the module.
| hChannel | Handle to the channel |
| Module | Module Id for which get the clock rate |
| Rate | Pointer to be filled with the rate read from kernel |
| 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 <channel, module> pair.
It is not allowed to set priority on a channel or stream which has (or will have) retrieved syncpoint IDs via this call.
| hChannel | Channel handle obtained from NvRmChannelOpen(). |
| Module | Module that we need the preallocated sync point for. |
| Index | Index for the module. |
| pSyncPointID | The sync point, if a free sync point is found for the given module, otherwise an error is returned. |
| NvError NvRmChannelOpen | ( | NvRmDeviceHandle | hDevice, |
| NvRmChannelHandle * | phChannel, | ||
| NvU32 | NumModules, | ||
| const NvRmModuleID * | pModuleIDs | ||
| ) |
Opens a handle to a channel.
Most likely, you will be sharing this channel with many other clients.
To decide what channel you get, RM needs to know what modules you plan to use. It is very important to fill out this information correctly, because only a subset of [channel, module] pairs may have sync points associated with them. If you fail to declare that you are going to use a module, your NvRmStreamFlush() calls may fail. XXX In the future, this should be updated to say "your NvRmStreamInit call", once NvRmStreamInit takes an engine argument.
| hDevice | Handle to device the channel is for. |
| phChannel | Pointer to to be filled in with the channel handle. |
| NumModules | Number of modules in the pModuleIDs array. Currently zero is allowed, but please fix your code to not rely on this. |
| pModuleIDs | List of modules you are planning on using. Currently NULL is allowed, but please fix your code to not rely on this. |
| NvError NvRmChannelOpenDeviceFile | ( | NvRmDeviceHandle | hDevice, |
| NvRmChannelHandle * | phChannel, | ||
| const char * | node | ||
| ) |
Opens a handle to a channel using given channel device node.
Most likely, you will be sharing this channel with many other clients.
To decide what channel you get, RM needs to know what modules you plan to use. It is very important to fill out this information correctly, because only a subset of [channel, module] pairs may have sync points associated with them. If you fail to declare that you are going to use a module, your NvRmStreamFlush() calls may fail. XXX In the future, this should be updated to say "your NvRmStreamInit call", once NvRmStreamInit takes an engine argument.
| hDevice | Handle to device the channel is for. |
| phChannel | Pointer to to be filled in with the channel handle. |
| node | Device file name |
| 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 modules behind host.
| device | The RM instance |
| ch | The channel handle |
| id | The module id to read from |
| num | Number of registers to read |
| offsets | Offset list of the registers to read |
| values | Storage for the register values |
The offset is a byte address, not a word address. Some of the hardware specs have word addresses, so the offsets need to be mutlipled by 4.
| 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 behind host.
| device | The RM instance |
| ch | The channel handle |
| id | The module id to write to |
| num | Number of registers to write |
| offsets | Offset list of the registers to write |
| values | Values to write into the registers |
See the comment above regarding byte addressing.
| NvError NvRmChannelSetErrNotifier | ( | NvRmChannelHandle | phChannel, |
| NvU64 | errLimit, | ||
| NvU32 | errOffset, | ||
| NvU32 | errMemHandle | ||
| ) |
Sets error notifier for a channel.
| phChannel | The channel handle to set error notifiers. |
| errLimit | Limit for error notifiers. |
| errOffset | Offset to set in error notifiers. |
| errMemHandle | memory handle in set error notifiers. |
| NvError NvRmChannelSetModuleBandwidth | ( | NvRmChannelHandle | hChannel, |
| NvRmModuleID | Module, | ||
| NvU32 | BW | ||
| ) |
Sets module bw rate.
| hChannel | Handle to the channel |
| Module | Module Id for which set the clock rate |
| Bandwidth | to set, unit is KBps |
| NvError NvRmChannelSetModuleClockRate | ( | NvRmChannelHandle | hChannel, |
| NvRmModuleID | Module, | ||
| NvU32 | Rate | ||
| ) |
Sets module clock rate.
| hChannel | Handle to the channel |
| Module | Module Id for which set the clock rate |
| Rate | Clock rate to set |
| NvError NvRmChannelSetModulePixelRate | ( | NvRmChannelHandle | hChannel, |
| NvRmModuleID | Module, | ||
| NvU32 | PixelRate | ||
| ) |
Set Module pixel rate.
| hChannel | Handle to the channel |
| Module | id for which to add Bandwidth |
| PixelRate | (pixels/second) |
| NvError NvRmChannelSetSubmitTimeout | ( | NvRmChannelHandle | hChannel, |
| NvU32 | SubmitTimeout | ||
| ) |
Sets a submit buffer timeout for this stream/context.
| hChannel | Handle to the channel for NvRmStream submits |
| SubmitTimeout | Time, in milliseconds, a buffer is allowed to run |
| NvError NvRmChannelSetSubmitTimeoutEx | ( | NvRmChannelHandle | hChannel, |
| NvU32 | SubmitTimeout, | ||
| NvBool | DisableDebugDump | ||
| ) |
Sets a submit buffer timeout for this stream/context.
| hChannel | Handle to the channel for NvRmStream submits |
| SubmitTimeout | Time, in milliseconds, a buffer is allowed to run |
| DisableDebugDump | This flag allows disabling the timeout debug dump |
| void NvRmChannelSyncPointFree | ( | NvRmDeviceHandle | hDevice, |
| NvU32 | SyncPointID | ||
| ) |
Do nothing.
| hDevice | Ignored. |
| SyncPointID | Ignored. |
| void NvRmChannelSyncPointIncr | ( | NvRmDeviceHandle | hDevice, |
| NvU32 | SyncPointID | ||
| ) |
Increments (using the CPU) a particular sync point register.
This API will never fail.
| hDevice | Handle to RM device. |
| SyncPointID | The ID of the syncpoint to increment. |
| NvU32 NvRmChannelSyncPointRead | ( | NvRmDeviceHandle | hDevice, |
| NvU32 | SyncPointID | ||
| ) |
Reads the current value of a particular sync point register.
Do not use this API to poll for completion. Use NvRmChannelSyncPointWait() instead.
| hDevice | Handle to RM device. |
| SyncPointID | The ID of the sync point register to read. |
| void NvRmChannelSyncPointWait | ( | NvRmDeviceHandle | hDevice, |
| NvU32 | SyncPointID, | ||
| NvU32 | Threshold, | ||
| NvOsSemaphoreHandle | hSema | ||
| ) |
Waits for a sync point to reach the given threshold.
Will block on the given semaphore if the sync point has not reached the threashold. This handles clocking of the hardware and will short circuit the semaphore wait/signal if possible.
| hDevice | An RM device handle. |
| SyncPointID | Which sync point register to wait on. |
| Threshold | The value to wait for the sync point register to obtain. |
| hSema | The OS semaphore to be signaled when the threshold is attained. |
| 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 actual latest sync point.
NvError_Timeout will be returned if the sync point isn't signaled by the given timeout.
| hDevice | An RM device handle. |
| SyncPointID | Which sync point register to wait on. |
| Threshold | The value to wait for the sync point register to obtain. |
| hSema | The OS semaphore to be signaled when the threshold is attained. |
| Timeout | The timeout value, in milliseconds, for the semaphore. Use NV_WAIT_INFINITE to wait infinitely. |
| 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 completion.
NvError_Timeout will be returned if the sync point isn't signaled by the given timeout.
| hDevice | An RM device handle. |
| SyncPointID | Which sync point register to wait on. |
| Threshold | The value to wait for the sync point register to obtain. |
| hSema | The OS semaphore to be signaled when the threshold is attained. |
| Timeout | The timeout value, in milliseconds, for the semaphore. Use NV_WAIT_INFINITE to wait infinitely. |
| NvError NvRmChannelSyncPointWaitTimeout | ( | NvRmDeviceHandle | hDevice, |
| NvU32 | SyncPointID, | ||
| NvU32 | Threshold, | ||
| NvOsSemaphoreHandle | hSema, | ||
| NvU32 | Timeout | ||
| ) |
Same as NvRmChannelSyncPointWait, but provides a semaphore timeout value.
NvError_Timeout will be returned if the sync point isn't signaled by the given timeout.
| hDevice | An RM device handle. |
| SyncPointID | Which sync point register to wait on. |
| Threshold | The value to wait for the sync point register to obtain. |
| hSema | The OS semaphore to be signaled when the threshold is attained. |
| Timeout | The timeout value, in milliseconds, for the semaphore. Use NV_WAIT_INFINITE to wait infinitely. |
Extracts fences from an Android fence file.
| Fd | The file descriptor of the fence file. |
| Fences | Pointer to a fence buffer that stores the fences. Pass NULL to only extract the number of fences in the file. |
| NumFences | The number of fences that can be written into the Fences array. Is updated with the number of actually written. |
| NvError NvRmFencePutToFile | ( | const char * | Name, |
| const NvRmFence * | Fences, | ||
| NvU32 | NumFences, | ||
| NvS32 * | Fd | ||
| ) |
Creates an Android fence file from fences.
| Name | Name of the fence file (optional, NULL is fine). |
| Fences | Fences to put into the file. |
| NumFences | The number of fences in the Fences array. |
| Fd | The file descriptor of the created fence file. |
| NvError NvRmFenceWait | ( | NvRmDeviceHandle | hDevice, |
| const NvRmFence * | Fence, | ||
| NvU32 | Timeout | ||
| ) |
Waits for a fence to be triggered.
| hDevice | An RM device handle. |
| Fence | Fence to wait on |
| hSema | The OS semaphore to be signaled when the threshold is attained. |
| NvError NvRmHost1xChannelGetModuleClockRate | ( | NvRmHost1xChannelHandle | channel, |
| NvRmModuleID | moduleId, | ||
| NvU32 * | rate | ||
| ) |
Gets clock rate for the module.
| channel | Handle of the opened channel |
| moduleId | Module Id for which get the clock rate |
| rate | Pointer to be filled with the rate read from kernel |
| NvError NvRmHost1xChannelSetModuleBandwidth | ( | NvRmHost1xChannelHandle | channel, |
| NvRmModuleID | moduleId, | ||
| NvU32 | bandwidth | ||
| ) |
Sets module bw rate.
| hChannel | Handle to the channel |
| Module | Module Id for which set the clock rate |
| Bandwidth | to set, unit is KBps |
| NvError NvRmHost1xChannelSetModuleClockRate | ( | NvRmHost1xChannelHandle | channel, |
| NvRmModuleID | moduleId, | ||
| NvU32 | rate | ||
| ) |
Sets module clock rate.
| channel | Handle to the channel |
| moduleId | Module Id for which set the clock rate |
| rate | Clock rate to set |
| NvError NvRmHost1xChannelSetModulePixelRate | ( | NvRmHost1xChannelHandle | channel, |
| NvRmModuleID | moduleId, | ||
| NvU32 | pixelRate | ||
| ) |
Set Module pixel rate.
| channel | Handle to the channel |
| moduleId | id for which to add pixel rate |
| pixelRate | (pixels/second) |
| NvError NvRmHostCreateEventPollFd | ( | NvRmDeviceHandle | device, |
| int * | fd | ||
| ) |
Get poll'able file descriptor (FD) User is responsible for closing the FD.
See NvRmHostTriggerEventPollFd() on how to trigger the event
| device | The RM instance |
| fd | The file descriptor to be returned |
| NvError NvRmHostTriggerEventPollFd | ( | NvRmDeviceHandle | device, |
| int | fd, | ||
| NvU32 | syncpointID, | ||
| NvU32 | threshold | ||
| ) |
Trigger an event on poll'able FD which is allocated with NvRmHostCreateEventPollFd()
API receives the file descriptor, syncpoint id, and threshold
On success, an event will be delivered to polling FD when Syncpoing value matches the threshold
| device | The RM instance |
| fd | The file descriptor |
| syncpointID | The syncpoint ID |
| threshold | Threshold value |
|
static |
Definition at line 619 of file nvrm_host1x.h.
Referenced by NvSchedValueWrappingComparison().
|
static |
Definition at line 630 of file nvrm_host1x.h.
References NvSchedValueIsBetween().