X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcm%2Fmac_sch_interface.h;h=e3efb1c105655a377f7b4267736494cda740e8c0;hb=12da8be0c4941e107b9ff0d18ce5b6eb7f5f7d20;hp=2c7d5ceeaaf1d217afb2fa1ba220746e5026cc66;hpb=6fee61a10e1ad48ff7105b3201038ac8a337fd4a;p=o-du%2Fl2.git diff --git a/src/cm/mac_sch_interface.h b/src/cm/mac_sch_interface.h index 2c7d5ceea..e3efb1c10 100644 --- a/src/cm/mac_sch_interface.h +++ b/src/cm/mac_sch_interface.h @@ -584,7 +584,7 @@ typedef struct dlDCI uint8_t aggregLevel; BeamformingInfo beamPdcchInfo; TxPowerPdcchInfo txPdcchPower; - PdschCfg *pdschCfg; + PdschCfg pdschCfg; }DlDCI; typedef struct pdcchCfg @@ -913,7 +913,7 @@ typedef struct ssbInfo typedef struct sib1AllocInfo { BwpCfg bwp; - PdcchCfg sib1PdcchCfg; + PdcchCfg *sib1PdcchCfg; }Sib1AllocInfo; typedef struct prachSchInfo @@ -958,7 +958,6 @@ typedef struct msg3UlGrant typedef struct rarInfo { - uint16_t raRnti; uint8_t RAPID; uint16_t ta; Msg3UlGrant ulGrant; @@ -969,54 +968,67 @@ typedef struct rarInfo typedef struct rarAlloc { - DlPduType pduPres; - uint8_t pdschSlot; - RarInfo rarInfo; - BwpCfg bwp; - PdcchCfg rarPdcchCfg; - PdschCfg rarPdschCfg; + uint16_t raRnti; + RarInfo rarInfo; + BwpCfg bwp; + PdcchCfg *rarPdcchCfg; + PdschCfg *rarPdschCfg; }RarAlloc; -typedef struct dlMsgInfo -{ - uint16_t crnti; - uint8_t ndi; - uint8_t harqProcNum; - uint8_t dlAssignIdx; - uint8_t pucchTpc; - uint8_t pucchResInd; - uint8_t harqFeedbackInd; - uint8_t dciFormatId; - bool isMsg4Pdu; - uint16_t dlMsgPduLen; - uint8_t *dlMsgPdu; -}DlMsgInfo; - typedef struct lcSchInfo { uint8_t lcId; - uint32_t schBytes; /* Number of scheduled bytes */ + uint32_t schBytes; }LcSchInfo; -typedef struct dlMsgSchedInfo +typedef struct ceSchInfo +{ + uint8_t ceLcId; + uint8_t *ceContent; +}CeSchInfo; + +typedef struct freqDomainAlloc +{ + uint8_t resAllocType; /* Resource allocation type */ + union + { + ResAllocType0 type0; + ResAllocType1 type1; + }resAlloc; +}FreqDomainAlloc; + +typedef struct transportBlock { - bool isRetx; + uint8_t mcs; + bool ndi; + uint8_t rv; + uint16_t tbSize; + uint8_t numCe; + CeSchInfo ceSchInfo[MAX_NUM_LC]; uint8_t numLc; - LcSchInfo lcSchInfo[MAX_NUM_LC]; /* Scheduled LC info */ - BwpCfg bwp; - PdcchCfg dlMsgPdcchCfg; - PdschCfg dlMsgPdschCfg; - DlPduType pduPres; - uint8_t pdschSlot; - DlMsgInfo dlMsgInfo; -}DlMsgSchInfo; + LcSchInfo lcSchInfo[MAX_NUM_LC]; +}TransportBlock; -typedef struct dlMsgAlloc +typedef struct dlMsgSchedInfo { - uint16_t crnti; - uint8_t numSchedInfo; - DlMsgSchInfo dlMsgSchedInfo[2]; -}DlMsgAlloc; + uint16_t crnti; + uint8_t dciFormatId; + uint8_t harqProcNum; + bool vrbPrbMapping; + uint8_t dlAssignIdx; + uint8_t pucchTpc; + uint8_t pucchResInd; + uint8_t harqFeedbackInd; + uint16_t dlMsgPduLen; + uint8_t *dlMsgPdu; + FreqDomainAlloc freqAlloc; + TimeDomainAlloc timeAlloc; + uint8_t numOfTbs; + TransportBlock transportBlock[2]; + BwpCfg bwp; + PdcchCfg *dlMsgPdcchCfg; + PdschCfg *dlMsgPdschCfg; +}DlMsgSchInfo; typedef struct schSlotValue { @@ -1027,15 +1039,6 @@ typedef struct schSlotValue SlotTimingInfo ulDciTime; }SchSlotValue; -typedef struct freqDomainAlloc -{ - uint8_t resAllocType; /* Resource allocation type */ - union - { - ResAllocType0 type0; - ResAllocType1 type1; - }resAlloc; -}FreqDomainAlloc; /* Reference -> O-RAN.WG8.AAD.0-v07.00, Table 9-36 DCI Format0_0 Configuration */ typedef struct format0_0 @@ -1121,7 +1124,7 @@ typedef struct dlSchedInfo DciInfo *ulGrant; /* Allocation from dedicated DL msg */ - DlMsgAlloc *dlMsgAlloc[MAX_NUM_UE]; + DlMsgSchInfo *dlMsgAlloc[MAX_NUM_UE]; }DlSchedInfo;