bh = ah; bl = al; if(dl != 0) { temp = bh; bh = dh; dh = temp; if(dl == 1) { temp = bl; bl = dh; dh = temp; } else { temp = bl; bl = bh; bh = temp; } } if(shiftflag) { dh <<= 2; bh <<= 2; bl <<= 2; } SiS_SetRegByte(DACData,(USHORT)dh); SiS_SetRegByte(DACData,(USHORT)bh); SiS_SetRegByte(DACData,(USHORT)bl); 
switch(dl) { case  0: d1 = dh; d2 = ah; d3 = al; break; case  1: d1 = ah; d2 = al; d3 = dh; break; default: d1 = al; d2 = dh; d3 = ah; } SiS_SetRegByte(DACData, (d1 << shiftflag)); SiS_SetRegByte(DACData, (d2 << shiftflag)); SiS_SetRegByte(DACData, (d3 << shiftflag)); 
SiS_WriteDAC(SiS_Private *SiS_Pr, SISIOADDRESS DACData, USHORT shiftflag,             USHORT dl, USHORT ah, USHORT al, USHORT dh){  USHORT temp,bh,bl;  bh = ah;  bl = al;  if(dl != 0) {     temp = bh;     bh = dh;     dh = temp;     if(dl == 1) {        temp = bl;        bl = dh;        dh = temp;     } else {        temp = bl;        bl = bh;        bh = temp;     }  }  if(shiftflag) {     dh <<= 2;     bh <<= 2;     bl <<= 2;  }  SiS_SetRegByte(DACData,(USHORT)dh);  SiS_SetRegByte(DACData,(USHORT)bh);  SiS_SetRegByte(DACData,(USHORT)bl);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/init.c/clean/drivers/video/sis/init.c