<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.2722.900" name=GENERATOR>
<META content="Microsoft Word 10" name=Originator><LINK 
href="cid:filelist.xml@01C520BF.7B2630F0" rel=File-List><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
SPAN.GramE {
        mso-style-name: ""; mso-gram-e: yes
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */ 
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US style="tab-interval: .5in" vLink=purple link=blue 
bgColor=white>
<DIV>Akash,</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What hardware are you using?&nbsp; I know Extreme 
Engineering</FONT></DIV>
<DIV><FONT face=Arial size=2>has&nbsp;8280-capable cards&nbsp;with a 
Linux&nbsp;MCC driver available.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>PMC:</FONT></DIV>
<DIV><FONT face=Arial size=2><A 
href="http://www.xes-inc.com/Products/XPort/XPort2000/XPort2000.html">http://www.xes-inc.com/Products/XPort/XPort2000/XPort2000.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>PCI:</FONT></DIV>
<DIV><FONT face=Arial size=2><A 
href="http://www.xes-inc.com/Products/XPort/XPort2010/XPort2010.html">http://www.xes-inc.com/Products/XPort/XPort2010/XPort2010.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>CompactPCI:</FONT></DIV>
<DIV><FONT face=Arial size=2><A 
href="http://www.xes-inc.com/Products/XPort/XPort2020/XPort2020.html">http://www.xes-inc.com/Products/XPort/XPort2020/XPort2020.html</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>For what it's worth,</FONT></DIV>
<DIV><FONT face=Arial size=2>Matt</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=akashkaul@deccanetworld.com 
  href="mailto:akashkaul@deccanetworld.com">akash kaul</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=linuxppc-embedded@ozlabs.org 
  href="mailto:linuxppc-embedded@ozlabs.org">linuxppc-embedded@ozlabs.org</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, March 04, 2005 2:08 
AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> MCC driver help</DIV>
  <DIV><BR></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">H<FONT color=navy><SPAN 
  style="COLOR: navy">i </SPAN></FONT>All,</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;We&nbsp;are 
  developing&nbsp;MCC driver for MPC8280.&nbsp;We are using TDMD2&nbsp;&nbsp;for 
  2 channels in HDLC mode. </SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Currently we 
  are testing using internal/external loopback setting. For this we&nbsp;have 
  connected BRG6 Output to CLK19 and TMR3IN (timer3 input). The TMR3O(timer 3 
  output) is fed to L1RSYNC. We are receiving GUN interrupt. In the first 
  interrupt we are receiving IDL interrupt&nbsp;followwd by GUN&nbsp;interrupt 
  and the driver stops.</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;We have 
  verified the reasons given for this.But not able to overcome this 
  problem.</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;I have 
  pasted some of the code snippets of my driver which i am doubtful of.&nbsp; I 
  hope to get some comments from the group on 
  this.</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Please find 
  below&nbsp; some of the code snippets: </SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  <STRONG><B><FONT face=Arial><SPAN style="FONT-FAMILY: Arial">/*Configuring 
  SIxMR for 
TDMD2*/</SPAN></FONT></B></STRONG></SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
  class=GramE>immap</SPAN>-&gt;im_siramctl2.si_dmr = 0xA68;&nbsp;&nbsp; 
  /*(SI_M_CRT | SI_M_SDM_INTERNAL_LOOPBACK | SI_M_SAD_0 | SI_M_CE | SI_M_FE | 
  SI_M_SL |&nbsp;SI_M_RFSD_2BIT_DELAY);*/</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;<STRONG><B><FONT 
  face=Arial><SPAN style="FONT-FAMILY: Arial">/* SI2 RAM 
  programming*/</SPAN></FONT></B></STRONG></SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT><FONT face=Arial 
  size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;immap-&gt;im_si2txram[0] 
  = ( SIRAM_MCC | (SIRAM_CNT_1&lt;&lt;2) |SIRAM_RESOL_BYTE| 
  (128&lt;&lt;5));<BR>&nbsp;&nbsp;&nbsp; immap-&gt;im_si2txram[1] = ( SIRAM_MCC 
  | (SIRAM_CNT_8&lt;&lt;2) | SIRAM_RESOL_BYTE | SIRAM_ENTRY_LAST | 
  (129&lt;&lt;5));</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_si2rxram[0] = ( SIRAM_MCC | (SIRAM_CNT_1&lt;&lt;2) 
  |SIRAM_RESOL_BYTE| (128&lt;&lt;5));<BR>&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_si2rxram[1] = ( SIRAM_MCC |(SIRAM_CNT_8&lt;&lt;2) 
  |SIRAM_RESOL_BYTE| SIRAM_ENTRY_LAST | 
  (129&lt;&lt;5));</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  <STRONG><B><FONT face=Arial><SPAN style="FONT-FAMILY: Arial">/*Clock and BRG6 
  initialization 
*/</SPAN></FONT></B></STRONG></SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
  class=GramE>immap</SPAN>-&gt;im_cpmtimer.cpmt_tmr3= 0x0e; 
  /*(CPM_TIMER_ICLK|CPM_TIMER_GE|CPM_TIMER_FRR);*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;immap-&gt;im_cpmtimer.cpmt_trr3=&nbsp; 
  0x41;&nbsp;&nbsp; /* 63 bits :: <STRONG><B><FONT face=Arial><SPAN 
  style="FONT-FAMILY: Arial">Is this right</SPAN></FONT></B></STRONG>, I have 
  set it to 63 b<FONT color=navy><SPAN style="COLOR: navy">e</SPAN></FONT>cause 
  my first channel is 1 bit wide and second channel is 64 bit 
  wide&nbsp;*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;<SPAN 
  class=GramE>immap</SPAN>-&gt;im_cpmtimer.cpmt_tgcr2 = 0x09 
  ;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;immap-&gt;im_brgc6 = 0x00010000;&nbsp; /* 
  Directly feeding BRG6 with BRG_CLK which is of 33Mhz in my 
  board*/</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  <STRONG><B><FONT face=Arial><SPAN style="FONT-FAMILY: Arial">/*Port pin 
  configuration*/</SPAN></FONT></B></STRONG></SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;immap-&gt;im_ioport.iop_psorb&nbsp; 
  |= 
  (TDMD2_L1TXD|TDMD2_L1RXD|TDMD2_L1RSYNC);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_ioport.iop_pdirb&nbsp; &amp;= 
  ~(TDMD2_L1TXD|TDMD2_L1RXD|TDMD2_L1RSYNC);&nbsp;&nbsp;&nbsp;</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_ioport.iop_pparb&nbsp; |= 
  (TDMD2_L1TXD|TDMD2_L1RXD|TDMD2_L1RSYNC);&nbsp;&nbsp;&nbsp;&nbsp;</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_ioport.iop_psora &amp;= 
  ~(TDMD2_CLK19);&nbsp;</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_ioport.iop_pdira &amp;= 
  ~(TDMD2_CLK19);&nbsp;<BR>&nbsp;&nbsp;&nbsp; immap-&gt;im_ioport.iop_ppara |= 
  (TDMD2_CLK19); <o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  </SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_ioport.iop_psorc&nbsp; &amp;= ~(TDMD2_TIN3 | TDMD2_BRGO6 
  |TDMD2_TOUT3);</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_ioport.iop_pdirc&nbsp; |= (TDMD2_BRGO6 | 
  TDMD2_TOUT3);&nbsp;<BR>&nbsp;&nbsp;&nbsp; immap-&gt;im_ioport.iop_pdirc&nbsp; 
  &amp;= ~(TDMD2_TIN3);&nbsp;</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_ioport.iop_pparc&nbsp; |= (TDMD2_TIN3 | TDMD2_BRGO6 | 
  TDMD2_TOUT3); </SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;</SPAN></FONT><o:p></o:p></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_cpmux.cmx_si2cr |= 
  (TDMD2_CLK19_CS);<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><STRONG><B><FONT face=Arial 
  size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  /*Initialize RxBDs.*/&nbsp; called for two 
  channels</SPAN></FONT></B></STRONG><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><STRONG><B><FONT face=Arial 
  size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;</SPAN></FONT></B></STRONG><FONT 
  face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for 
  (index = 0; index &lt; MAX_NUM_BD; 
  index++)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( index != 
  (MAX_NUM_BD-1) )&nbsp; /* If not the last RxBD for this channel 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;rx_bd[index+offset].cbd_sc = 0x9000; /* Empty, Interrupt 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else&nbsp; /* if 
  last RxBD for this channel 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;rx_bd[index+offset].cbd_sc = 0xB000;&nbsp;&nbsp; /* Empty, 
  Interrupt,and wrap 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* set the CM bit in the RxBDS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;rx_bd[index+offset].cbd_sc |= 0x0200;&nbsp;&nbsp; /* set 
  continuous bit */<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* clear the buffer length 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;rx_bd[index+offset].cbd_datlen = 
  0;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* set address to point to proper receive area for&nbsp;&nbsp;&nbsp;this BD in 
  the bufferpool scheme this program uses 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; va_ptr = (u32 
  *)cpm2_hostalloc(MAX_BUF_LEN, 
  8);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;rx_bd[index+offset].cbd_bufaddr = (uint 
  )__pa(va_ptr);<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  } /* end for loop initializing RxBDs */<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">/* <STRONG><B><FONT 
  face=Arial><SPAN style="FONT-FAMILY: Arial">Initialize TxBDs and RX BDs for 
  both the 
  channels</SPAN></FONT></B></STRONG>*/<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp; for ( offset = 0, counter = 
  0; counter &lt; NUM_CHANS_PER_TDM;)<BR>&nbsp;&nbsp;&nbsp; 
  {<BR><STRONG><B><FONT face=Arial><SPAN 
  style="FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* Initialize 
  TxBDs. */</SPAN></FONT></B></STRONG><B><SPAN 
  style="FONT-WEIGHT: bold"><BR><STRONG><B><FONT face=Arial><SPAN 
  style="FONT-FAMILY: Arial">&nbsp;</SPAN></FONT></B></STRONG></SPAN></B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  for (index=0; index &lt; MAX_NUM_BD; 
  index++)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if( index != 
  (MAX_NUM_BD-1) )&nbsp; /* If not the last TxBD for this channel 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* Set Ready bit 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;tx_bd[index+offset].cbd_sc = 
  0x8000;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* If this channel is HDLC, also set Last and TC bits 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;tx_bd[index+offset].cbd_sc |= 
  0x0C00;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  }<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else&nbsp; /* if 
  last TxBD for this channel 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* Set Ready, Wrap bits 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;tx_bd[index+offset].cbd_sc = 
  0xA000;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* If this channel is HDLC, also set Last and TC bits 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;tx_bd[index+offset].cbd_sc |= 
  0x0C00;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  };<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* set the CM bit in the TxBDS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;tx_bd[index+offset].cbd_sc |= 0x0200;&nbsp;&nbsp; /* set 
  continuous bit */<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* set address to point to proper receive area for&nbsp;this BD in the 
  bufferpool scheme this program uses 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; va_ptr = 
  (u32 *)cpm2_hostalloc(MAX_BUF_LEN, 
  8);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  memset(va_ptr,(u8)'B', 
  MAX_BUF_LEN);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;tx_bd[index+offset].cbd_bufaddr = (uint 
  )__pa(va_ptr);<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  /* load the buffer length 
  */<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  rx_tx_bd-&gt;tx_bd[index+offset].cbd_datlen = 
  54;//MAX_BUF_LEN;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;}/* end for loop 
  initializing TxBDs */<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;offset = (++ counter * 
  MAX_NUM_BD);<BR>} /* End of outer for 
loop*/<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><STRONG><B><FONT face=Arial 
  size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp; /* MCC 
  Init*/</SPAN></FONT></B></STRONG><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><STRONG><B><FONT face=Arial 
  size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  #define TDM&nbsp;&nbsp;&nbsp; 3</SPAN></FONT></B></STRONG><FONT face=Arial 
  size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_mcc2.mcc_mccf =&nbsp;TDM | (TDM &lt;&lt; 2) | (TDM &lt;&lt; 4) | 
  (TDM &lt;&lt; 6); /* Enable TDM2 to use channels 128 to 225 
  */<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; /* Clear all 
  the interrupts and enable the required interrupts */<BR>&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_mcc2.mcc_mcce = (MCC_EM_GOV&nbsp; | MCC_EM_GUN | MCC_EM_TINT | 
  MCC_EM_TQOV 
  |<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  MCC_EM_RINT3 | MCC_EM_QOV3 | MCC_EM_RINT2 | 
  MCC_EM_QOV2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  |MCC_EM_RINT1 | MCC_EM_QOV1 | MCC_EM_RINT0 | 
  MCC_EM_QOV0);<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_mcc2.mcc_mccm = (MCC_EM_GOV&nbsp; | MCC_EM_GUN | MCC_EM_TINT | 
  MCC_EM_TQOV 
  |<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  MCC_EM_RINT3 | MCC_EM_QOV3 | MCC_EM_RINT2 | 
  MCC_EM_QOV2<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  |MCC_EM_RINT1 | MCC_EM_QOV1 | MCC_EM_RINT0 | 
  MCC_EM_QOV0);<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; Note : Apart 
  from this i am doing global channel parameters, channel specific parameters 
  and xtra channel parameters.<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><STRONG><B><FONT face=Arial 
  size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;/* 
  Initialising the TX and Rx parameters&nbsp;*/</SPAN></FONT></B></STRONG><FONT 
  face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp; &nbsp; while 
  ((immap-&gt;im_cpm.cp_cpcr &amp; CPCR_FLG) != 
  READY_TO_RX_CMD);<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_cpm.cp_cpcr = CPCR_INIT_TX_RX_ONECHANL | psbc | (128&lt;&lt;6)| 
  CPCR_FLG;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* ISSUE COMMAND 
  */<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; while 
  ((immap-&gt;im_cpm.cp_cpcr &amp; CPCR_FLG) != 
  READY_TO_RX_CMD);<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; while 
  ((immap-&gt;im_cpm.cp_cpcr &amp; CPCR_FLG) != 
  READY_TO_RX_CMD);<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; 
  immap-&gt;im_cpm.cp_cpcr = CPCR_INIT_TX_RX_ONECHANL | psbc | (129&lt;&lt;6)| 
  CPCR_FLG;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* ISSUE COMMAND 
  */<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; while 
  ((immap-&gt;im_cpm.cp_cpcr &amp; CPCR_FLG) != 
  READY_TO_RX_CMD);<o:p></o:p></SPAN></FONT></P></DIV></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;<STRONG><B><FONT 
  face=Arial><SPAN style="FONT-FAMILY: Arial">/*Enabling 
  TDMD2&nbsp;*/</SPAN></FONT></B></STRONG><o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;&nbsp;&nbsp; <SPAN 
  class=GramE>immap</SPAN>-&gt;im_siramctl2.si_gmr =&nbsp; 1 &lt;&lt; 
  3;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Courier New" 
  size=2><SPAN 
  style="FONT-SIZE: 11pt; FONT-FAMILY: 'Courier New'"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=2><SPAN style="FONT-SIZE: 11pt; mso-bidi-font-family: 'Courier New'">Any 
  hint would be greatly appreciated.</SPAN></FONT><FONT size=2><SPAN 
  style="FONT-SIZE: 11pt; mso-bidi-font-family: Arial"><BR 
  style="mso-special-character: line-break"><![if !supportLineBreakNewLine]><BR 
  style="mso-special-character: line-break"><![endif]><FONT color=navy><SPAN 
  style="COLOR: navy"><o:p></o:p></SPAN></FONT></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 11pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=2><SPAN style="FONT-SIZE: 11pt; mso-bidi-font-family: Arial">&nbsp;Best 
  Regards,<o:p></o:p></SPAN></FONT></P></DIV>
  <DIV>
  <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
  size=2><SPAN 
  style="FONT-SIZE: 11pt; mso-bidi-font-family: Arial"><BR>&nbsp;-Akash 
  Kaul<o:p></o:p></SPAN></FONT></P></DIV></DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Linuxppc-embedded 
  mailing 
  list<BR>Linuxppc-embedded@ozlabs.org<BR>https://ozlabs.org/mailman/listinfo/linuxppc-embedded</BLOCKQUOTE></BODY></HTML>