53 #include <sys/neutrino.h>
57 #define NV_SCI_IPC_NOTIFY_CODE (_PULSE_CODE_MINAVAIL + 1)
71 typedef int32_t NvSciIpcEventNotifier;
86 #define NV_SCI_IPC_EVENT_READ 1U
88 #define NV_SCI_IPC_EVENT_WRITE 2U
90 #define NV_SCI_IPC_EVENT_CONN_EST 4U
92 #define NV_SCI_IPC_EVENT_CONN_RESET 8U
364 NvSciError NvSciIpcGetEventNotifier(NvSciIpcEndpoint handle,
365 NvSciIpcEventNotifier *eventNotifier);
473 NvSciError NvSciIpcSetEventNotifierPulseParam(NvSciIpcEndpoint handle,
474 int32_t chid, int16_t pulsePriority, int16_t pulseCode,
520 int32_t coid, int16_t pulsePriority, int16_t pulseCode,
534 NvSciError NvSciIpcErrnoToNvSciErr(int32_t err);
549 int32_t NvSciIpcNvSciErrToErrno(
NvSciError nvSciErr);
NvSciError NvSciIpcReadGetNextFrame(NvSciIpcEndpoint handle, void **buf)
Returns a pointer to the location of the next frame from an endpoint.
NvSciError NvSciIpcReadAdvance(NvSciIpcEndpoint handle)
Removes the next frame from an endpoint.
uint32_t nframes
Holds the number of frames.
NvSciError NvSciIpcInit(void)
Initializes the NvSciIpc library.
void NvSciIpcDeinit(void)
De-initializes the NvSciIpc library.
NVIDIA Software Communications Interface (SCI): Error Handling
uint64_t NvSciIpcEndpoint
Handle to the IPC endpoint.
NvSciError NvSciIpcWriteAdvance(NvSciIpcEndpoint handle)
Writes the next frame to the endpoint.
NvSciError NvSciIpcOpenEndpoint(const char *endpoint, NvSciIpcEndpoint *handle)
Opens an endpoint with the given name.
NvSciError NvSciIpcGetEndpointInfo(NvSciIpcEndpoint handle, struct NvSciIpcEndpointInfo *info)
Returns endpoint information.
void NvSciIpcResetEndpoint(NvSciIpcEndpoint handle)
Resets an endpoint.
NvSciError NvSciIpcWriteGetNextFrame(NvSciIpcEndpoint handle, void **buf)
Returns a pointer to the location of the next frame for writing data.
NvSciError NvSciIpcWrite(NvSciIpcEndpoint handle, const void *buf, size_t size, int32_t *bytes)
Writes a new frame to the endpoint.
enum NvSciErrorRec NvSciError
Return/error codes for all NvSci functions.
uint32_t frame_size
Holds the frame size.
NvSciError NvSciIpcRead(NvSciIpcEndpoint handle, void *buf, size_t size, int32_t *bytes)
Returns the contents of the next frame from an endpoint.
void NvSciIpcCloseEndpoint(NvSciIpcEndpoint handle)
Closes an endpoint with the given handle.
NvSciError NvSciIpcGetEvent(NvSciIpcEndpoint handle, uint32_t *event)
Returns a bitwise OR operation on new events that occurred since the last call to this function...
NvSciError NvSciIpcGetLinuxEventFd(NvSciIpcEndpoint handle, int32_t *fd)
Returns the NvSciIpc file descriptor for a given endpoint.
NvSciError NvSciIpcSetQnxPulseParam(NvSciIpcEndpoint handle, int32_t coid, int16_t pulsePriority, int16_t pulseCode, void *pulseValue)
Sets the event pulse parameters for QNX.
Defines information about the IPC endpoint.