buffaccm.c

As with all files, rename the file, adding a preceding l (the letter after k and before m)

line# action
1 replace #include "includes.h" with #include "lincludes.h"
33 replace INLINE with inline
127 replace accum_status_a = (unsigned)inpf(ACCUM_STATUS_A); with accum_status_a = (unsigned)inw_p(TR(ACCUM_STATUS_A));
144 replace _epoch_check[channel] = (unsigned)inpw(CHPTR->_CTRL_BASE + EPOCH_CHECK); with _epoch_check[channel] = (unsigned)inw_p(TR((CHPTR->_CTRL_BASE + EPOCH_CHECK)>>ADDRESS_SHIFT));
149 replace IT[channel] = (long)(short)inpw(_accum_base + I_TRACK); with IT[channel] = (long)(short)inw_p(TR((_accum_base + I_TRACK)>>ADDRESS_SHIFT));
150 replace QT[channel] = (long)(short)inpw(_accum_base + Q_TRACK); with QT[channel] = (long)(short)inw_p(TR((_accum_base + Q_TRACK)>>ADDRESS_SHIFT));
155 replace IP[channel] = (long)(short)inpw(_accum_base + I_PROMPT); with IP[channel] = (long)(short)inw_p(TR((_accum_base + I_PROMPT)>>ADDRESS_SHIFT));
156 replace QP[channel] = (long)(short)inpw(_accum_base + Q_PROMPT); with IP[channel] = (long)(short)inw_p(TR((_accum_base + I_PROMPT)>>ADDRESS_SHIFT));
166 replace accum_status_b = (unsigned)inpf(ACCUM_STATUS_B); with accum_status_b = (unsigned)inw_p(TR(ACCUM_STATUS_B));
187 replace outpw(CHPTR->_ACCUM_BASE+ACCUM_RESET,0); with outw_p(0,TR((CHPTR->_ACCUM_BASE+ACCUM_RESET)>>ADDRESS_SHIFT));
209 replace long iim1_plus_qqm1; with long iim1_plus_qqm1 = 0;
274 replace outpw(CHPTR->_CTRL_BASE+SATCNTL,prntaps[CHPTR->SV-1]|0xE000UL); with outw_p(prntaps[CHPTR->SV-1]|0xE000UL,TR((CHPTR->_CTRL_BASE+SATCNTL)>>ADDRESS_SHIFT));
284 replace outpw(CHPTR->_CTRL_BASE+SATCNTL,prntaps[CHPTR->SV-1]|0x8000UL); with outw_p(prntaps[CHPTR->SV-1]|0x8000UL,TR((CHPTR->_CTRL_BASE+SATCNTL)>>ADDRESS_SHIFT));
464 replace FrameSync(CHPTR,((_epoch_check[channel])>>8)); with FrameSync(CHPTR,((_epoch_check[channel])>>8));
493 replace outpw(CHPTR->_CTRL_BASE + CARRIER_DCO_INCR_HIGH,(unsigned)((CHPTR->CARRDCO+8L)>>20)); with outw_p((unsigned)((CHPTR->CARRDCO+8L)>>20),TR((CHPTR->_CTRL_BASE + CARRIER_DCO_INCR_HIGH)>>ADDRESS_SHIFT));
495 replace outpw(CHPTR->_CTRL_BASE + CARRIER_DCO_INCR_LOW,(unsigned)((CHPTR->CARRDCO+8L)>>4)); with outw_p((unsigned)((CHPTR->CARRDCO+8L)>>4),TR((CHPTR->_CTRL_BASE + CARRIER_DCO_INCR_LOW)>>ADDRESS_SHIFT));
499 replace outpw(CHPTR->_CTRL_BASE + CODE_DCO_INCR_HIGH,(unsigned)((CHPTR->CODEDCO+16L)>>21)); with outw_p((unsigned)((CHPTR->CODEDCO+16L)>>21),TR((CHPTR->_CTRL_BASE + CODE_DCO_INCR_HIGH)>>ADDRESS_SHIFT));
493 replace outpw(CHPTR->_CTRL_BASE + CODE_DCO_INCR_LOW,(unsigned)((CHPTR->CODEDCO+16L)>>5)); with outw_p((unsigned)((CHPTR->CODEDCO+16L)>>5),TR((CHPTR->_CTRL_BASE + CODE_DCO_INCR_LOW)>>ADDRESS_SHIFT));