From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 3 04:56:40 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D0941065692; Fri, 3 Oct 2008 04:56:40 +0000 (UTC) (envelope-from bagavathykumar.m@hcl.in) Received: from gws03.hcl.in (chn-hclin-gws01.hcl.in [203.105.186.19]) by mx1.freebsd.org (Postfix) with ESMTP id 2DDAB8FC1D; Fri, 3 Oct 2008 04:56:39 +0000 (UTC) (envelope-from bagavathykumar.m@hcl.in) Received: from gws03.hcl.in (gws03 [10.249.64.134]) by localhost.hcl.in (Postfix) with ESMTP id F0D4137C150; Fri, 3 Oct 2008 10:16:16 +0530 (IST) Received: from chn-egw01-out.corp.hcl.in (unknown [10.249.64.37])by gws03.hcl.in (Postfix) with ESMTPid D4B5037C155; Fri, 3 Oct 2008 10:16:16 +0530 (IST) Received: from chn-hclt-evs05.HCLT.CORP.HCL.IN ([10.101.26.13]) by chn-egw01-out.corp.hcl.in with Microsoft SMTPSVC(6.0.3790.3959); Fri, 3 Oct 2008 10:16:16 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 3 Oct 2008 10:13:53 +0530 Message-ID: <68C9F31EF19DB6448F515EF294028FDEE99BCE@chn-hclt-evs05.HCLT.CORP.HCL.IN> In-Reply-To: <200810011127.14593.jhb@freebsd.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FW: i386/127710: My driver PCI probe is not called for my correspondingdevice ID and Vendor ID Thread-Index: Ackj+qVQitxzGYnJQyW0RbPtge3gEwBFyM0g References: <68C9F31EF19DB6448F515EF294028FDEE999AB@chn-hclt-evs05.HCLT.CORP.HCL.IN> <200810011127.14593.jhb@freebsd.org> From: "Bagavathy Kumar Mahendran " To: "John Baldwin" , X-OriginalArrivalTime: 03 Oct 2008 04:46:16.0544 (UTC) FILETIME=[F87E5E00:01C92512] X-imss-version: 2.051 X-imss-result: Passed X-imss-scanInfo: M:T L:E SM:1 X-imss-tmaseResult: TT:1 TS:-17.2261 TC:1F TRN:38 TV:5.5.1026(16194.003) X-imss-scores: Clean:100.00000 C:0 M:0 S:0 R:0 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Mailman-Approved-At: Fri, 03 Oct 2008 11:14:18 +0000 Cc: Warner Losh Subject: RE: FW: i386/127710: My driver PCI probe is not called for my correspondingdevice ID and Vendor ID X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Oct 2008 04:56:40 -0000 Dear Baldwin, Thanks for your support =2Ebut my pci probe function is not getting called for my device id and vendor id=2E Because pccbb driver already sets the device_set_desc as PCI-CardBus Bridge=2E So is there any other option for me to make my_pciprobe function to be called for my corresponding device id and vendor id=2E Thanks, Regards, Bagavathy kumar =2EM -----Original Message----- From: John Baldwin [mailto:jhb@freebsd=2Eorg]=20 Sent: Wednesday, October 01, 2008 8:57 PM To: freebsd-hackers@freebsd=2Eorg Cc: Bagavathy Kumar Mahendran ; Warner Losh Subject: Re: FW: i386/127710: My driver PCI probe is not called for my correspondingdevice ID and Vendor ID On Wednesday 01 October 2008 08:50:15 am Bagavathy Kumar Mahendran wrote: >=20 > Dear All, > Iam writing a new driver for a SAS/SATA Controller having a > Class ID -0x01 > Sub Class - 0x07 > Programming Interface - 0x00 >=20 > Hence instead of my probe function the Static build Card Bus Driver cbb > is attaching just by simply checking sub class 0x07 and programming > interface 0x00=2Ehence my probe gets failed=2E Kindly help me in= resolving > this =2Ewhat I thought is to add the card bus driver a checking of CLASS > ID in its pci probe function=2E The pccbb driver returns BUS_PROBE_DEFAULT (it should probably return GENERIC=20 in the case where it matches only on class codes)=2E Your driver just needs to=20 return a numerically higher value (but still < 0) to claim the device=2E You=20 can probably use BUS_PROBE_VENDOR or BUS_PROBE_DEFAULT + 1=2E --=20 John Baldwin DISCLAIMER: ---------------------------------------------------------------------------= -------------------------------------------- The contents of this e-mail and any attachment(s) are confidential and= intended for the named recipient(s) only=2E It shall not attach any liability on the originator or HCL or its= affiliates=2E Any views or opinions presented in=20 this email are solely those of the author and may not necessarily reflect= the opinions of HCL or its affiliates=2E Any form of reproduction, dissemination, copying, disclosure, modification,= distribution and / or publication of=20 this message without the prior written consent of the author of this e-mail= is strictly prohibited=2E If you have received this email in error please delete it and notify the sender= immediately=2E Before opening any mail and=20 attachments please check them for viruses and defect=2E ---------------------------------------------------------------------------= --------------------------------------------