/* * Initialize the common fields in a charLpEvent */ static void initDataEvent(struct viocharlpevent *viochar, HvLpIndex lp) { memset(viochar, 0, sizeof(struct viocharlpevent)); viochar->event.xFlags.xValid = 1; viochar->event.xFlags.xFunction = HvLpEvent_Function_Int; viochar->event.xFlags.xAckInd = HvLpEvent_AckInd_NoAck; viochar->event.xFlags.xAckType = HvLpEvent_AckType_DeferredAck; viochar->event.xType = HvLpEvent_Type_VirtualIo; viochar->event.xSubtype = viomajorsubtype_chario | viochardata; viochar->event.xSourceLp = HvLpConfig_getLpIndex(); viochar->event.xTargetLp = lp; viochar->event.xSizeMinus1 = sizeof(struct viocharlpevent); viochar->event.xSourceInstanceId = viopath_sourceinst(lp); viochar->event.xTargetInstanceId = viopath_targetinst(lp); }
HvLpIndex HvLpConfig_getLpIndex_outline(void) { return HvLpConfig_getLpIndex(); }