Loading [MathJax]/extensions/tex2jax.js
|
NVIDIA DRIVE OS Linux SDK API Reference
|
6.0.9 Release
|
Go to the documentation of this file.
11 #ifndef INCLUDED_NVSCIIPC_H
12 #define INCLUDED_NVSCIIPC_H
340 #define NVSCIIPC_MAX_ENDPOINT_NAME 64U
344 #define NV_SCI_IPC_EVENT_READ 0x01U
346 #define NV_SCI_IPC_EVENT_WRITE 0x02U
348 #define NV_SCI_IPC_EVENT_CONN_EST 0x04U
350 #define NV_SCI_IPC_EVENT_CONN_RESET 0x08U
352 #define NV_SCI_IPC_EVENT_WRITE_EMPTY 0x10U
354 #define NV_SCI_IPC_EVENT_ASYNC_ERROR 0x20U
356 #define NV_SCI_IPC_EVENT_CONN_EST_ALL (NV_SCI_IPC_EVENT_CONN_EST | \
357 NV_SCI_IPC_EVENT_WRITE | NV_SCI_IPC_EVENT_WRITE_EMPTY | \
358 NV_SCI_IPC_EVENT_READ)
361 #define NVSCIIPC_INFINITE_WAIT -1LL
365 #define NV_SCI_ASYNC_PCIE_EDMA_XFER_ERROR 0x1U
367 #define NV_SCI_ASYNC_PCIE_AER_UNCORRECTABLE_FATAL 0x2U
369 #define NV_SCI_ASYNC_PCIE_AER_UNCORRECTABLE_NONFATAL 0x4U
371 #define NV_SCI_ASYNC_PCIE_VALIDATION_ERROR 0x8U
911 const volatile void **buf);
1067 uint32_t size, uint32_t *bytes);
1115 volatile void **buf);
1452 #if defined(__QNX__)
1517 int32_t NvSciIpcWaitEventQnx(
int chid, int64_t microseconds, uint32_t bytes,
1589 int32_t coid, int16_t pulsePriority, int16_t pulseCode,
1658 int32_t coid, int16_t pulsePriority, int16_t pulseCode);
1713 NvSciError NvSciIpcInspectEventQnx(int32_t chid, uint16_t numEvents,
1848 bool* isCompatible);
NvSciError
Return/error codes for all NvSci functions.
NvSciError NvSciIpcWriteAdvance(NvSciIpcEndpoint handle)
Advance to the next write frame of the endpoint.
NVIDIA Software Communications Interface (SCI) : NvSci Event Service
void NvSciIpcDeinit(void)
De-initializes the NvSciIpc library.
void NvSciIpcCloseEndpoint(NvSciIpcEndpoint handle)
Closes an endpoint with the given handle.
NvSciError NvSciIpcGetEndpointInfo(NvSciIpcEndpoint handle, NvSciIpcEndpointInfo *info)
Returns endpoint information.
NvSciError NvSciIpcOpenEndpoint(const char *endpoint, NvSciIpcEndpoint *handle)
Opens an endpoint with the given name.
NvSciError NvSciIpcGetEventSafe(NvSciIpcEndpoint handle, uint32_t *events)
Get Events (safety version)
NvSciError NvSciIpcOpenEndpointWithEventService(const char *endpoint, NvSciIpcEndpoint *handle, NvSciEventService *eventService)
Opens an endpoint with the given name and event service.
NvSciError NvSciIpcRead(NvSciIpcEndpoint handle, void *buf, size_t size, int32_t *bytes)
Reads a frame from the endpoint.
An abstract interface to notify event to event consumer and to register event handler of the event co...
NvSciError NvSciIpcGetLinuxEventFd(NvSciIpcEndpoint handle, int32_t *fd)
Returns the NvSciIpc file descriptor for a given endpoint.
NvSciError NvSciIpcReadAdvance(NvSciIpcEndpoint handle)
Advance to the next read frame of the endpoint.
NvSciError NvSciIpcResetEndpointSafe(NvSciIpcEndpoint handle)
Resets an endpoint.
void NvSciIpcResetEndpoint(NvSciIpcEndpoint handle)
Resets an endpoint.
NvSciError NvSciIpcGetEvent(NvSciIpcEndpoint handle, uint32_t *events)
Get Events.
NvSciError NvSciIpcEnableNotification(NvSciIpcEndpoint handle, bool flag)
Enable event notification (or polling)
NvSciError NvSciIpcReadGetNextFrame(NvSciIpcEndpoint handle, const volatile void **buf)
Get a pointer to the read frame from the endpoint.
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
NvSciError NvSciIpcReadSafe(NvSciIpcEndpoint handle, void *buf, uint32_t size, uint32_t *bytes)
Reads a frame from the endpoint (safety version)
static const uint32_t NvSciIpcMinorVersion
NvSciIpc API Minor version number.
NvSciError NvSciIpcWriteGetNextFrame(NvSciIpcEndpoint handle, volatile void **buf)
Get a pointer to the write frame from the endpoint.
NvSciError NvSciIpcInit(void)
Initializes the NvSciIpc library.
NvSciError NvSciIpcCloseEndpointSafe(NvSciIpcEndpoint handle, bool clear)
Closes an endpoint with the given handle (safety version)
NvSciError NvSciIpcWrite(NvSciIpcEndpoint handle, const void *buf, size_t size, int32_t *bytes)
Writes a frame to the endpoint.
uint32_t frame_size
Holds the frame size in bytes.
NvSciError NvSciIpcGetEventNotifier(NvSciIpcEndpoint handle, NvSciEventNotifier **eventNotifier)
Get NvSciIpc event notifier.
NvSciError NvSciIpcCheckVersionCompatibility(uint32_t majorVer, uint32_t minorVer, bool *isCompatible)
Check NvSciIpc library version compatibility.
NvSciError NvSciIpcGetAsyncErrors(NvSciIpcEndpoint handle, uint32_t *errors)
Get asynchronouse errors.
uint32_t nframes
Holds the number of frames.
Defines information about the NvSciIpc endpoint.
static const uint32_t NvSciIpcMajorVersion
NvSciIpc API Major version number.
NvSciError NvSciIpcWriteSafe(NvSciIpcEndpoint handle, const void *buf, uint32_t size, uint32_t *bytes)
Writes a frame to the endpoint.
An abstract interface for a program's event handling infrastructure.
人人超碰97caoporen国产