<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=529215808-25082006><FONT face=&#23435;&#20307; 
color=#0000ff size=2>Parav,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=529215808-25082006><FONT face=&#23435;&#20307; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=529215808-25082006><FONT face=&#23435;&#20307; 
color=#0000ff size=2>Please self study the existing source code. It can help 
you.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=529215808-25082006><FONT face=&#23435;&#20307; 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=529215808-25082006><FONT face=&#23435;&#20307; 
color=#0000ff size=2>-DAve</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> 
  linuxppc-embedded-bounces+daveliu=freescale.com@ozlabs.org 
  [mailto:linuxppc-embedded-bounces+daveliu=freescale.com@ozlabs.org] <B>On 
  Behalf Of </B>Parav Pandit<BR><B>Sent:</B> Friday, August 25, 2006 4:57 
  PM<BR><B>To:</B> linuxppc-embedded@ozlabs.org<BR><B>Subject:</B> pci_id_table 
  and mid_idsel?<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV>Hi,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Can someone please explain me pci_irq_table and how to select the value 
  of min_idsel , max_idsel for my 85xx boards?</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I am facing issues in registering the interrupt handler.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>On what basis we have to select the min_idsel and max_idsel value??</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Currently common_swizzle function retuns slot number 11, if I hard-code 
  the value of 11 in the min_idsel and max_idsel because I have only one slot, I 
  am able to register the interrupt handler.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>PCI_SLOT in common_swizzle returns 11 because device function number 
  (devfn) has value of 88&nbsp; ( I am wondering why 88 instead of from 
  0-7).</DIV>
  <DIV>(( 88&gt;&gt; 8) &amp;&amp; 0x1f) = 11</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Since max functions we can have 8. (0-7). Why OS assign the value of 88 
  inside?</DIV>
  <DIV>Configuration transaction uses only 3 bits of function number in the 
  CONFIG_ADDRESS as per PCI local bus specification 2.2.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Regards,</DIV>
  <DIV>Parav Pandit</DIV>
  <DIV>&nbsp;</DIV>
  <P>
  <HR SIZE=1>
  <A 
  href="http://us.rd.yahoo.com/evt=43256/*http://advision.webevents.yahoo.com/mailbeta">All-new 
  Yahoo! Mail </A>- Fire up a more powerful email and get things done 
faster.</BLOCKQUOTE></BODY></HTML>