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-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) by ozlabs.org (Postfix) with ESMTP id 4393A67C3E for ; Fri, 25 Aug 2006 18:59:17 +1000 (EST) Received: from az33smr02.freescale.net (az33smr02.freescale.net [10.64.34.200]) by az33egw02.freescale.net (8.12.11/az33egw02) with ESMTP id k7P8xFaF007929 for ; Fri, 25 Aug 2006 01:59:15 -0700 (MST) Received: from zch01exm21.fsl.freescale.net (zch01exm21.ap.freescale.net [10.192.129.205]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id k7P8xDYl001679 for ; Fri, 25 Aug 2006 03:59:14 -0500 (CDT) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C6C824.BC468A25" Subject: RE: pci_id_table and mid_idsel? Date: Fri, 25 Aug 2006 16:59:11 +0800 Message-ID: <995B09A8299C2C44B59866F6391D263511B831@zch01exm21.fsl.freescale.net> In-Reply-To: <20060825085643.47078.qmail@web36606.mail.mud.yahoo.com> From: "Liu Dave-r63238" To: "Parav Pandit" , List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------_=_NextPart_001_01C6C824.BC468A25 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Parav, =20 Please self study the existing source code. It can help you. =20 -DAve ________________________________ From: linuxppc-embedded-bounces+daveliu=3Dfreescale.com@ozlabs.org [mailto:linuxppc-embedded-bounces+daveliu=3Dfreescale.com@ozlabs.org] On Behalf Of Parav Pandit Sent: Friday, August 25, 2006 4:57 PM To: linuxppc-embedded@ozlabs.org Subject: pci_id_table and mid_idsel? =09 =09 Hi, =20 Can someone please explain me pci_irq_table and how to select the value of min_idsel , max_idsel for my 85xx boards? =20 I am facing issues in registering the interrupt handler. =20 On what basis we have to select the min_idsel and max_idsel value?? =20 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. =20 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) =3D 11 =20 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. =20 Regards, Parav Pandit =20 =09 ________________________________ All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. ------_=_NextPart_001_01C6C824.BC468A25 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Parav,
 
Please self study the existing source code. It = can help=20 you.
 
-DAve


From:=20 linuxppc-embedded-bounces+daveliu=3Dfreescale.com@ozlabs.org=20 [mailto:linuxppc-embedded-bounces+daveliu=3Dfreescale.com@ozlabs.org] = On=20 Behalf Of Parav Pandit
Sent: Friday, August 25, 2006 = 4:57=20 PM
To: linuxppc-embedded@ozlabs.org
Subject: = pci_id_table=20 and mid_idsel?

Hi,
 
Can someone please explain me pci_irq_table and how to select the = value=20 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=20 the value of 11 in the min_idsel and max_idsel because I have only one = slot, I=20 am able to register the interrupt handler.
 
PCI_SLOT in common_swizzle returns 11 because device function = number=20 (devfn) has value of 88  ( I am wondering why 88 instead of from=20 0-7).
(( 88>> 8) && 0x1f) =3D 11
 
Since max functions we can have 8. (0-7). Why OS assign the value = of 88=20 inside?
Configuration transaction uses only 3 bits of function number in = the=20 CONFIG_ADDRESS as per PCI local bus specification 2.2.
 
Regards,
Parav Pandit
 


All-new=20 Yahoo! Mail - Fire up a more powerful email and get things done=20 faster. ------_=_NextPart_001_01C6C824.BC468A25--