|
NVIDIA DRIVE OS Linux SDK API Reference
|
5.2.0 Release For Test and Development only
|
Go to the documentation of this file.
11 #ifndef INCLUDED_NVSCIIPC_H
12 #define INCLUDED_NVSCIIPC_H
99 #define NVSCIIPC_MAX_ENDPOINT_NAME 64U
103 #define NV_SCI_IPC_EVENT_READ 1U
105 #define NV_SCI_IPC_EVENT_WRITE 2U
107 #define NV_SCI_IPC_EVENT_CONN_EST 4U
109 #define NV_SCI_IPC_EVENT_CONN_RESET 8U
111 #define NV_SCI_IPC_EVENT_CONN_EST_ALL \
112 (NV_SCI_IPC_EVENT_CONN_EST | \
113 NV_SCI_IPC_EVENT_WRITE | \
114 NV_SCI_IPC_EVENT_READ)
369 const volatile void **buf);
507 volatile void **buf);
748 int32_t coid, int16_t pulsePriority, int16_t pulseCode,
NvSciError NvSciIpcWriteAdvance(NvSciIpcEndpoint handle)
Writes the next frame to the endpoint.
NvSciError
Return/error codes for all NvSci functions.
NvSciError NvSciIpcInit(void)
Initializes the NvSciIpc library.
NvSciError NvSciIpcGetLinuxEventFd(NvSciIpcEndpoint handle, int32_t *fd)
Returns the NvSciIpc file descriptor for a given endpoint.
NvSciError NvSciIpcOpenEndpoint(const char *endpoint, NvSciIpcEndpoint *handle)
Opens an endpoint with the given name.
NvSciError NvSciIpcSetQnxPulseParam(NvSciIpcEndpoint handle, int32_t coid, int16_t pulsePriority, int16_t pulseCode, void *pulseValue)
Sets the event pulse parameters for QNX.
NvSciError NvSciIpcWrite(NvSciIpcEndpoint handle, const void *buf, size_t size, int32_t *bytes)
Writes a new frame to the endpoint.
NvSciError NvSciIpcReadGetNextFrame(NvSciIpcEndpoint handle, const volatile void **buf)
Returns a pointer to the location of the next frame from an endpoint.
NvSciError NvSciIpcWriteGetNextFrame(NvSciIpcEndpoint handle, volatile void **buf)
Returns a pointer to the location of the next frame for writing data.
NvSciError NvSciIpcGetEvent(NvSciIpcEndpoint handle, uint32_t *events)
Get Events.
NvSciError NvSciIpcRead(NvSciIpcEndpoint handle, void *buf, size_t size, int32_t *bytes)
Returns the contents of the next frame from an endpoint.
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
void NvSciIpcDeinit(void)
De-initializes the NvSciIpc library.
NvSciError NvSciIpcGetEndpointInfo(NvSciIpcEndpoint handle, struct NvSciIpcEndpointInfo *info)
Returns endpoint information.
void NvSciIpcCloseEndpoint(NvSciIpcEndpoint handle)
Closes an endpoint with the given handle.
NvSciError NvSciIpcReadAdvance(NvSciIpcEndpoint handle)
Removes the next frame from an endpoint.
uint32_t frame_size
Holds the frame size in bytes.
void NvSciIpcResetEndpoint(NvSciIpcEndpoint handle)
Resets an endpoint.
uint32_t nframes
Holds the number of frames.
Defines information about the NvSciIpc endpoint.