15 #ifndef CIRCT_DIALECT_ESI_COSIM_DPI_H
16 #define CIRCT_DIALECT_ESI_COSIM_DPI_H
21 #define DPI extern "C" __declspec(dllexport)
23 #define DPI extern "C"
31 int fromHostTypeSize,
char *toHostTypeId,
37 unsigned int *sizeBytes);
DPI int sv2cCosimserverEpTryPut(char *endpointId, const svOpenArrayHandle data, int dataLimit)
Send a message to a client.
DPI void sv2cCosimserverMMIOWriteRespond(char error)
DPI void sv2cCosimserverSetManifest(int esiVersion, const svOpenArrayHandle compressedManifest)
Set the system zlib-compressed manifest.
DPI int sv2cCosimserverMMIORegister()
Register an MMIO module. Just checks that there is only one instantiated.
DPI void sv2cCosimserverFinish()
Shutdown the RPC server.
DPI int sv2cCosimserverEpRegister(char *endpointId, char *fromHostTypeId, int fromHostTypeSize, char *toHostTypeId, int toHostTypeSize)
Register an endpoint.
DPI int sv2cCosimserverEpTryGet(char *endpointId, const svOpenArrayHandle data, unsigned int *sizeBytes)
Try to get a message from a client.
DPI int sv2cCosimserverInit()
Start the server.
DPI int sv2cCosimserverMMIOWriteTryGet(uint32_t *address, uint32_t *data)
Write MMIO function pair.
DPI int sv2cCosimserverMMIOReadTryGet(uint32_t *address)
Read MMIO function pair.
DPI void sv2cCosimserverMMIOReadRespond(uint32_t data, char error)
XXTERN typedef void * svOpenArrayHandle