From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 1 19:19:24 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 2E2EF10656D1; Wed, 1 Oct 2008 19:19:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id C18688FC15; Wed, 1 Oct 2008 19:19:23 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m91JJ424071550; Wed, 1 Oct 2008 15:19:16 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Wed, 1 Oct 2008 11:27:14 -0400 User-Agent: KMail/1.9.7 References: <68C9F31EF19DB6448F515EF294028FDEE999AB@chn-hclt-evs05.HCLT.CORP.HCL.IN> In-Reply-To: <68C9F31EF19DB6448F515EF294028FDEE999AB@chn-hclt-evs05.HCLT.CORP.HCL.IN> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810011127.14593.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Wed, 01 Oct 2008 15:19:17 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8367/Wed Oct 1 12:39:43 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_03_06,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Warner Losh , Bagavathy Kumar Mahendran 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: Wed, 01 Oct 2008 19:19:24 -0000 On Wednesday 01 October 2008 08:50:15 am Bagavathy Kumar Mahendran wrote: > > Dear All, > Iam writing a new driver for a SAS/SATA Controller having a > Class ID -0x01 > Sub Class - 0x07 > Programming Interface - 0x00 > > 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.hence my probe gets failed. Kindly help me in resolving > this .what I thought is to add the card bus driver a checking of CLASS > ID in its pci probe function. The pccbb driver returns BUS_PROBE_DEFAULT (it should probably return GENERIC in the case where it matches only on class codes). Your driver just needs to return a numerically higher value (but still < 0) to claim the device. You can probably use BUS_PROBE_VENDOR or BUS_PROBE_DEFAULT + 1. -- John Baldwin