|
NVIDIA DRIVE OS Linux SDK API Reference
|
5.2.3 Release For Test and Development only
|
Go to the documentation of this file.
11 #ifndef INCLUDED_NVSCIIPC_H
12 #define INCLUDED_NVSCIIPC_H
21 #include <nvscievent.h>
104 #define NVSCIIPC_MAX_ENDPOINT_NAME 64U
108 #define NV_SCI_IPC_EVENT_READ 1U
110 #define NV_SCI_IPC_EVENT_WRITE 2U
112 #define NV_SCI_IPC_EVENT_CONN_EST 4U
114 #define NV_SCI_IPC_EVENT_CONN_RESET 8U
116 #define NV_SCI_IPC_EVENT_CONN_EST_ALL \
117 (NV_SCI_IPC_EVENT_CONN_EST | \
118 NV_SCI_IPC_EVENT_WRITE | \
119 NV_SCI_IPC_EVENT_READ)
259 NvSciError NvSciIpcOpenEndpointWithEventService(
const char *endpoint,
302 NvSciEventNotifier **eventNotifier);
469 const volatile void **buf);
610 volatile void **buf);
856 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)
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.