From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from web36606.mail.mud.yahoo.com (web36606.mail.mud.yahoo.com [209.191.85.23]) by ozlabs.org (Postfix) with SMTP id DC04F67C3B for ; Fri, 25 Aug 2006 18:56:45 +1000 (EST) Message-ID: <20060825085643.47078.qmail@web36606.mail.mud.yahoo.com> Date: Fri, 25 Aug 2006 01:56:43 -0700 (PDT) From: Parav Pandit Subject: pci_id_table and mid_idsel? To: linuxppc-embedded@ozlabs.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-362965229-1156496203=:42249" List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-362965229-1156496203=:42249 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi, Can someone please explain me pci_irq_table and how to select the value of min_idsel , max_idsel for my 85xx boards? I am facing issues in registering the interrupt handler. On what basis we have to select the min_idsel and max_idsel value?? 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. PCI_SLOT in common_swizzle returns 11 because device function number (devfn) has value of 88 ( I am wondering why 88 instead of from 0-7). (( 88>> 8) && 0x1f) = 11 Since max functions we can have 8. (0-7). Why OS assign the value of 88 inside? Configuration transaction uses only 3 bits of function number in the CONFIG_ADDRESS as per PCI local bus specification 2.2. Regards, Parav Pandit --------------------------------- All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. --0-362965229-1156496203=:42249 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit
Hi,
 
Can someone please explain me pci_irq_table and how to select the value of min_idsel , max_idsel for my 85xx boards?
 
I am facing issues in registering the interrupt handler.
 
On what basis we have to select the min_idsel and max_idsel value??
 
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.
 
PCI_SLOT in common_swizzle returns 11 because device function number (devfn) has value of 88  ( I am wondering why 88 instead of from 0-7).
(( 88>> 8) && 0x1f) = 11
 
Since max functions we can have 8. (0-7). Why OS assign the value of 88 inside?
Configuration transaction uses only 3 bits of function number in the CONFIG_ADDRESS as per PCI local bus specification 2.2.
 
Regards,
Parav Pandit
 


All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. --0-362965229-1156496203=:42249--