From owner-freebsd-drivers@FreeBSD.ORG Tue Jul 2 08:53:51 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7F1392B9 for ; Tue, 2 Jul 2013 08:53:51 +0000 (UTC) (envelope-from insanegod.god@gmail.com) Received: from mail-we0-x22c.google.com (mail-we0-x22c.google.com [IPv6:2a00:1450:400c:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 1D2CA1DFA for ; Tue, 2 Jul 2013 08:53:50 +0000 (UTC) Received: by mail-we0-f172.google.com with SMTP id q56so4159447wes.3 for ; Tue, 02 Jul 2013 01:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Kt4MN+ARyhBapYcTkttCyJRBcZ7fUblwi5SZJKIgI94=; b=voBBY656MTpp+pkW0d0XPhhRZVvm26DY8f14f5mTpZwrikizPVDv/r4NSVy0+bSHjz +v17U/L9Y72JO+hNl2ZiQH6/sUNXuIxbcBX8nEeBoArNdh7w2cVYEkOd9kCXetYCKo8F CS/x01aPO17ZlLGvM09f6f2H0McNbcTI6SdO7D9H05tDathEUvcw8uVlCD9gzojeRgUl qeaUAWvy1OlHfVX4v7SKvG6XLbvflrlHV852RdSnq4a54Ppo2HU5FsuFztoToaQQmvjS IPyr9n6FAbYFjbWKahR9QMMx4JXnnCb5GSwoJ20gdccz9RJESQ5HuAq0TPZ2NDLeNyU1 4iKA== MIME-Version: 1.0 X-Received: by 10.194.58.239 with SMTP id u15mr22622543wjq.87.1372755230323; Tue, 02 Jul 2013 01:53:50 -0700 (PDT) Received: by 10.194.93.233 with HTTP; Tue, 2 Jul 2013 01:53:50 -0700 (PDT) Date: Tue, 2 Jul 2013 01:53:50 -0700 Message-ID: Subject: Newbie question - Custom compiler flags in Makefile From: Arjun To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 08:53:51 -0000 Hey, I am writing a memory driver and i am using the standard freebsd driver Makefile which includes .bsd.kmod.mk So, this comes with its own compiler flags. Specifically, i dont want the -Wmissing-prototypes option. How do i remove it. In general, how can one change the default compiler flags for compilation. ? I read bsd.sys.mk file and it seems that for the above option to be removed, i need to have WARNS <3. But i want all other -W options except for this. How do i do this.? Any help is appreciated. Thanks From owner-freebsd-drivers@FreeBSD.ORG Sat Jul 6 10:38:24 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4F37E36A for ; Sat, 6 Jul 2013 10:38:24 +0000 (UTC) (envelope-from cg@cgross.info) Received: from alpha.kreiz-it.fr (alpha.kreiz-it.fr [178.32.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id 1C68F1148 for ; Sat, 6 Jul 2013 10:38:23 +0000 (UTC) Received: from DirTech (lnr56-1-82-246-51-185.fbx.proxad.net [82.246.51.185]) by alpha.kreiz-it.fr (Postfix) with ESMTPSA id 2E0AA95B for ; Sat, 6 Jul 2013 12:38:17 +0200 (CEST) From: "Cedric GROSS" To: Subject: PCI Subdevice ID Date: Sat, 6 Jul 2013 12:38:12 +0200 Message-ID: <000c01ce7a34$ebd49a30$c37dce90$@info> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac56NOoA/aWemhZbQnyqHU3UtUu+iA== Content-Language: fr Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 10:38:24 -0000 Hello everybody, I'm currently working adapt iwn driver for my Centrino Wireless-N 2230 Card. As part of this tuff work, I asking me how to get subdevice id ? I didn't find anything about that. Thanks for your help. Best regards Cedric From owner-freebsd-drivers@FreeBSD.ORG Sat Jul 6 10:52:35 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7528C49B for ; Sat, 6 Jul 2013 10:52:35 +0000 (UTC) (envelope-from rj@cyclaero.com) Received: from mo6-p00-ob.rzone.de (mo6-p00-ob.rzone.de [IPv6:2a01:238:20a:202:5300::1]) by mx1.freebsd.org (Postfix) with ESMTP id 15E5D11B4 for ; Sat, 6 Jul 2013 10:52:34 +0000 (UTC) X-RZG-AUTH: :PmYkdlmrd/5oFO+v3d3wrWNKA6HwNiCiTtCELX2wAf/wvCIJyDe4TyzpJbJ8 X-RZG-CLASS-ID: mo00 Received: from rolf.projectworld.net (b150f5ed.virtua.com.br [177.80.245.237]) by smtp.strato.de (josoe mo29) (RZmta 31.29 DYNA|AUTH) with (AES128-SHA encrypted) ESMTPA id u038acp668tlNt ; Sat, 6 Jul 2013 12:52:28 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: PCI Subdevice ID From: "Dr. Rolf Jansen" In-Reply-To: <000c01ce7a34$ebd49a30$c37dce90$@info> Date: Sat, 6 Jul 2013 07:52:25 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <8982B63C-525E-4B3E-9DA1-F2535AFE4A22@cyclaero.com> References: <000c01ce7a34$ebd49a30$c37dce90$@info> To: Cedric GROSS X-Mailer: Apple Mail (2.1508) Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 10:52:35 -0000 Am 06.07.2013 um 07:38 schrieb Cedric GROSS : > Hello everybody, >=20 > I'm currently working adapt iwn driver for my Centrino Wireless-N 2230 = Card. >=20 > As part of this tuff work, I asking me how to get subdevice id ? I = didn't > find anything about that. Hello, See here: http://pci-ids.ucw.cz You could also install this pciid list by the way of the ports system: # /usr/ports/misc/pciids # make install clean Then you would grep your device from that list: $ grep "Wireless-N 2230" /usr/local/share/pciids/pci.ids Best regards Rolf From owner-freebsd-drivers@FreeBSD.ORG Sat Jul 6 11:03:23 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6F1E466B for ; Sat, 6 Jul 2013 11:03:23 +0000 (UTC) (envelope-from cg@cgross.info) Received: from alpha.kreiz-it.fr (alpha.kreiz-it.fr [178.32.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id 3C3E31211 for ; Sat, 6 Jul 2013 11:03:22 +0000 (UTC) Received: from DirTech (lnr56-1-82-246-51-185.fbx.proxad.net [82.246.51.185]) by alpha.kreiz-it.fr (Postfix) with ESMTPSA id 126F3972; Sat, 6 Jul 2013 13:03:21 +0200 (CEST) From: "Cedric GROSS" To: "'Dr. Rolf Jansen'" References: <000c01ce7a34$ebd49a30$c37dce90$@info> <8982B63C-525E-4B3E-9DA1-F2535AFE4A22@cyclaero.com> In-Reply-To: <8982B63C-525E-4B3E-9DA1-F2535AFE4A22@cyclaero.com> Subject: RE: PCI Subdevice ID Date: Sat, 6 Jul 2013 13:03:17 +0200 Message-ID: <001a01ce7a38$6ce642b0$46b2c810$@info> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac56Nx0UECKFYrB1R/OvQA/7CxcxsgAALTWA Content-Language: fr Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 11:03:23 -0000 > -----Message d'origine----- > De=A0: Dr. Rolf Jansen [mailto:rj@cyclaero.com] > Envoy=E9=A0: samedi 6 juillet 2013 12:52 > =C0=A0: Cedric GROSS > Cc=A0: freebsd-drivers@freebsd.org > Objet=A0: Re: PCI Subdevice ID >=20 > Am 06.07.2013 um 07:38 schrieb Cedric GROSS : >=20 > > Hello everybody, > > > > I'm currently working adapt iwn driver for my Centrino Wireless-N > 2230 Card. > > > > As part of this tuff work, I asking me how to get subdevice id ? I > > didn't find anything about that. >=20 > Hello, >=20 > See here: http://pci-ids.ucw.cz >=20 > You could also install this pciid list by the way of the ports system: >=20 > # /usr/ports/misc/pciids > # make install clean >=20 > Then you would grep your device from that list: >=20 > $ grep "Wireless-N 2230" /usr/local/share/pciids/pci.ids >=20 Thanks Rolf. But in fact my demand concern development. My fault. Please apologize I wasn't enough clear. I'm looking for a = kernel function like 'pci_get_device' but for subdevice > Best regards >=20 > Rolf BR Cedric From owner-freebsd-drivers@FreeBSD.ORG Sat Jul 6 13:19:50 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 5E1D1378 for ; Sat, 6 Jul 2013 13:19:50 +0000 (UTC) (envelope-from rj@cyclaero.com) Received: from mo6-p00-ob.rzone.de (mo6-p00-ob.rzone.de [IPv6:2a01:238:20a:202:5300::1]) by mx1.freebsd.org (Postfix) with ESMTP id E6EB617D7 for ; Sat, 6 Jul 2013 13:19:49 +0000 (UTC) X-RZG-AUTH: :PmYkdlmrd/5oFO+v3d3wrWNKA6HwNiCiTtCELX2wAf/wvCIJyDe4TyzpJbJ8 X-RZG-CLASS-ID: mo00 Received: from rolf.projectworld.net (b150f5ed.virtua.com.br [177.80.245.237]) by smtp.strato.de (jored mo37) (RZmta 31.29 DYNA|AUTH) with (AES128-SHA encrypted) ESMTPA id 400358p66BRo1B ; Sat, 6 Jul 2013 15:19:43 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: PCI Subdevice ID From: "Dr. Rolf Jansen" In-Reply-To: <001a01ce7a38$6ce642b0$46b2c810$@info> Date: Sat, 6 Jul 2013 10:19:40 -0300 Content-Transfer-Encoding: quoted-printable Message-Id: <67773F40-53B0-4572-8357-ADE11941C09B@cyclaero.com> References: <000c01ce7a34$ebd49a30$c37dce90$@info> <8982B63C-525E-4B3E-9DA1-F2535AFE4A22@cyclaero.com> <001a01ce7a38$6ce642b0$46b2c810$@info> To: "Cedric GROSS" X-Mailer: Apple Mail (2.1508) Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 13:19:50 -0000 Am 06.07.2013 um 08:03 schrieb "Cedric GROSS" : > ... I'm looking for a kernel function like 'pci_get_device' but for = subdevice The pci_get_*** macros are defined in /usr/src/sys/dev/pci/pcivar.h = below line 220. The expanded macro for getting the sub-device number is: static __inline uint16_t pci_get_subdevice(device_t dev) { uintptr_t v; BUS_READ_IVAR(device_get_parent(dev), dev, PCI_IVAR_SUBDEVICE, = &v); return ((uint16_t) v); } Best regards Rolf= From owner-freebsd-drivers@FreeBSD.ORG Sat Jul 6 15:46:10 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id E834E6FF for ; Sat, 6 Jul 2013 15:46:10 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by mx1.freebsd.org (Postfix) with ESMTP id B9EE21B1D for ; Sat, 6 Jul 2013 15:46:10 +0000 (UTC) Received: by mail-ie0-f171.google.com with SMTP id qd12so7299984ieb.16 for ; Sat, 06 Jul 2013 08:46:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=/Qiu8Lx6E9rh2mBysLaRcC/V+SFCTlLT+DDTlE4HwTM=; b=b2uvVA8Dnz5LNHdseFF/jOB69erj9WOp7/oxuYnv5dUHS5EdfCIJxctOuivBWTR107 8PF3pwPXTcZNCL4DfovUxBrxWaNt0lz+XBO8/rwZde2q77fmlvO6IzJg6JKO0sZZ5Pxj /zC8cav2ITXStqFnV6dkudF8TxScq1SIgP/a4lDdY2zyRpIcHSPEWHLCu1OfuDXFXAJA /iwnpmA2uqSd0m8/xLkpfQiDIrvwabUfzp5W6ZAzQaUK4TuRsAUckSwPBGAkrHhbMMUY HutwiYuuqeDETo4LWBIRc2vw8a20ea+apTRQeD2K335ErhY4uWiCqyWGbjnLbzeY+t8R 55mQ== X-Received: by 10.42.93.2 with SMTP id v2mr5262280icm.25.1373125564629; Sat, 06 Jul 2013 08:46:04 -0700 (PDT) Received: from 53.imp.bsdimp.com (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPSA id n5sm6396230igv.5.2013.07.06.08.46.03 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 06 Jul 2013 08:46:03 -0700 (PDT) Sender: Warner Losh Subject: Re: PCI Subdevice ID Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: text/plain; charset=iso-8859-1 From: Warner Losh In-Reply-To: <001a01ce7a38$6ce642b0$46b2c810$@info> Date: Sat, 6 Jul 2013 09:46:02 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <000c01ce7a34$ebd49a30$c37dce90$@info> <8982B63C-525E-4B3E-9DA1-F2535AFE4A22@cyclaero.com> <001a01ce7a38$6ce642b0$46b2c810$@info> To: "Cedric GROSS" X-Mailer: Apple Mail (2.1085) X-Gm-Message-State: ALoCoQkKBwOSD2UvAHpGq54UO3q/6afOf/ICeKgXB5iVSusRC7t78dme+N08zjo6V4J2gsxEtTx+ Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 15:46:11 -0000 On Jul 6, 2013, at 5:03 AM, Cedric GROSS wrote: >> -----Message d'origine----- >> De : Dr. Rolf Jansen [mailto:rj@cyclaero.com] >> Envoy=E9 : samedi 6 juillet 2013 12:52 >> =C0 : Cedric GROSS >> Cc : freebsd-drivers@freebsd.org >> Objet : Re: PCI Subdevice ID >>=20 >> Am 06.07.2013 um 07:38 schrieb Cedric GROSS : >>=20 >>> Hello everybody, >>>=20 >>> I'm currently working adapt iwn driver for my Centrino Wireless-N >> 2230 Card. >>>=20 >>> As part of this tuff work, I asking me how to get subdevice id ? I >>> didn't find anything about that. >>=20 >> Hello, >>=20 >> See here: http://pci-ids.ucw.cz >>=20 >> You could also install this pciid list by the way of the ports = system: >>=20 >> # /usr/ports/misc/pciids >> # make install clean >>=20 >> Then you would grep your device from that list: >>=20 >> $ grep "Wireless-N 2230" /usr/local/share/pciids/pci.ids >>=20 > Thanks Rolf. > But in fact my demand concern development. > My fault. Please apologize I wasn't enough clear. I'm looking for a = kernel > function like 'pci_get_device' but for subdevice pci_get_subdevice and pci_get_subvendor. All the following are available: PCI_ACCESSOR(subvendor, SUBVENDOR, uint16_t) PCI_ACCESSOR(subdevice, SUBDEVICE, uint16_t) PCI_ACCESSOR(vendor, VENDOR, uint16_t) PCI_ACCESSOR(device, DEVICE, uint16_t) PCI_ACCESSOR(devid, DEVID, uint32_t) PCI_ACCESSOR(class, CLASS, uint8_t) PCI_ACCESSOR(subclass, SUBCLASS, uint8_t) PCI_ACCESSOR(progif, PROGIF, uint8_t) PCI_ACCESSOR(revid, REVID, uint8_t) PCI_ACCESSOR(intpin, INTPIN, uint8_t) PCI_ACCESSOR(irq, IRQ, uint8_t) PCI_ACCESSOR(domain, DOMAIN, uint32_t) PCI_ACCESSOR(bus, BUS, uint8_t) PCI_ACCESSOR(slot, SLOT, uint8_t) PCI_ACCESSOR(function, FUNCTION, uint8_t) PCI_ACCESSOR(ether, ETHADDR, uint8_t *) PCI_ACCESSOR(cmdreg, CMDREG, uint8_t) PCI_ACCESSOR(cachelnsz, CACHELNSZ, uint8_t) PCI_ACCESSOR(mingnt, MINGNT, uint8_t) PCI_ACCESSOR(maxlat, MAXLAT, uint8_t) PCI_ACCESSOR(lattimer, LATTIMER, uint8_t) =20 Although ETHADDR is available only to cardbus cards. Warner= From owner-freebsd-drivers@FreeBSD.ORG Sat Jul 6 16:10:32 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 42D88A2C for ; Sat, 6 Jul 2013 16:10:32 +0000 (UTC) (envelope-from cg@cgross.info) Received: from alpha.kreiz-it.fr (alpha.kreiz-it.fr [178.32.219.166]) by mx1.freebsd.org (Postfix) with ESMTP id 0EDE51BE4 for ; Sat, 6 Jul 2013 16:10:31 +0000 (UTC) Received: from DirTech (lnr56-1-82-246-51-185.fbx.proxad.net [82.246.51.185]) by alpha.kreiz-it.fr (Postfix) with ESMTPSA id D0A089B4; Sat, 6 Jul 2013 18:10:30 +0200 (CEST) From: "Cedric GROSS" To: "'Warner Losh'" , "'Dr. Rolf Jansen'" References: <000c01ce7a34$ebd49a30$c37dce90$@info> <8982B63C-525E-4B3E-9DA1-F2535AFE4A22@cyclaero.com> <001a01ce7a38$6ce642b0$46b2c810$@info> In-Reply-To: Subject: RE: PCI Subdevice ID Date: Sat, 6 Jul 2013 18:10:26 +0200 Message-ID: <002301ce7a63$55b94800$012bd800$@info> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac56X/iApu0mI35gRMOL75J4X8OWZwAAwO3Q Content-Language: fr Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 16:10:32 -0000 > De=A0: Warner Losh [mailto:wlosh@bsdimp.com] De la part de Warner Losh > Envoy=E9=A0: samedi 6 juillet 2013 17:46 > On Jul 6, 2013, at 5:03 AM, Cedric GROSS wrote: >=20 > >> -----Message d'origine----- > >> De : Dr. Rolf Jansen [mailto:rj@cyclaero.com] Envoy=E9 : samedi 6 > >> juillet 2013 12:52 =C0 : Cedric GROSS Cc : = freebsd-drivers@freebsd.org > >> Objet : Re: PCI Subdevice ID > >> > >> Am 06.07.2013 um 07:38 schrieb Cedric GROSS : > >> > >>> Hello everybody, > >>> > >>> I'm currently working adapt iwn driver for my Centrino Wireless-N > >> 2230 Card. > >>> > >>> As part of this tuff work, I asking me how to get subdevice id ? I > >>> didn't find anything about that. > >> > >> Hello, > >> > >> See here: http://pci-ids.ucw.cz > >> > >> You could also install this pciid list by the way of the ports > system: > >> > >> # /usr/ports/misc/pciids > >> # make install clean > >> > >> Then you would grep your device from that list: > >> > >> $ grep "Wireless-N 2230" /usr/local/share/pciids/pci.ids > >> > > Thanks Rolf. > > But in fact my demand concern development. > > My fault. Please apologize I wasn't enough clear. I'm looking for a > > kernel function like 'pci_get_device' but for subdevice >=20 > pci_get_subdevice and pci_get_subvendor. >=20 > All the following are available: > PCI_ACCESSOR(subvendor, SUBVENDOR, uint16_t) > PCI_ACCESSOR(subdevice, SUBDEVICE, uint16_t) > PCI_ACCESSOR(vendor, VENDOR, uint16_t) > PCI_ACCESSOR(device, DEVICE, uint16_t) > PCI_ACCESSOR(devid, DEVID, uint32_t) > PCI_ACCESSOR(class, CLASS, uint8_t) > PCI_ACCESSOR(subclass, SUBCLASS, uint8_t) > PCI_ACCESSOR(progif, PROGIF, uint8_t) > PCI_ACCESSOR(revid, REVID, uint8_t) > PCI_ACCESSOR(intpin, INTPIN, uint8_t) > PCI_ACCESSOR(irq, IRQ, uint8_t) > PCI_ACCESSOR(domain, DOMAIN, uint32_t) > PCI_ACCESSOR(bus, BUS, uint8_t) > PCI_ACCESSOR(slot, SLOT, uint8_t) > PCI_ACCESSOR(function, FUNCTION, uint8_t) > PCI_ACCESSOR(ether, ETHADDR, uint8_t *) > PCI_ACCESSOR(cmdreg, CMDREG, uint8_t) > PCI_ACCESSOR(cachelnsz, CACHELNSZ, uint8_t) > PCI_ACCESSOR(mingnt, MINGNT, uint8_t) > PCI_ACCESSOR(maxlat, MAXLAT, uint8_t) > PCI_ACCESSOR(lattimer, LATTIMER, uint8_t) >=20 > Although ETHADDR is available only to cardbus cards. >=20 > Warner Many thanks for answer Rolf and Warner. It's so logical. Cheers Cedric