int DmaRequestJson_readRequestSize ( struct PortalInternal *p, const uint16_t readRequestBytes ) { DmaRequest_readRequestSizeData tempdata; tempdata.readRequestBytes = readRequestBytes; connectalJsonEncode(p, &tempdata, &DmaRequestInfo[CHAN_NUM_DmaRequest_readRequestSize]); return 0; };
int MemServerIndicationJson_reportStateDbg ( struct PortalInternal *p, const DmaDbgRec rec ) { MemServerIndication_reportStateDbgData tempdata; tempdata.rec = rec; connectalJsonEncode(p, &tempdata, &MemServerIndicationInfo[CHAN_NUM_MemServerIndication_reportStateDbg]); return 0; };
int DmaRequestJson_writeRequestSize ( struct PortalInternal *p, const uint16_t burstLenBytes ) { DmaRequest_writeRequestSizeData tempdata; tempdata.burstLenBytes = burstLenBytes; connectalJsonEncode(p, &tempdata, &DmaRequestInfo[CHAN_NUM_DmaRequest_writeRequestSize]); return 0; };
int MemServerIndicationJson_reportMemoryTraffic ( struct PortalInternal *p, const uint64_t words ) { MemServerIndication_reportMemoryTrafficData tempdata; tempdata.words = words; connectalJsonEncode(p, &tempdata, &MemServerIndicationInfo[CHAN_NUM_MemServerIndication_reportMemoryTraffic]); return 0; };
int MMURequestJson_idRequest ( struct PortalInternal *p, const SpecialTypeForSendingFd fd ) { MMURequest_idRequestData tempdata; tempdata.fd = fd; connectalJsonEncode(p, &tempdata, &MMURequestInfo[CHAN_NUM_MMURequest_idRequest]); return 0; };
int MemServerIndicationJson_addrResponse ( struct PortalInternal *p, const uint64_t physAddr ) { MemServerIndication_addrResponseData tempdata; tempdata.physAddr = physAddr; connectalJsonEncode(p, &tempdata, &MemServerIndicationInfo[CHAN_NUM_MemServerIndication_addrResponse]); return 0; };
int MMURequestJson_idReturn ( struct PortalInternal *p, const uint32_t sglId ) { MMURequest_idReturnData tempdata; tempdata.sglId = sglId; connectalJsonEncode(p, &tempdata, &MMURequestInfo[CHAN_NUM_MMURequest_idReturn]); return 0; };
int MemServerRequestJson_memoryTraffic ( struct PortalInternal *p, const ChannelType rc ) { MemServerRequest_memoryTrafficData tempdata; tempdata.rc = rc; connectalJsonEncode(p, &tempdata, &MemServerRequestInfo[CHAN_NUM_MemServerRequest_memoryTraffic]); return 0; };
int MemServerRequestJson_setTileState ( struct PortalInternal *p, const TileControl tc ) { MemServerRequest_setTileStateData tempdata; memcpy(&tempdata.tc, &tc, sizeof(tempdata.tc)); connectalJsonEncode(p, &tempdata, &MemServerRequestInfo[CHAN_NUM_MemServerRequest_setTileState]); return 0; };
void connectalJsonEncodeAndSend(PortalInternal *pint, void *binarydata, ConnectalMethodJsonInfo *info) { ConnectalParamJsonInfo *iparam = info->param; char *jsonp = (char *)pint->transport->mapchannelInd(pint, 0); connectalJsonEncode(jsonp, binarydata, info, pint->json_arg_vector); int rounded_size = strlen(jsonp); pint->transport->send(pint, (volatile unsigned int*)jsonp, (iparam->offset << 16) | (1 + rounded_size), -1); }
int MMURequestJson_setInterface ( struct PortalInternal *p, const uint32_t interfaceId, const uint32_t sglId ) { MMURequest_setInterfaceData tempdata; tempdata.interfaceId = interfaceId; tempdata.sglId = sglId; connectalJsonEncode(p, &tempdata, &MMURequestInfo[CHAN_NUM_MMURequest_setInterface]); return 0; };
int MemServerRequestJson_addrTrans ( struct PortalInternal *p, const uint32_t sglId, const uint32_t offset ) { MemServerRequest_addrTransData tempdata; tempdata.sglId = sglId; tempdata.offset = offset; connectalJsonEncode(p, &tempdata, &MemServerRequestInfo[CHAN_NUM_MemServerRequest_addrTrans]); return 0; };
int DmaRequestJson_transferFromFpga ( struct PortalInternal *p, const uint32_t objId, const uint32_t base, const uint32_t bytes, const uint8_t tag ) { DmaRequest_transferFromFpgaData tempdata; tempdata.objId = objId; tempdata.base = base; tempdata.bytes = bytes; memcpy(&tempdata.tag, &tag, sizeof(tempdata.tag)); connectalJsonEncode(p, &tempdata, &DmaRequestInfo[CHAN_NUM_DmaRequest_transferFromFpga]); return 0; };
int MemServerIndicationJson_error ( struct PortalInternal *p, const uint32_t code, const uint32_t sglId, const uint64_t offset, const uint64_t extra ) { MemServerIndication_errorData tempdata; tempdata.code = code; tempdata.sglId = sglId; tempdata.offset = offset; tempdata.extra = extra; connectalJsonEncode(p, &tempdata, &MemServerIndicationInfo[CHAN_NUM_MemServerIndication_error]); return 0; };
int MMURequestJson_sglist ( struct PortalInternal *p, const uint32_t sglId, const uint32_t sglIndex, const uint64_t addr, const uint32_t len ) { MMURequest_sglistData tempdata; tempdata.sglId = sglId; tempdata.sglIndex = sglIndex; tempdata.addr = addr; tempdata.len = len; connectalJsonEncode(p, &tempdata, &MMURequestInfo[CHAN_NUM_MMURequest_sglist]); return 0; };
int MMURequestJson_region ( struct PortalInternal *p, const uint32_t sglId, const uint64_t barr12, const uint32_t index12, const uint64_t barr8, const uint32_t index8, const uint64_t barr4, const uint32_t index4, const uint64_t barr0, const uint32_t index0 ) { MMURequest_regionData tempdata; tempdata.sglId = sglId; tempdata.barr12 = barr12; tempdata.index12 = index12; tempdata.barr8 = barr8; tempdata.index8 = index8; tempdata.barr4 = barr4; tempdata.index4 = index4; tempdata.barr0 = barr0; tempdata.index0 = index0; connectalJsonEncode(p, &tempdata, &MMURequestInfo[CHAN_NUM_MMURequest_region]); return 0; };