123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769 |
- SetSimTraceSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetSimTraceSel_TrustedCall (config_2(D));
- return;
- }
- SetSimTraceSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct SIM_Type * _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SIM_Type * _6;
- <bb 2> :
- _1 = config_8(D)->value;
- _2 = selectorEntryPCS_hardwareValue[_1];
- selectorValue_9 = (uint32) _2;
- _3 = 1074036736B;
- regValue_10 ={v} _3->CHIPCTL;
- regValue_11 = regValue_10 & 4294963199;
- _4 = selectorValue_9 << 12;
- _5 = _4 & 4096;
- regValue_12 = regValue_11 | _5;
- _6 = 1074036736B;
- _6->CHIPCTL ={v} regValue_12;
- return;
- }
- ResetSimTraceSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetSimTraceSel_TrustedCall (config_2(D));
- return;
- }
- ResetSimTraceSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- unsigned char _1;
- struct SIM_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- struct SIM_Type * _5;
- <bb 2> :
- _1 = selectorEntryPCS_hardwareValue[28];
- selectorValue_7 = (uint32) _1;
- _2 = 1074036736B;
- regValue_8 ={v} _2->CHIPCTL;
- regValue_9 = regValue_8 & 4294963199;
- _3 = selectorValue_7 << 12;
- _4 = _3 & 4096;
- regValue_10 = regValue_9 | _4;
- _5 = 1074036736B;
- _5->CHIPCTL ={v} regValue_10;
- return;
- }
- SetPccPcsSelect (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetPccPcsSelect_TrustedCall (config_2(D));
- return;
- }
- SetPccPcsSelect_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 pccIndex;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- <unnamed type> _3;
- unsigned char _4;
- struct PCC_Type * _5;
- long unsigned int _6;
- long unsigned int _7;
- struct PCC_Type * _8;
- <bb 2> :
- _1 = config_10(D)->name;
- _2 = clockFeatures[_1][4];
- pccIndex_11 = (uint32) _2;
- _3 = config_10(D)->value;
- _4 = selectorEntryPCS_hardwareValue[_3];
- selectorValue_12 = (uint32) _4;
- _5 = 1074155520B;
- regValue_13 ={v} _5->PCCn[pccIndex_11];
- regValue_14 = regValue_13 & 4177526783;
- _6 = selectorValue_12 << 24;
- _7 = _6 & 117440512;
- regValue_15 = regValue_14 | _7;
- _8 = 1074155520B;
- _8->PCCn[pccIndex_11] ={v} regValue_15;
- return;
- }
- ResetPccPcsSelect (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetPccPcsSelect_TrustedCall (config_2(D));
- return;
- }
- ResetPccPcsSelect_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 pccIndex;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct PCC_Type * _3;
- struct PCC_Type * _4;
- <bb 2> :
- _1 = config_6(D)->name;
- _2 = clockFeatures[_1][4];
- pccIndex_7 = (uint32) _2;
- _3 = 1074155520B;
- regValue_8 ={v} _3->PCCn[pccIndex_7];
- regValue_9 = regValue_8 & 3103784959;
- _4 = 1074155520B;
- _4->PCCn[pccIndex_7] ={v} regValue_9;
- return;
- }
- SetSimClkoutSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetSimClkoutSel_TrustedCall (config_2(D));
- return;
- }
- SetSimClkoutSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct SIM_Type * _3;
- long unsigned int _4;
- struct SIM_Type * _5;
- <bb 2> :
- _1 = config_7(D)->value;
- _2 = selectorEntry_hardwareValue[_1];
- selectorValue_8 = (uint32) _2;
- _3 = 1074036736B;
- regValue_9 ={v} _3->CHIPCTL;
- regValue_10 = regValue_9 & 4294967055;
- _4 = selectorValue_8 << 4;
- regValue_11 = regValue_10 | _4;
- _5 = 1074036736B;
- _5->CHIPCTL ={v} regValue_11;
- return;
- }
- ResetSimClkoutSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetSimClkoutSel_TrustedCall (config_2(D));
- return;
- }
- ResetSimClkoutSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 regValue;
- struct SIM_Type * _1;
- struct SIM_Type * _2;
- <bb 2> :
- _1 = 1074036736B;
- regValue_4 ={v} _1->CHIPCTL;
- regValue_5 = regValue_4 & 4294965007;
- _2 = 1074036736B;
- _2->CHIPCTL ={v} regValue_5;
- return;
- }
- SetSimFtmoptSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetSimFtmoptSel_TrustedCall (config_2(D));
- return;
- }
- SetSimFtmoptSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 instance;
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- <unnamed type> _3;
- unsigned char _4;
- struct SIM_Type * _5;
- long unsigned int _6;
- long unsigned int _7;
- long unsigned int _8;
- long unsigned int _9;
- long unsigned int _10;
- long unsigned int _11;
- long unsigned int _12;
- long unsigned int _13;
- long unsigned int _14;
- long unsigned int _15;
- long unsigned int _16;
- long unsigned int _17;
- long unsigned int _18;
- long unsigned int _19;
- long unsigned int _20;
- long unsigned int _21;
- struct SIM_Type * _22;
- <bb 2> :
- _1 = config_25(D)->value;
- _2 = selectorEntry_hardwareValue[_1];
- selectorValue_26 = (uint32) _2;
- _3 = config_25(D)->name;
- _4 = clockFeatures[_3][0];
- instance_27 = (uint32) _4;
- _5 = 1074036736B;
- regValue_28 ={v} _5->FTMOPT0;
- if (instance_27 <= 3)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _6 = instance_27 << 1;
- _7 = _6 + 24;
- _8 = 3 << _7;
- _9 = ~_8;
- regValue_31 = regValue_28 & _9;
- _10 = instance_27 << 1;
- _11 = _10 + 24;
- _12 = selectorValue_26 << _11;
- regValue_32 = regValue_31 | _12;
- goto <bb 5>; [INV]
- <bb 4> :
- _13 = instance_27 + 4294967292;
- _14 = _13 << 1;
- _15 = _14 + 16;
- _16 = 3 << _15;
- _17 = ~_16;
- regValue_29 = regValue_28 & _17;
- _18 = instance_27 + 4294967292;
- _19 = _18 << 1;
- _20 = _19 + 16;
- _21 = selectorValue_26 << _20;
- regValue_30 = regValue_29 | _21;
- <bb 5> :
- # regValue_23 = PHI <regValue_32(3), regValue_30(4)>
- _22 = 1074036736B;
- _22->FTMOPT0 ={v} regValue_23;
- return;
- }
- ResetSimFtmoptSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetSimFtmoptSel_TrustedCall (config_2(D));
- return;
- }
- ResetSimFtmoptSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 instance;
- uint32 selectorValue;
- uint32 regValue;
- unsigned char _1;
- <unnamed type> _2;
- unsigned char _3;
- struct SIM_Type * _4;
- long unsigned int _5;
- long unsigned int _6;
- long unsigned int _7;
- long unsigned int _8;
- long unsigned int _9;
- long unsigned int _10;
- long unsigned int _11;
- long unsigned int _12;
- long unsigned int _13;
- long unsigned int _14;
- long unsigned int _15;
- long unsigned int _16;
- long unsigned int _17;
- long unsigned int _18;
- long unsigned int _19;
- long unsigned int _20;
- struct SIM_Type * _21;
- <bb 2> :
- _1 = selectorEntry_hardwareValue[5];
- selectorValue_24 = (uint32) _1;
- _2 = config_25(D)->name;
- _3 = clockFeatures[_2][0];
- instance_26 = (uint32) _3;
- _4 = 1074036736B;
- regValue_27 ={v} _4->FTMOPT0;
- if (instance_26 <= 3)
- goto <bb 3>; [INV]
- else
- goto <bb 4>; [INV]
- <bb 3> :
- _5 = instance_26 << 1;
- _6 = _5 + 24;
- _7 = 3 << _6;
- _8 = ~_7;
- regValue_30 = regValue_27 & _8;
- _9 = instance_26 << 1;
- _10 = _9 + 24;
- _11 = selectorValue_24 << _10;
- regValue_31 = regValue_30 | _11;
- goto <bb 5>; [INV]
- <bb 4> :
- _12 = instance_26 + 4294967292;
- _13 = _12 << 1;
- _14 = _13 + 16;
- _15 = 3 << _14;
- _16 = ~_15;
- regValue_28 = regValue_27 & _16;
- _17 = instance_26 + 4294967292;
- _18 = _17 << 1;
- _19 = _18 + 16;
- _20 = selectorValue_24 << _19;
- regValue_29 = regValue_28 | _20;
- <bb 5> :
- # regValue_22 = PHI <regValue_31(3), regValue_29(4)>
- _21 = 1074036736B;
- _21->FTMOPT0 ={v} regValue_22;
- return;
- }
- SetScgClkoutSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetScgClkoutSel_TrustedCall (config_2(D));
- return;
- }
- SetScgClkoutSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct SCG_Type * _3;
- long unsigned int _4;
- struct SCG_Type * _5;
- <bb 2> :
- _1 = config_7(D)->value;
- _2 = selectorEntrySCS_hardwareValue[_1];
- selectorValue_8 = (uint32) _2;
- _3 = 1074151424B;
- regValue_9 ={v} _3->CLKOUTCNFG;
- regValue_10 = regValue_9 & 4043309055;
- _4 = selectorValue_8 << 24;
- regValue_11 = regValue_10 | _4;
- _5 = 1074151424B;
- _5->CLKOUTCNFG ={v} regValue_11;
- return;
- }
- ResetScgClkoutSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetScgClkoutSel_TrustedCall (config_2(D));
- return;
- }
- ResetScgClkoutSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- unsigned char _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- struct SCG_Type * _4;
- <bb 2> :
- _1 = selectorEntrySCS_hardwareValue[5];
- selectorValue_6 = (uint32) _1;
- _2 = 1074151424B;
- regValue_7 ={v} _2->CLKOUTCNFG;
- regValue_8 = regValue_7 & 4043309055;
- _3 = selectorValue_6 << 24;
- regValue_9 = regValue_8 | _3;
- _4 = 1074151424B;
- _4->CLKOUTCNFG ={v} regValue_9;
- return;
- }
- SetSimLpoSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetSimLpoSel_TrustedCall (config_2(D));
- return;
- }
- SetSimLpoSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct SIM_Type * _3;
- long unsigned int _4;
- struct SIM_Type * _5;
- <bb 2> :
- _1 = config_7(D)->value;
- _2 = selectorEntryPCS_hardwareValue[_1];
- selectorValue_8 = (uint32) _2;
- _3 = 1074036736B;
- regValue_9 ={v} _3->LPOCLKS;
- regValue_10 = regValue_9 & 4294967283;
- _4 = selectorValue_8 << 2;
- regValue_11 = regValue_10 | _4;
- _5 = 1074036736B;
- _5->LPOCLKS ={v} regValue_11;
- return;
- }
- ResetSimLpoSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetSimLpoSel_TrustedCall (config_2(D));
- return;
- }
- ResetSimLpoSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- unsigned char _1;
- struct SIM_Type * _2;
- long unsigned int _3;
- struct SIM_Type * _4;
- <bb 2> :
- _1 = selectorEntryPCS_hardwareValue[1];
- selectorValue_6 = (uint32) _1;
- _2 = 1074036736B;
- regValue_7 ={v} _2->LPOCLKS;
- regValue_8 = regValue_7 & 4294967283;
- _3 = selectorValue_6 << 2;
- regValue_9 = regValue_8 | _3;
- _4 = 1074036736B;
- _4->LPOCLKS ={v} regValue_9;
- return;
- }
- SetSimRtcSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetSimRtcSel_TrustedCall (config_2(D));
- return;
- }
- SetSimRtcSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct SIM_Type * _3;
- long unsigned int _4;
- struct SIM_Type * _5;
- <bb 2> :
- _1 = config_7(D)->value;
- _2 = selectorEntry_hardwareValue[_1];
- selectorValue_8 = (uint32) _2;
- _3 = 1074036736B;
- regValue_9 ={v} _3->LPOCLKS;
- regValue_10 = regValue_9 & 4294967247;
- _4 = selectorValue_8 << 4;
- regValue_11 = regValue_10 | _4;
- _5 = 1074036736B;
- _5->LPOCLKS ={v} regValue_11;
- return;
- }
- ResetSimRtcSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetSimRtcSel_TrustedCall (config_2(D));
- return;
- }
- ResetSimRtcSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- unsigned char _1;
- struct SIM_Type * _2;
- long unsigned int _3;
- struct SIM_Type * _4;
- <bb 2> :
- _1 = selectorEntry_hardwareValue[14];
- selectorValue_6 = (uint32) _1;
- _2 = 1074036736B;
- regValue_7 ={v} _2->LPOCLKS;
- regValue_8 = regValue_7 & 4294967247;
- _3 = selectorValue_6 << 4;
- regValue_9 = regValue_8 | _3;
- _4 = 1074036736B;
- _4->LPOCLKS ={v} regValue_9;
- return;
- }
- SetScgHsrunSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetScgHsrunSel_TrustedCall (config_2(D));
- return;
- }
- SetScgHsrunSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct SCG_Type * _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_8(D)->value;
- _2 = selectorEntrySCS_hardwareValue[_1];
- selectorValue_9 = (uint32) _2;
- _3 = 1074151424B;
- regValue_10 ={v} _3->HCCR;
- regValue_11 = regValue_10 & 4043309055;
- _4 = selectorValue_9 << 24;
- _5 = _4 & 251658240;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->HCCR ={v} regValue_12;
- return;
- }
- ResetScgHsrunSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetScgHsrunSel_TrustedCall (config_2(D));
- return;
- }
- ResetScgHsrunSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- unsigned char _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- struct SCG_Type * _5;
- <bb 2> :
- _1 = selectorEntrySCS_hardwareValue[5];
- selectorValue_7 = (uint32) _1;
- _2 = 1074151424B;
- regValue_8 ={v} _2->HCCR;
- regValue_9 = regValue_8 & 4043309055;
- _3 = selectorValue_7 << 24;
- _4 = _3 & 251658240;
- regValue_10 = regValue_9 | _4;
- _5 = 1074151424B;
- _5->HCCR ={v} regValue_10;
- return;
- }
- SetScgVlprSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetScgVlprSel_TrustedCall (config_2(D));
- return;
- }
- SetScgVlprSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct SCG_Type * _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_8(D)->value;
- _2 = selectorEntrySCS_hardwareValue[_1];
- selectorValue_9 = (uint32) _2;
- _3 = 1074151424B;
- regValue_10 ={v} _3->VCCR;
- regValue_11 = regValue_10 & 4043309055;
- _4 = selectorValue_9 << 24;
- _5 = _4 & 251658240;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->VCCR ={v} regValue_12;
- return;
- }
- SetScgRunSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- SetScgRunSel_TrustedCall (config_2(D));
- return;
- }
- SetScgRunSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- <unnamed type> _1;
- unsigned char _2;
- struct SCG_Type * _3;
- long unsigned int _4;
- long unsigned int _5;
- struct SCG_Type * _6;
- <bb 2> :
- _1 = config_8(D)->value;
- _2 = selectorEntrySCS_hardwareValue[_1];
- selectorValue_9 = (uint32) _2;
- _3 = 1074151424B;
- regValue_10 ={v} _3->RCCR;
- regValue_11 = regValue_10 & 4043309055;
- _4 = selectorValue_9 << 24;
- _5 = _4 & 251658240;
- regValue_12 = regValue_11 | _5;
- _6 = 1074151424B;
- _6->RCCR ={v} regValue_12;
- return;
- }
- ResetScgRunSel (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- ResetScgRunSel_TrustedCall (config_2(D));
- return;
- }
- ResetScgRunSel_TrustedCall (const struct Clock_Ip_SelectorConfigType * config)
- {
- uint32 selectorValue;
- uint32 regValue;
- unsigned char _1;
- struct SCG_Type * _2;
- long unsigned int _3;
- long unsigned int _4;
- struct SCG_Type * _5;
- <bb 2> :
- _1 = selectorEntrySCS_hardwareValue[5];
- selectorValue_7 = (uint32) _1;
- _2 = 1074151424B;
- regValue_8 ={v} _2->RCCR;
- regValue_9 = regValue_8 & 4043309055;
- _3 = selectorValue_7 << 24;
- _4 = _3 & 251658240;
- regValue_10 = regValue_9 | _4;
- _5 = 1074151424B;
- _5->RCCR ={v} regValue_10;
- return;
- }
- Callback_SelectorEmpty (const struct Clock_Ip_SelectorConfigType * config)
- {
- <bb 2> :
- return;
- }
|