From owner-freebsd-hackers@freebsd.org Mon Aug 24 08:23:35 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 41D3F9BF7B0 for ; Mon, 24 Aug 2015 08:23:35 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from nm6.bullet.mail.ne1.yahoo.com (nm6.bullet.mail.ne1.yahoo.com [98.138.90.69]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 08C371D18 for ; Mon, 24 Aug 2015 08:23:34 +0000 (UTC) (envelope-from noname.esst@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1440404223; bh=Fwn7qNF52nva9cOF438s+lgcLJ2q+/KWmjcGXNPxKmg=; h=Date:From:Reply-To:To:Subject:From:Subject; b=facpHqGgpQehUr9KBaQxWvSJPsgoc7fia+0SOWzTp+KxOPwx5C215n7xkZO16taSSDsm+jCoTcyaicgPBSOiU6OZzBWmYy21058NgyZ+MSBjAEHb5R7KRROd3icAKsD3KIETRl0p7F8QFFHsMeYK0GA74/tvbfo4m+IjrHOChQ3T1PdkK3kCVZV03VuT1PjchJJSIq1+MiBmVQ+E13FNxsusEpuUZgpPNa0SdNWV1O4wXTVsrmDTzdpnfu8NJuZJx7LzbD/FvdXCoTHDmbL3homkGRfO7H3ZZ84o2jFWDz5+TuxyIvEoxchrYh6iAkn37102JL1tVe4lnhXJ7HzlQQ== Received: from [98.138.100.103] by nm6.bullet.mail.ne1.yahoo.com with NNFMP; 24 Aug 2015 08:17:03 -0000 Received: from [98.138.89.169] by tm102.bullet.mail.ne1.yahoo.com with NNFMP; 24 Aug 2015 08:17:03 -0000 Received: from [127.0.0.1] by omp1025.mail.ne1.yahoo.com with NNFMP; 24 Aug 2015 08:17:03 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 157056.3041.bm@omp1025.mail.ne1.yahoo.com X-YMail-OSG: 0DFkF94VM1mcNMV.ZRtmpkjuVikTAGf7dMseeQ1zcvvtn4ILzGJ8D9z8_FqfAnh DzDmEN3x0xM8n1THPBGVqnLNQpPLRsmfpbsFqglRuxWbrxDse8IJv3iELtly62oiSv7MxdcnG6Wu I6vkPf29rSPB7cKMwPaMfx2wJKmTOeZJlViGjZY_jFyS8AZxJK.iBLqiCrGtQnk7LfdrRqeFoNdO AkFo37_SN_qzb41P5UbieSyu2fZWgglXPGjcIv1X3iBQ53edZWioWgIk3PkqAXw4Sou67No9STb8 Sx2rH99_pQ8lqqTpO8Se6OPZMGN7go3Lj5rvorSbD_Blt7At3vDEnJzAwqKzBuCj7ineoPDcDafx Q2S17.850YRnxoqkIwmPVPcIua5Z6JMrvWbA9mGX_2S8Gq_QkLziZatTVvrDSIC3OOOTcjgJozS2 5ld7aFfufPzs2T4XL7d4cMty.f97Y6vEIGGM77QzCZAHh2iY8bqMPmEsmGLWnoCbWK670j.w729s PspeVGRYmKRSM9w-- Received: by 98.138.101.164; Mon, 24 Aug 2015 08:17:02 +0000 Date: Mon, 24 Aug 2015 08:17:02 +0000 (UTC) From: Nomad Esst Reply-To: Nomad Esst To: "freebsd-drivers@freebsd.org" , Freebsd Hackers List Message-ID: <1473579278.716147.1440404222458.JavaMail.yahoo@mail.yahoo.com> Subject: Get pci slot number in driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2015 08:23:35 -0000 Is it possible to find out the pci slot number on which the card is mounted in driver? I tried pci_get_slot but it's always 0.Any ideas about doing this? regards From owner-freebsd-hackers@freebsd.org Mon Aug 24 15:19:01 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAE7E9C0528; Mon, 24 Aug 2015 15:19:01 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: from mail-ob0-x22e.google.com (mail-ob0-x22e.google.com [IPv6:2607:f8b0:4003:c01::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 92B65E8D; Mon, 24 Aug 2015 15:19:01 +0000 (UTC) (envelope-from jim.harris@gmail.com) Received: by obbhe7 with SMTP id he7so116106716obb.0; Mon, 24 Aug 2015 08:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LMBtQDc0jiAykPZLO6qyhd9WfY4trce0mp1qZvLrDpQ=; b=Wbp0drf7Cvh0NuBqu+Mv9dUP6GzUUNRFOC6LGPNXU0tYYEkOTCwUMI7xox7E+hi3kH 9/puZnBBz7AtLE6R7UsvPowxrzI7gfSjNVoF5chGHHevz5IHOqrBVysDiEm7EcfFWGo3 5ri/zoyfG8rhMa8p6T+tGRsOPPzTQex7t/NHIImxYxiH1/NbhOYyaWkshuvAWgGrgEwu LfCwsXVtHOjq/6eDwKUiEZCDsfS5ttmq7jB1JoOOBZW45rlReQt3W/TTIWZGTrhkpa+f iB1nPahZV/i6g8iw4IQuNTlFYo6BhYhpLTybhPBPCP0Pv4lZH2/GivaZKGCCJJp0fGnH vZOw== MIME-Version: 1.0 X-Received: by 10.182.33.38 with SMTP id o6mr21072474obi.41.1440429540928; Mon, 24 Aug 2015 08:19:00 -0700 (PDT) Received: by 10.202.212.76 with HTTP; Mon, 24 Aug 2015 08:19:00 -0700 (PDT) In-Reply-To: <1473579278.716147.1440404222458.JavaMail.yahoo@mail.yahoo.com> References: <1473579278.716147.1440404222458.JavaMail.yahoo@mail.yahoo.com> Date: Mon, 24 Aug 2015 08:19:00 -0700 Message-ID: Subject: Re: Get pci slot number in driver From: Jim Harris To: Nomad Esst Cc: "freebsd-drivers@freebsd.org" , Freebsd Hackers List Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Aug 2015 15:19:02 -0000 On Mon, Aug 24, 2015 at 1:17 AM, Nomad Esst via freebsd-drivers < freebsd-drivers@freebsd.org> wrote: > Is it possible to find out the pci slot number on which the card is > mounted in driver? I tried pci_get_slot but it's always 0.Any ideas about > doing this? > regards > What do the PCI bus, slot, and function numbers for this device show up as in "pciconf -l" output? For PCI Express endpoints, the PCI slot number (also sometimes referred to as PCI device number) is typically 0. These endpoints are more typically differentiated by their PCI bus number, not slot number. -Jim _______________________________________________ > freebsd-drivers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-drivers > To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" >