From owner-freebsd-drivers@FreeBSD.ORG Sun Nov 3 21:11:37 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1E19D472 for ; Sun, 3 Nov 2013 21:11:37 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id D04E722DC for ; Sun, 3 Nov 2013 21:11:36 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 6D69A7A3C0; Sun, 3 Nov 2013 22:11:34 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 1A6E58EDD22; Sun, 3 Nov 2013 22:12:04 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mTpqPgRzJ6a6; Sun, 3 Nov 2013 22:12:03 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id F03358EDCA3; Sun, 3 Nov 2013 22:12:02 +0100 (CET) Message-ID: <5276BC4C.3030707@bitfrost.no> Date: Sun, 03 Nov 2013 22:12:44 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: Vash Plant , freebsd-drivers@freebsd.org Subject: Re: I created a driver for a USB gamepad. How can I get a developer to check it out? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Sun, 03 Nov 2013 21:11:37 -0000 Hi, Did you check that uhidd does not support your device? --HPS > The driver is located here: > https://github.com/lispandtrees/dragon_rise_driver > > It's for a SNES USB gamepad. I was hoping a committer/developer could check > it out and see if it's worthy of being added to the codebase. > If I'm asking this question in the wrong place then I do apologize. > > Thanks From owner-freebsd-drivers@FreeBSD.ORG Mon Nov 4 05:59:11 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 9C5A7B14; Mon, 4 Nov 2013 05:59:11 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qe0-x22d.google.com (mail-qe0-x22d.google.com [IPv6:2607:f8b0:400d:c02::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3C2212AA2; Mon, 4 Nov 2013 05:59:11 +0000 (UTC) Received: by mail-qe0-f45.google.com with SMTP id 8so3892786qea.18 for ; Sun, 03 Nov 2013 21:59:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=05eKu0ya9vvm7/gJkFDCFfzSa01Dd0PPX2bJEyUACyY=; b=Auy5Fo2luUURaBbkv5ESmVTwUpeNy/iKrMjqQEXyVoq4ANyCJzsPRtK0twMmMvi55I EyGMcDpmvcoOugbqxgECc5HsWts+6ohLxW750yPCQ9rqN8Gh+iHRfBYi5rUln2/Ce8Cj 6pi4mFtjHgZwHrT6LRWa4ShSPanU8FBYanen7qFyyHDw5DF+rI0CX5P4+wRU4YAUiZyh 7ASaLd6gNepgTUYhXdCG9NrJEEWTjxD4z47XZKgOnHmtdpDCfvwjSSjS3rbwWVT4tYlN 5LPTmBlO0ZJwt/UrQ260Cw00ZTdwoEHmBXLAhnWZIjoVTWQXWnY3MFqwDrwppOuacFTX S90Q== MIME-Version: 1.0 X-Received: by 10.229.34.134 with SMTP id l6mr20015339qcd.22.1383544750390; Sun, 03 Nov 2013 21:59:10 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Sun, 3 Nov 2013 21:59:10 -0800 (PST) In-Reply-To: <001e01ceb064$80168220$80438660$@info> References: <20130913112427.Horde.Lr2e32AbzvcQIrrWuDh-dg1@d2ux.org> <001e01ceb064$80168220$80438660$@info> Date: Sun, 3 Nov 2013 21:59:10 -0800 X-Google-Sender-Auth: qQTkHNmEQvnUw9CTaju-j6RbBfc Message-ID: Subject: Re: Centrino Wireless N2230 support From: Adrian Chadd To: Cedric GROSS Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" , "freebsd-drivers@freebsd.org" , Matthias Petermann , freebsd-current 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: Mon, 04 Nov 2013 05:59:11 -0000 [snip] For what it's worth, I've started merging this stuff into -HEAD. I'm going to merge in the hardware updates but none of the PAN stuff this pass. Since the linux iwlwifi driver doesn't at all support the 4965 chipset, cedric's stuff just plainly breaks that. So I'm going to have to be .. gentler. I'll post an update to -HEAD when I have this stuff in the tree and working (for various values of 'working', though.) -adrian From owner-freebsd-drivers@FreeBSD.ORG Wed Nov 6 19:18:29 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B65FE890 for ; Wed, 6 Nov 2013 19:18:29 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8F3BB264C for ; Wed, 6 Nov 2013 19:18:29 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 8C6BCB9C0; Wed, 6 Nov 2013 14:18:28 -0500 (EST) From: John Baldwin To: Nomad Esst Subject: Re: How igb ports are numbered Date: Wed, 6 Nov 2013 12:09:30 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <1383042426.69884.YahooMailNeo@web162706.mail.bf1.yahoo.com> <201310311433.36740.jhb@freebsd.org> <1383377727.1227.YahooMailNeo@web162702.mail.bf1.yahoo.com> In-Reply-To: <1383377727.1227.YahooMailNeo@web162702.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201311061209.30355.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Wed, 06 Nov 2013 14:18:28 -0500 (EST) 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: Wed, 06 Nov 2013 19:18:29 -0000 On Saturday, November 02, 2013 3:35:27 am Nomad Esst wrote: > Thanks for your help. I also found if_initname function which is used in igb_setup_interface function (in if_igb.c file). I've found out that the second argument of if_initname function is used to number ports, can I add an offset to it in order to change port numbering? Is it right? That is what sets the interface names, yes. However, it might be confusing if the interface names do not match the names in dmesg. > On Thursday, October 31, 2013 10:57 PM, John Baldwin wrote: > > On Tuesday, October 29, 2013 6:27:06 am Nomad Esst wrote: > > > >> How this job is done by driver? What should I do in order to change the > >beginning number of ports numbering? > > > >devclasses (devclass_t) assign unit numbers by using a first-free algorithm > >when a new device is added. sys/kern/subr_bus.c is the place to dig for more > >details on this. > > > >-- > >John Baldwin > > > > > > > > -- John Baldwin From owner-freebsd-drivers@FreeBSD.ORG Thu Nov 7 09:58:37 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 456742B7 for ; Thu, 7 Nov 2013 09:58:37 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from nm35-vm3.bullet.mail.bf1.yahoo.com (nm35-vm3.bullet.mail.bf1.yahoo.com [72.30.238.75]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E83692CA8 for ; Thu, 7 Nov 2013 09:58:36 +0000 (UTC) Received: from [98.139.215.143] by nm35.bullet.mail.bf1.yahoo.com with NNFMP; 07 Nov 2013 09:56:05 -0000 Received: from [98.139.212.203] by tm14.bullet.mail.bf1.yahoo.com with NNFMP; 07 Nov 2013 09:56:05 -0000 Received: from [127.0.0.1] by omp1012.mail.bf1.yahoo.com with NNFMP; 07 Nov 2013 09:56:05 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 125644.53765.bm@omp1012.mail.bf1.yahoo.com Received: (qmail 26975 invoked by uid 60001); 7 Nov 2013 09:56:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1383818164; bh=3Tzir6WDdsV+Ib50HB4SFWEJ5r7wwstfDlx+zbl86WI=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=RAyGynwJ2v5+AHP8FEasVKjGwoqakn/8kiRGwhzPdG5XUpQGiv2Ds4nEkplfx6VOw/ylcCMlVCJKVOk7Rnu/C5MazR1Pr3qAkXlRD7Z4MEl2MM3DzOu6TcTJkI717+faWAQcCr//uM9PQCaYcmQ9bSRlOOyXDBmfFCXxAzd8l4A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=A+NRf/JLEo1f4zm+dKevsix4HlcKkRBYLANDqwdbBr6iQCuvcycFxkUnD4sBUR+3bfQ1Cv+fv6eCGZEcSV4YZpUvHfYufn27FQFmXfGSSx3Y6mJoOmWFsqWkHqJSSO+Yp5jddX2W42EQRiudrQwCClyEV3AIoXkbHp3V/Rx6Iqk=; X-YMail-OSG: gs7l_ckVM1m9pDlez06BCKN_z1f6kP4yatOGfcfDeUdCDR1 ZD_g2KHcYi.d4UVLHbG3fGg6EjoQXtn7F5cA0QuzFiknOsCttce50pmM1uUw 3OrDOxKJTF_76M5fAqAec4lQzYp8zm4BxJ2O4aT2Q7mMQzEyfhKxPVLbGXoi gbCvGwZQGiAG3e0sxAv8y6uJElfkEFl1l2DwXDLhDhzp5MNXWuMe1RdVGMpF GPwaBMBvYSIlqybgRQ_RTqTN6IK3Nbpns_0SD_gJdFljFFU.CLflYZBNYkTc QQu7dSmpfq1TR1tfr0osR_kmleZb8jpJdaU8Fno8p4Kojj9qzgD5axAFt_fz 3lu6s9SKw4qNy_Bk7fiLHjxx31QtlaBvgdrih8wpYKfvF6qVB9O5jagGZJZy zufgazniPHi2H.bHZH2UfGV9k5VVXKtdU3W3FBLfuhYgUTo2CR.ypM.G34G7 AqECqfcB92ZIKyVVTalAaUafKY6DxcStnHFACHinnWjPzygMV0plWoGZlz2n d_4ImgXHKDVyXelQQi6B. Received: from [89.165.120.140] by web162703.mail.bf1.yahoo.com via HTTP; Thu, 07 Nov 2013 01:56:04 PST X-Rocket-MIMEInfo: 002.001, SGkKRmlyc3QgdGhhbmtzIHRvIE1yLiBKb2huIEJhbGR3aW4sIGhlbHBlZCBtZSB3aXRoIG15IHByZXZpb3VzIHF1ZXN0aW9ucy4KCldpdGggaGlzIGhlbHBzLCBJIG1hZGUgc29tZSBjaGFuZ2VzIGluIG9yZGVyIHRvIG1ha2UgZW0gYW5kIGlnYiBkcml2ZXIgbmFtZSBwb3J0cyAiZm9vIi4KTm93IHRoZSBjaGFuZ2VzIGFyZSA6CiJpZl9pZ2IuYyIgOsKgQ2hhbmdlICJpZ2IiIHRvICJmb28iIGluIGRldmljZV90IHN0cnVjdHVyZSBiOgpzdGF0aWMgZHJpdmVyX3QgaWdiX2RyaXZlciA9IHsKImZvbyIsIGlnYl8BMAEBAQE- X-Mailer: YahooMailWebService/0.8.163.597 Message-ID: <1383818164.21969.YahooMailNeo@web162703.mail.bf1.yahoo.com> Date: Thu, 7 Nov 2013 01:56:04 -0800 (PST) From: Nomad Esst Subject: Change order of modules loading in kernel To: "freebsd-drivers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Nomad Esst List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Nov 2013 09:58:37 -0000 Hi=0AFirst thanks to Mr. John Baldwin, helped me with my previous questions= .=0A=0AWith his helps, I made some changes in order to make em and igb driv= er name ports "foo".=0ANow the changes are :=0A"if_igb.c" :=A0Change "igb" = to "foo" in device_t structure b:=0Astatic driver_t igb_driver =3D {=0A"foo= ", igb_methods, sizeof(struct adapter),=0A};=0A=0Astatic=A0devclass_t igb_d= evclass;=0ADRIVER_MODULE(igb, pci, igb_driver, igb_devclass, 0, 0);=0AMODUL= E_DEPEND(igb, pci, 1, 1, 1);=0AMODULE_DEPEND(igb, ether, 1, 1, 1);=0A=0AAls= o for=A0"if_em.c" :=A0Change "em" to "foo" in device_t structure b:=0A=0Ast= atic driver_t em_driver =3D {=0A"foo", em_methods, sizeof(struct adapter),= =0A};=0Adevclass_t em_devclass;=0ADRIVER_MODULE(em, pci, em_driver, em_devc= lass, 0, 0);=0AMODULE_DEPEND(em, pci, 1, 1, 1);=0AMODULE_DEPEND(em, ether, = 1, 1, 1);=0A=0ANow, I have my interfaces like : foo0 , foo1 , foo2 , foo3 ,= foo4 , foo5=0AThe firs four interface (old "igb"s) are located at the righ= t side of my server an the last two ones (old "em"s) are located at the lef= t side, you can see the problem. I want the "em" module load before "igb". = Can I do so?=0ABy the way! Different driver naming in device_t structure an= d in DRIVER_MODULE and the other two macros (as I have done) causes problem= s?=0AThanks in advance