53 #include <sys/neutrino.h>
75 #define NVSCIIPC_MAX_ENDPOINT_NAME 32U
79 #define NV_SCI_IPC_EVENT_READ 1U
81 #define NV_SCI_IPC_EVENT_WRITE 2U
83 #define NV_SCI_IPC_EVENT_CONN_EST 4U
85 #define NV_SCI_IPC_EVENT_CONN_RESET 8U
87 #define NV_SCI_IPC_EVENT_CONN_EST_ALL \
88 (NV_SCI_IPC_EVENT_CONN_EST | \
89 NV_SCI_IPC_EVENT_WRITE | \
90 NV_SCI_IPC_EVENT_READ)
678 int32_t coid, int16_t pulsePriority, int16_t pulseCode,
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 NvSciIpcGetEvent(NvSciIpcEndpoint handle, uint32_t *events)
Get Events.
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 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.