From owner-freebsd-drivers@FreeBSD.ORG Sun Oct 27 06:56:58 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 8632BDE for ; Sun, 27 Oct 2013 06:56:58 +0000 (UTC) (envelope-from soumendraganguly@gmail.com) Received: from mail-wg0-x236.google.com (mail-wg0-x236.google.com [IPv6:2a00:1450:400c:c00::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 263312A00 for ; Sun, 27 Oct 2013 06:56:58 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id c11so5461398wgh.9 for ; Sat, 26 Oct 2013 23:56:55 -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=YhybHcSlZHpwlou6NLC26cuIQskzfCDGhr8rBPbAYXU=; b=vbg7rC7s9a+FCcv9hdUtg3nJJ4Ak3i65bZP0lPY6lsbuGbdBGlRn0LjrnKv/GWXa8h tAs3bxsFoanI3M414OS1gcEi0/5H59sMvjk2zGl3ax9U5FEuCgfUk43ebFfctZYVm6TP LWS9wYor7akd6juJLkI9bBSefG4lTbyZAyhN0+5Ih6JsZCyNDsFboErpw3pvreZVx3gl oq82dobKsSTM9xd3Iy6KMZzW1h9gR5rN1XCe7WJT75pTZ6I3jhlCz0/pbKsHHoSNlE78 hlqsBQe1CRyFK1CGn51gHxu70qmHchtbzGto4zMfkDsti8r9f/pywBycllXG6BG80VZ6 QHqw== MIME-Version: 1.0 X-Received: by 10.180.189.49 with SMTP id gf17mr4409272wic.23.1382857015753; Sat, 26 Oct 2013 23:56:55 -0700 (PDT) Received: by 10.216.245.73 with HTTP; Sat, 26 Oct 2013 23:56:55 -0700 (PDT) Date: Sun, 27 Oct 2013 12:26:55 +0530 Message-ID: Subject: Drivers for my PC From: Soumendra Ganguly 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: Sun, 27 Oct 2013 06:56:58 -0000 Respected driver developers, I recently bought a notebook (hp pavilion 15-e006tu) which came with FreeDOS. I installed FreeBSD 9.2 (amd64) on it (using dvd1.iso *), removing FreeDOS and later noticed that the Wi-Fi is not working. Then I checked the list of hardwares supported by FreeBSD 9.2 (which I should have done prior to installing the OS) and found out that some of the components of my PC are not in the list. For example the Wi-Fi adapter (RalinkTech VQF-RT3290), the Bluetooth adapter (same model name as the Wi-Fi adapter, Ralink VQF-RT3290), and I do not even know if the Ethernet interface is supported. Later I realized that since the Wi-Fi adapter is not recognized, the FreeBSD installation said something like - 'no configurable NIC found' (or something similar, I hope you know what I mean). I really want to use FreeBSD. My other computer has Windows and Ubuntu on it. I want to port some of my code to FreeBSD. What to do? Please help! I do not know how to write drivers (I would love to be able to though) ! Help, please! * I converted the iso to a usb installation medium to install FreeBSD. I have created an image of the flash drive using dd(1) on ubuntu and saved it to my external hard drive for future use. Thank you. I will be really grateful if someone helps. From owner-freebsd-drivers@FreeBSD.ORG Sun Oct 27 10:16:52 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 663FFC2 for ; Sun, 27 Oct 2013 10:16:52 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from nm33-vm5.bullet.mail.bf1.yahoo.com (nm33-vm5.bullet.mail.bf1.yahoo.com [72.30.239.205]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 05BAE2148 for ; Sun, 27 Oct 2013 10:16:51 +0000 (UTC) Received: from [98.139.212.148] by nm33.bullet.mail.bf1.yahoo.com with NNFMP; 27 Oct 2013 10:16:43 -0000 Received: from [98.139.212.224] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 27 Oct 2013 10:16:43 -0000 Received: from [127.0.0.1] by omp1033.mail.bf1.yahoo.com with NNFMP; 27 Oct 2013 10:16:43 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 886000.68341.bm@omp1033.mail.bf1.yahoo.com Received: (qmail 11521 invoked by uid 60001); 27 Oct 2013 10:16:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1382869003; bh=GoDh75spPzoL8Lr6Ujq8MQU7C/nMHY0UDxbt7GLkL/c=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:MIME-Version:Content-Type; b=JsVb1uDU/MbXyPXUKpYsQOUGzTk00CRWDWBYmmeIyV8Q8n+Bn31lFVOMMQnAGnyP6NyAxdocJ0qRQGSazQpBp8uS/ufRs0tF+tFdwAFcE9PyTAO7gvoi2O+V3Q3kJTtpqq99+SLu8DWD5CXOwGGO45JrbgBxFA0DMIyZZIjaWZM= 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:Subject:To:MIME-Version:Content-Type; b=35/V3rzayaN282CuSj9qvohj5PVrOryk8jVxpYjQRKIzOw4XHECNd6m9i30whp2iRv8jaHIb9sydEB3S7BDtLkCxjPZPIpjOmz7moItlSb+VBsDsyaKJHNH5g7AE5HogTeTvvRTYGbZvSiNeY5VxilC5JgIk/6sYrHA4cXpXlZw=; X-YMail-OSG: gevydX8VM1lLhYSkXl1Pz7uemQuquRo.KyWOr3e4WDikA.Q Mc9Y6Vc5CCKCjEr6opcB2SyjtUspCAcTNYzFbNhA3G7F9CyJFEtDzsEbITMI Y76prdGzeYU9_n80edCaZIlapOlaa6vAh74nzHhsGmwKpG59danidWGCihsN FLYtCRBlnjoIe_o1jORVX1YjvRaMj5NEBPUDKIlJR_tKjorhGLKhm2m66_Fi w1sfczt63fsh17YY175BFDPKdgbhBlZlesl4JgukjV7vljwiDWkCFI9s_6lX KkxyhTqSUZN.yVFsf0rKye.LsoKq.fkvaITPyGLZ0upJ20fGVTXyc_dW1Hhp JpctsKxKo2ikY9SaAWM0kBD4_r0g3Fi0MeuAhLbeS7MsYa6fYMtYdt94aZ9B 3R2N26sGP_6d54NGtb.8xLFbxR9Z6GLyW1t_.RhtLtLzVvVshKS8sLtChVWB OFVDa9vd6njoVpKeuXjxTREmOSb_dOdXkuJ0b8wwV0vTdpSSNaH8uZGkoWnp h4_ft0S9Ua5Z_l5QppQw- Received: from [89.165.120.140] by web162706.mail.bf1.yahoo.com via HTTP; Sun, 27 Oct 2013 03:16:43 PDT X-Rocket-MIMEInfo: 002.001, SGkgbGlzdA0KSSdtIG5ldyBoZXJlIGFuZCBJIHdhbnQgeW91IHRvIGV4Y3VzZSBtZSBmb3IgbmV3aXNoIHF1ZXN0aW9ucy4NCldlIGhhdmUgdG8gdHlwZXMgb2YgaWdiIGNhcmRzKGZpYmVyIGFuZCBFdGhlcm5ldCkgb24gb3VyIHN5c3RlbXMuIEJvdGggb2YgdGhlc2UgY2FyZHMgYXJlIG5hbWUgaWdiIyBJIHdhbnQgdG8gY2hhbmdlIGZpYmVyIG9uZXMgdG8gZm9vLiBJIGhhdmUgdG9vayBsb29rIGF0IGlmX2lnYi5jIGZpbGUsIGhvdyBjYW4gSSBkZXRlY3QgdGhlIHR5cGUgb2YgY2FyZHMgYmVmb3JlIGZpbGwBMAEBAQE- X-Mailer: YahooMailClassic/361 YahooMailWebService/0.8.160.587 Message-ID: <1382869003.10661.YahooMailBasic@web162706.mail.bf1.yahoo.com> Date: Sun, 27 Oct 2013 03:16:43 -0700 (PDT) From: Nomad Esst Subject: Changing igb to foo in if_igb.c To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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, 27 Oct 2013 10:16:52 -0000 Hi list I'm new here and I want you to excuse me for newish questions. We have to types of igb cards(fiber and Ethernet) on our systems. Both of these cards are name igb# I want to change fiber ones to foo. I have took look at if_igb.c file, how can I detect the type of cards before filling driver_t structure out? e.g. If type=bar then filling with igb as name else if type=foo then filling with foo as name. static device_method_t igb_methods[] = { /* Device interface */ DEVMETHOD(device_probe, igb_probe), DEVMETHOD(device_attach, igb_attach), DEVMETHOD(device_detach, igb_detach), DEVMETHOD(device_shutdown, igb_shutdown), DEVMETHOD(device_suspend, igb_suspend), DEVMETHOD(device_resume, igb_resume), {0, 0} }; static driver_t igb_driver = { "igb", igb_methods, sizeof(struct adapter), }; static devclass_t igb_devclass; DRIVER_MODULE(igb, pci, igb_driver, igb_devclass, 0, 0); MODULE_DEPEND(igb, pci, 1, 1, 1); MODULE_DEPEND(igb, ether, 1, 1, 1); Thanks in advance . From owner-freebsd-drivers@FreeBSD.ORG Sun Oct 27 12:13:01 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 B55E2C2 for ; Sun, 27 Oct 2013 12:13:01 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7D2CA255B for ; Sun, 27 Oct 2013 12:13:01 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id r9RCD0mA072450 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 27 Oct 2013 05:13:00 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id r9RCD0B7072449; Sun, 27 Oct 2013 05:13:00 -0700 (PDT) (envelope-from jmg) Date: Sun, 27 Oct 2013 05:13:00 -0700 From: John-Mark Gurney To: Nomad Esst Subject: Re: Changing igb to foo in if_igb.c Message-ID: <20131027121300.GD58155@funkthat.com> Mail-Followup-To: Nomad Esst , freebsd-drivers@freebsd.org References: <1382869003.10661.YahooMailBasic@web162706.mail.bf1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1382869003.10661.YahooMailBasic@web162706.mail.bf1.yahoo.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Sun, 27 Oct 2013 05:13:00 -0700 (PDT) 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: Sun, 27 Oct 2013 12:13:01 -0000 Nomad Esst wrote this message on Sun, Oct 27, 2013 at 03:16 -0700: > Hi list > I'm new here and I want you to excuse me for newish questions. > We have to types of igb cards(fiber and Ethernet) on our systems. Both of these cards are name igb# I want to change fiber ones to foo. I have took look at if_igb.c file, how can I detect the type of cards before filling driver_t structure out? e.g. If type=bar then filling with igb as name else if type=foo then filling with foo as name. > > static device_method_t igb_methods[] = { > /* Device interface */ > DEVMETHOD(device_probe, igb_probe), > DEVMETHOD(device_attach, igb_attach), > DEVMETHOD(device_detach, igb_detach), > DEVMETHOD(device_shutdown, igb_shutdown), > DEVMETHOD(device_suspend, igb_suspend), > DEVMETHOD(device_resume, igb_resume), > {0, 0} > }; > > static driver_t igb_driver = { > "igb", igb_methods, sizeof(struct adapter), > }; > > static devclass_t igb_devclass; > DRIVER_MODULE(igb, pci, igb_driver, igb_devclass, 0, 0); > MODULE_DEPEND(igb, pci, 1, 1, 1); > MODULE_DEPEND(igb, ether, 1, 1, 1); Why don't you use ifconfig igb0 name foo0 to do that? You can use rc.conf's ifconfig_igb0_name="foo0" to do that automaticly on boot everytime. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-drivers@FreeBSD.ORG Sun Oct 27 15:36:28 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 209A6A57; Sun, 27 Oct 2013 15:36:28 +0000 (UTC) (envelope-from matthias@petermann-it.de) Received: from mail.s1.d2ux.org (static.209.96.9.5.clients.your-server.de [5.9.96.209]) by mx1.freebsd.org (Postfix) with ESMTP id CFEDC2D20; Sun, 27 Oct 2013 15:36:27 +0000 (UTC) Received: from mail.s1.d2ux.org (mail [10.0.0.3]) by mail.s1.d2ux.org (Postfix) with ESMTP id 5E30C84F25B2; Sun, 27 Oct 2013 16:36:20 +0100 (CET) Received: from mail.s1.d2ux.org ([10.0.0.3]) by mail.s1.d2ux.org (mail.s1.d2ux.org [10.0.0.3]) (amavisd-new, port 10024) with ESMTP id dGgladJjCm0j; Sun, 27 Oct 2013 16:36:18 +0100 (CET) Received: from workstation.local (p5DDABE5E.dip0.t-ipconnect.de [93.218.190.94]) by mail.s1.d2ux.org (Postfix) with ESMTPSA id 4456C84F2580; Sun, 27 Oct 2013 16:36:18 +0100 (CET) Message-ID: <526D3255.8090109@petermann-it.de> Date: Sun, 27 Oct 2013 16:33:41 +0100 From: Matthias Petermann User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: cg@cgross.info Subject: Re: Centrino Wireless N2230 support References: <20130913112427.Horde.Lr2e32AbzvcQIrrWuDh-dg1@d2ux.org> <001e01ceb064$80168220$80438660$@info> <526A5EBD.0@petermann-it.de> <3f4c1e2627b7da9b271b55f10ad9f7e5@cgross.info> In-Reply-To: <3f4c1e2627b7da9b271b55f10ad9f7e5@cgross.info> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org, freebsd-drivers@freebsd.org, freebsd-current@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: Sun, 27 Oct 2013 15:36:28 -0000 Hello Cedric, Am 26.10.2013 10:56, schrieb cg@cgross.info: > You must get and build net80211 from -HEAD also. It's why you have > this kind of compile error. Thanks, this was exactly my miss. With net80211 from -HEAD it built. I first tried IWL (https://github.com/KreizIT/freebsd-iwl) with FreeBSD 9.2-RELEASE. When I try to load the module with kldload if_iwl the kernel panics: Unread portion of the kernel message buffer: iwl0: mem 0xf1500000-0xf1501fff irq 17 at device 0.0 on pci2 iwl0: iwl_read_eeprom_ht40: no entry for channel 1 iwl0: iwl_read_eeprom_ht40: no entry for channel 2 iwl0: iwl_read_eeprom_ht40: no entry for channel 3 iwl0: iwl_read_eeprom_ht40: no entry for channel 4 iwl0: iwl_read_eeprom_ht40: no entry for channel 5 iwl0: iwl_read_eeprom_ht40: no entry for channel 6 iwl0: iwl_read_eeprom_ht40: no entry for channel 7 panic: ieee80211_get_ratetable: no rate table for channel; freq 0 flags 0x0 cpuid = 3 KDB: stack backtrace: #0 0xffffffff80947986 at kdb_backtrace+0x66 #1 0xffffffff8090d9ae at panic+0x1ce #2 0xffffffff80a1399e at ieee80211_get_ratetable+0x10e #3 0xffffffff809eb3a5 at ieee80211_media_init+0x355 #4 0xffffffff809eb69e at ieee80211_ifattach+0xae #5 0xffffffff81864914 at iwl_attach+0xbd4 #6 0xffffffff8186d360 at iwl_pci_attach+0x2f0 #7 0xffffffff809405dc at device_attach+0xcc #8 0xffffffff8064a0ca at pci_driver_added+0xda #9 0xffffffff8093e765 at devclass_driver_added+0x75 #10 0xffffffff8093f2a3 at devclass_add_driver+0x103 #11 0xffffffff808f80c8 at module_register_init+0xa8 #12 0xffffffff808f004e at linker_load_module+0x85e #13 0xffffffff808f0688 at kern_kldload+0xb8 #14 0xffffffff808f08a4 at sys_kldload+0x84 #15 0xffffffff80cf187a at amd64_syscall+0x5ea #16 0xffffffff80cdbff7 at Xfast_syscall+0xf7 Any ideas? Kind regards, Matthias From owner-freebsd-drivers@FreeBSD.ORG Mon Oct 28 05:57:42 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 52A21D3D for ; Mon, 28 Oct 2013 05:57:42 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from nm21.bullet.mail.bf1.yahoo.com (nm21.bullet.mail.bf1.yahoo.com [98.139.212.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F146423EA for ; Mon, 28 Oct 2013 05:57:41 +0000 (UTC) Received: from [98.139.215.142] by nm21.bullet.mail.bf1.yahoo.com with NNFMP; 28 Oct 2013 05:57:40 -0000 Received: from [98.139.212.225] by tm13.bullet.mail.bf1.yahoo.com with NNFMP; 28 Oct 2013 05:57:40 -0000 Received: from [127.0.0.1] by omp1034.mail.bf1.yahoo.com with NNFMP; 28 Oct 2013 05:57:40 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 393125.48483.bm@omp1034.mail.bf1.yahoo.com Received: (qmail 1137 invoked by uid 60001); 28 Oct 2013 05:57:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1382939860; bh=TlmJ3IRkvKVKB8DhdoiiHz+vzaTEAwS6DAWbKz4+AF4=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=HxUZPxx6LCUtm2pPRK2qtrzCgRqaHlro3LJE8k7TVGgcCTLr/8olDRPM7HQOusLpiyLH6NvbaurQ7yZfhJJRtg14IX9OHEYRgh2ZswIIAvm8HyQaTUmQXLyy6CXf3jh3wDAvL6Vh+RkkGWWUBSeAUaqcQl001hHnuiccW5RsrU0= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=aYBb0EA3iaqSgAD+fyiuOOgMwi/16vWdbUFoktq69yKNqIiseWOTANT0HnOXwmZiDOTpGsvBSWjsjo5UZhaXbkNvtzxli5GAEnFdfujSyAL/DJjpBJb1TXbKWrr9daFsbPDlyvxDFgh0BNYFANhTe7Rs/lMy7qs7Pe3FeyuKb88=; X-YMail-OSG: YiBromEVM1nFXCZtWbKwdoXuHuxvB24AQKu4_vd3gGh3Y5h 9VP0xvCFe4ogfetAMgif7xKgIewpIqX2oM2hNHYU6BdDpL6CMo12pUt1PQ3y l3hGo06FX_OXTM032Ulrlj8vlaZyCjhOxevNNfDo52TGKt4oAdTt5jlCHQFd dq9DKMEO2Bstpu256KwHTIiKzwGMSH1uMbZ2lsP.tNJX_Bp1cxetsB8zkSE2 ufO45aPgMaLP_I5uqzAeag0_PbDzRTCb9Ks8NfUnENYaAd_TbzXRB30DKAFH XIWIkHmqd5msg6ITWpiqGu1xR90M_OCD4m3uaNwB_hwaGN2aBLocMXb_WXer qqmrv.9RKRfFFfEzGDpCiTMehOYW.a7cvJBho4dhyM.DZUlti_SIy1MtnA85 H4ykz_yk7XN9b5QHGoaYIR8xFEycQrzcA5OQ1XSkUBzuJhWC8AqnCPG65bRz wjCpeMMyljXfMCS_EeIeTx4KtRUBzTdgux9zj30CFjX2Zo29XmPKbCK4J4O7 XroZfAXLvGzA43sEMqojYtGr5l3e_M_vM2SlEMm_AkA-- Received: from [89.165.120.140] by web162706.mail.bf1.yahoo.com via HTTP; Sun, 27 Oct 2013 22:57:40 PDT X-Rocket-MIMEInfo: 002.001, PldoeSBkb24ndCB5b3UgdXNlIGlmY29uZmlnIGlnYjAgbmFtZSBmb28wIHRvIGRvIHRoYXQ_Cj4KPllvdSBjYW4gdXNlIHJjLmNvbmYncyBpZmNvbmZpZ19pZ2IwX25hbWU9ImZvbzAiIHRvIGRvIHRoYXQgPmF1dG9tYXRpY2x5Cj5vbiBib290IGV2ZXJ5dGltZS4KPgo.LS0gCj5Kb2huLU1hcmsgR3VybmV5ICAgICAgICAgICAgICAgIFZvaWNlOiArMSA0MTUgMjI1IDU1NzkKCgpUaGFuayB5b3UuIEJlY2F1c2Ugb2YgdHdvIHJlYXNvbnMsIGZpcnN0IEknbSBzdHVkeWluZyBob3cgdG8gd3JpdGluZyBkZXZpY2UBMAEBAQE- X-Mailer: YahooMailWebService/0.8.160.587 References: <1382869003.10661.YahooMailBasic@web162706.mail.bf1.yahoo.com> <20131027121300.GD58155@funkthat.com> Message-ID: <1382939860.198.YahooMailNeo@web162706.mail.bf1.yahoo.com> Date: Sun, 27 Oct 2013 22:57:40 -0700 (PDT) From: Nomad Esst Subject: Re: Changing igb to foo in if_igb.c To: John-Mark Gurney In-Reply-To: <20131027121300.GD58155@funkthat.com> 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 Cc: "freebsd-drivers@freebsd.org" 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: Mon, 28 Oct 2013 05:57:42 -0000 >Why don't you use ifconfig igb0 name foo0 to do that?=0A>=0A>You can use r= c.conf's ifconfig_igb0_name=3D"foo0" to do that >automaticly=0A>on boot eve= rytime.=0A>=0A>-- =0A>John-Mark Gurney Voice: +1 415 225 557= 9=0A=0A=0AThank you. Because of two reasons, first I'm studying how to writ= ing device drivers for FreeBSD and doing something like "Changing igb to fo= o in if_igb.c" could be very useful, second I want to change this name ever= y where e.g. sysctl. Besides that doing this in rc.conf causes an extra boo= t time, and we are trying to decrease boot time.=A0Please help about doing = this job ...=0A From owner-freebsd-drivers@FreeBSD.ORG Mon Oct 28 14:32:12 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 B4EAFF56 for ; Mon, 28 Oct 2013 14:32:12 +0000 (UTC) (envelope-from soumendraganguly@gmail.com) Received: from mail-wi0-x22f.google.com (mail-wi0-x22f.google.com [IPv6:2a00:1450:400c:c05::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 552702380 for ; Mon, 28 Oct 2013 14:32:12 +0000 (UTC) Received: by mail-wi0-f175.google.com with SMTP id hm4so3931755wib.14 for ; Mon, 28 Oct 2013 07:32:10 -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=9JPgW/lQmJ8O3K0pH1p4jAjn38LwXiBmxz66EFsQWZ8=; b=pJ7Orf7nY84gsWXUaCy4xbnGSM2fAfKdIU4Q8bxfcZxVkKgoW+5FudprEJNShs58DB ku+QZOVXhOR8swAX9pkXx/MgLTatwuegQhnzy0FiW/rZRQ3VX/IAG2z/bY4fl5BTrGND eFTwINE5dXEvVZuw5hnSAfktUsgVsBfh+k6kKJKIxGE/tcaYKmBuPo8aA8iOkTNQglU1 4Vt8ZmaGWm/2QKc+j1nUTLrc7Tr4Cx2m8Ej4ilr07/yVfkMUD/jufUdVlYWpKMYQnkbz kIvhpgnAznTdX3QfDGm7izg9AhMS2bppJJ5Bz69QBjYX+HQqRK6+F82jrj9bnUcG7cZT GmXQ== MIME-Version: 1.0 X-Received: by 10.194.200.100 with SMTP id jr4mr2325492wjc.37.1382970730719; Mon, 28 Oct 2013 07:32:10 -0700 (PDT) Received: by 10.216.245.73 with HTTP; Mon, 28 Oct 2013 07:32:10 -0700 (PDT) Date: Mon, 28 Oct 2013 20:02:10 +0530 Message-ID: Subject: Drivers for my PC From: Soumendra Ganguly To: freebsd-drivers Content-Type: text/plain; charset=ISO-8859-1 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, 28 Oct 2013 14:32:12 -0000 Dear driver developers, I recently bought a notebook (hp pavilion 15-e006tu) which came with FreeDOS. I installed FreeBSD 9.2 (amd64) on it (using dvd1.iso *), removing FreeDOS and later noticed that the Wi-Fi is not working. Then I checked the list of hardwares supported by FreeBSD 9.2 (which I should have done prior to installing the OS) and found out that some of the components of my PC are not in the list. For example the Wi-Fi adapter (RalinkTech VQF-RT3290), the Bluetooth adapter (same model name as the Wi-Fi adapter, Ralink VQF-RT3290), and I do not even know if the Ethernet interface is supported. Later I realized that since the Wi-Fi adapter is not recognized, the FreeBSD installation said something like - 'no configurable NIC found' (or something similar, I hope you know what I mean). I really want to use FreeBSD. My other computer has Windows and Ubuntu on it. I want to port some of my code to FreeBSD. What to do? Please help! I do not know how to write drivers (I would love to be able to though) ! Help, please! * I converted the iso to a usb installation medium to install FreeBSD. I have created an image of the flash drive using dd(1) on ubuntu and saved it to my external hard drive for future use. Thank you. I will be really grateful if someone helps. From owner-freebsd-drivers@FreeBSD.ORG Mon Oct 28 16:56:47 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 5FAA4DD8; Mon, 28 Oct 2013 16:56:47 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id F24342D39; Mon, 28 Oct 2013 16:56:46 +0000 (UTC) Received: from mart.js.berklix.net (p5DCBCCBC.dip0.t-ipconnect.de [93.203.204.188]) (authenticated bits=128) by land.berklix.org (8.14.5/8.14.5) with ESMTP id r9SGucqU031814; Mon, 28 Oct 2013 16:56:39 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id r9SGuUdi024087; Mon, 28 Oct 2013 17:56:30 +0100 (CET) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost.js.berklix.net [127.0.0.1]) by fire.js.berklix.net (8.14.4/8.14.4) with ESMTP id r9SGuIwU067536; Mon, 28 Oct 2013 17:56:24 +0100 (CET) (envelope-from jhs@fire.js.berklix.net) Message-Id: <201310281656.r9SGuIwU067536@fire.js.berklix.net> To: Soumendra Ganguly Subject: Re: Drivers for my PC From: "Julian H. Stacey" Organization: http://berklix.com BSD Unix Linux Consultancy, Munich Germany User-agent: EXMH on FreeBSD http://berklix.com/free/ X-URL: http://www.berklix.com In-reply-to: Your message "Mon, 28 Oct 2013 20:02:10 +0530." Date: Mon, 28 Oct 2013 17:56:18 +0100 Sender: jhs@berklix.com Cc: questions@freebsd.org, freebsd-drivers 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, 28 Oct 2013 16:56:47 -0000 Hi, Reference: > From: Soumendra Ganguly > Date: Mon, 28 Oct 2013 20:02:10 +0530 Soumendra Ganguly wrote: > Dear driver developers, > I recently bought a notebook (hp > pavilion 15-e006tu) which came with FreeDOS. I installed FreeBSD 9.2 > (amd64) on it (using dvd1.iso *), removing FreeDOS and later noticed > that the Wi-Fi is not working. Then I checked the list of hardwares > supported by FreeBSD 9.2 (which I should have done prior to installing > the OS) and found out that some of the components of my PC are not in > the list. For example the Wi-Fi adapter (RalinkTech VQF-RT3290), the > Bluetooth adapter (same model name as the Wi-Fi adapter, Ralink > VQF-RT3290), and I do not even know if the Ethernet interface is > supported. Later I realized that since the Wi-Fi adapter is not > recognized, the FreeBSD installation said something like - 'no > configurable NIC found' (or something similar, I hope you know what I > mean). I really want to use FreeBSD. My other computer has Windows and > Ubuntu on it. I want to port some of my code to FreeBSD. What to do? > Please help! I do not know how to write drivers (I would love to be > able to though) ! Help, please! > > * I converted the iso to a usb installation medium to install FreeBSD. > I have created an image of the flash drive using dd(1) on ubuntu and > saved it to my external hard drive for future use. > > Thank you. I will be really grateful if someone helps. Hi Soumendra Ganguly, You will get more support from questions@ that I added to CC, I suggest some later responder to this thread drops drivers@ from CC. In future please break your post into seperate postings with different subjects & more detail to tempt people more to answer just one question. It'll make it easier for them, & get you better reponse. drivers@ is mostly for busy driver developers@, few if any of whom will likely be interested in sorting a magic box of drivers for your particular PC, at least not without a lot more info from you &/or cash to motivate work for a manufacturer's specific PC ;-) Few know or care what a manufacturer's model contains, as they come & go rapidly, it's chip sets that get people's interest. There is a laptop list though, http://laptop.bsdgroup.de/freebsd/ see Also http://lists.freebsd.org/pipermail/freebsd-stable/2011-July/063261.html Provide more IC info. Download & boot a USB .img (which can run from stick, you dont even need to install, though easier if you do) & Or look up manufacturers spec & find Chips =ICs listed there. I did that for each laptop I have had. ALos created web pages of dmesg etc. Also untered them on the laptop indices. eg I have an HP Pavilion that does support ethernet: http://berklix.com/~jhs/hardware/hp/pavilion/dm3-1155ea Try yours & report detail. Capture the dmesg & pciconf outputs to a 2nd USB stick so you can publish them. For each device of interest look at & report parts of dmesg man pciconf ; pciconf -lv Also you can buy a WLAN USB stick for 10 Euro that's just 3mm long that supports FreeBSD-10 (Not 9!) urtwn0: (but maybe get a bigger stick for more reliable support) A link to threads on that here: http://berklix.com/~jhs/txt/driver_search There's also NDIS to support other WLAN chips (but NDIS is due to be removed later, subject to warm debate on other lists) Cheers, Julian -- Julian Stacey, BSD Unix Linux C Sys Eng Consultant, Munich http://berklix.com Interleave replies below like a play script. Indent old text with "> ". Send plain text, not quoted-printable, HTML, base64, or multipart/alternative. From owner-freebsd-drivers@FreeBSD.ORG Tue Oct 29 10:30:15 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 DEC96F70 for ; Tue, 29 Oct 2013 10:30:15 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from nm46-vm8.bullet.mail.bf1.yahoo.com (nm46-vm8.bullet.mail.bf1.yahoo.com [216.109.115.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 72EBE2A0C for ; Tue, 29 Oct 2013 10:30:15 +0000 (UTC) Received: from [98.139.212.152] by nm46.bullet.mail.bf1.yahoo.com with NNFMP; 29 Oct 2013 10:27:06 -0000 Received: from [98.139.212.214] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 29 Oct 2013 10:27:06 -0000 Received: from [127.0.0.1] by omp1023.mail.bf1.yahoo.com with NNFMP; 29 Oct 2013 10:27:06 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 118303.70414.bm@omp1023.mail.bf1.yahoo.com Received: (qmail 71567 invoked by uid 60001); 29 Oct 2013 10:27:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1383042426; bh=mt2FjfEkjGZMW21dVpCuZ1lUGIqfh1iuvyU5OtBnwu8=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=HGYzxzcuOhb6siWpBBW/hwVki+OhvcPw1nkJpWTeSOKaVO5ETOM44M4MRpQHEXxX6t+cL2nP+p5m/1Mcd8Otbj3qH0hdbklBNL6QFneRFqLEP34qsUJrQvPMM6pzKPuJbrJAuXl5m/5kvM4+nmFehYwbfwfg5dMeKt4EXjw+94g= 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=iBXFHVXrkPAklq/KgFpUQAi2UL3ThrwPRDrz1+nZbymg0tkCJVamPwWQg248PX7bousBKiIosGKDCsfCMgIiD8Nir284u1btUk9c8/DFMyOjLO4BlIlFPP2rWotzWYP0AAT/7FhuObkcZJDH7/60ziUxBKH6pHMU/hOMyHZHgEY=; X-YMail-OSG: ouTDbHIVM1lNlJhwLrBgiJZ5Pd176f0O682vCst7L.7DR9F 6aDOlg7V93_wc01NCVe4AGj9DxFP4guLVSjcwf48KdFYV2pNaCgDQVEJSQ0y Mbhp9cTbdxd5jWrzEe3zs2Vv2emoIf3bKBf68TCi1VdIDg4nYEHIfAqFOhPK eO5IQGMh6fbjBuUd5txGWw4XXnkk81C0XOiXD2rZj87QXFNiF_txcRPtl.cj 2fctx.cV1nA5X63grt.aRarKH7w1A07wupvWn.iQiNopI4mNXOOAOQg1dqTC Bb2QbKx4zuIYOVgYUWX8tdqFhWmsuTMWZGca..Gl5jnMprnpmhSTlCBozl.s pqk5eaUwHP.er_rlLgstTTripx2wT3.nc8eTw0weEXnFDPn_ky3ZD4f3EKr3 fr401uw1X8f_fYaWSqu9EHG0_SKsIiM0uOXBmNDg.szJFoJQGITh7y10ftNF HRXiWvXT4mTviTe2csnJ3q1rRt0bsffE4NdEbkwbXBLZ_WFXvIY0cEdDMjYi VSyiNl_8lJUpLFMlN8byUsDCo Received: from [89.165.120.140] by web162706.mail.bf1.yahoo.com via HTTP; Tue, 29 Oct 2013 03:27:06 PDT X-Rocket-MIMEInfo: 002.001, SG93IHRoaXMgam9iIGlzIGRvbmUgYnkgZHJpdmVyPyBXaGF0IHNob3VsZCBJIGRvIGluIG9yZGVyIHRvIGNoYW5nZSB0aGUgYmVnaW5uaW5nIG51bWJlciBvZiBwb3J0cyBudW1iZXJpbmc_CgoKVGhhbmtzIGluIGFkdmFuY2UBMAEBAQE- X-Mailer: YahooMailWebService/0.8.160.587 Message-ID: <1383042426.69884.YahooMailNeo@web162706.mail.bf1.yahoo.com> Date: Tue, 29 Oct 2013 03:27:06 -0700 (PDT) From: Nomad Esst Subject: How igb ports are numbered To: "freebsd-drivers@freebsd.org" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Tue, 29 Oct 2013 10:30:15 -0000 How this job is done by driver? What should I do in order to change the beginning number of ports numbering? Thanks in advance From owner-freebsd-drivers@FreeBSD.ORG Thu Oct 31 19:27:17 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 A7E7C96A for ; Thu, 31 Oct 2013 19:27:17 +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 827552B06 for ; Thu, 31 Oct 2013 19:27:17 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 8BBD9B9B4; Thu, 31 Oct 2013 15:27:16 -0400 (EDT) From: John Baldwin To: freebsd-drivers@freebsd.org, Nomad Esst Subject: Re: How igb ports are numbered Date: Thu, 31 Oct 2013 14:33:36 -0400 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> In-Reply-To: <1383042426.69884.YahooMailNeo@web162706.mail.bf1.yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201310311433.36740.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 31 Oct 2013 15:27:16 -0400 (EDT) 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: Thu, 31 Oct 2013 19:27:17 -0000 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 From owner-freebsd-drivers@FreeBSD.ORG Fri Nov 1 09:37:05 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 6576CB32 for ; Fri, 1 Nov 2013 09:37:05 +0000 (UTC) (envelope-from annamolalex27@gmail.com) Received: from mail-ve0-x22d.google.com (mail-ve0-x22d.google.com [IPv6:2607:f8b0:400c:c01::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 294702C31 for ; Fri, 1 Nov 2013 09:37:05 +0000 (UTC) Received: by mail-ve0-f173.google.com with SMTP id jw12so2925847veb.18 for ; Fri, 01 Nov 2013 02:37:04 -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=AGIKRbAgqdpLHuX9OoxDqQ52cTwoE6InLUDqpYu8dBU=; b=BiBOxcN0Ykn+RrNKjhU7usP9sF2VpolqhNYQ5VSr11WdzWY8QP24BEo7XQXjFMJ7PH GeV6V8oO01fEmuVGX8FD6X8JQHFPlKd9A0zAJTwI0lP31OUX4GG3+9SnYrscZbYzAZ5z UpWLqbH0RyqSEXaqYnlJqp/6QkblxWfetvQj0yJ9DR8N1+xiYkZYU8R7TQYX2TMcMqn1 hWNpWx/heBM1GJ6kDNPF1ffrcM5W1OVe1Y55OPL+Gd6Ss9DlOo+KaOfImQ89nAu4RBSy Uica+RHl+jJjy5976uMmrpyomu/4Pd1TCkWrN/j3DtQMozTtt0fTEvtwqOjt0p7uScFx gs0Q== MIME-Version: 1.0 X-Received: by 10.52.171.198 with SMTP id aw6mr264713vdc.51.1383298624219; Fri, 01 Nov 2013 02:37:04 -0700 (PDT) Received: by 10.58.137.132 with HTTP; Fri, 1 Nov 2013 02:37:04 -0700 (PDT) Date: Fri, 1 Nov 2013 15:07:04 +0530 Message-ID: Subject: freeBSD device driver From: Annamol Alex 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: Fri, 01 Nov 2013 09:37:05 -0000 Hi, I am trying to modify the mac80211 and ath9k wireless driver with TDMA support enabled. I am using the freeBSD's TDMA implementation as the reference.. what are the equivalent parameters like struct ieee80211_com , struct ieee80211_wme_state used in FreeBSD in Linux ? How to port this implementation onto Linux ? I would like to trace the flow between the drivers and kernel in freebsd.. How can it be done ? Any help on device drivers would be greatful......... Thanking you Regards Annamol From owner-freebsd-drivers@FreeBSD.ORG Sat Nov 2 07:35:35 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 01F5AD7B for ; Sat, 2 Nov 2013 07:35:35 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from nm24-vm0.bullet.mail.bf1.yahoo.com (nm24-vm0.bullet.mail.bf1.yahoo.com [98.139.213.161]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A4550267F for ; Sat, 2 Nov 2013 07:35:34 +0000 (UTC) Received: from [98.139.215.141] by nm24.bullet.mail.bf1.yahoo.com with NNFMP; 02 Nov 2013 07:35:27 -0000 Received: from [98.139.212.200] by tm12.bullet.mail.bf1.yahoo.com with NNFMP; 02 Nov 2013 07:35:27 -0000 Received: from [127.0.0.1] by omp1009.mail.bf1.yahoo.com with NNFMP; 02 Nov 2013 07:35:27 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 565772.40060.bm@omp1009.mail.bf1.yahoo.com Received: (qmail 1301 invoked by uid 60001); 2 Nov 2013 07:35:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1383377727; bh=Elm1JDFBAV9zOSvTcoWXK6ZyQmqTxkXAllP76pRATBY=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=e8vQbV8dmZ+lfCULhfWbjGeAtHeczk3pt85U6/htFBBFXYzqj8BmoVULX1ODsdFHlDLHc+JUh6JUjLVUotExzlDiwMMR63XQAVZFiU5pYcH6JxGzT3i6gmbOUjQ69TiUdb3vowdwmJTlhPOu4Z+o+2cc0kzLNIzLInP73Wdez8A= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=m6nHiZ5abl8MIok49U+/VlKA8Zx0MTDBjGyCIPS1XqmoQxy/IMf8T9P6iplJ73J/K1Hha5NzM76ClWyTZYqhj8zn6N8NoFtqQd5r8HoT1K96eLag8IhbBLUFQopuUH/353LGUJRaTHlq1NriZGeccyUp34Vqq4+PuqTKEd3Xzsg=; X-YMail-OSG: mks2DlIVM1mdg0zdYYOpkqNT4K8H4oWNtFPAwIw7b.X4l8Z hwIKS18n7bgrD97UhWOxLzfWu5HkvJ.YxFWZDFdNuEAm726U0MY5OdxM100y Ox_VyPEqHkdRDsspuxXIjAmESkFYI2HAVioy0rxKHCSE_mWAd.gG9fs2xoBQ z9vmPYO.2wV_ejLPCo.exxWPfZZIi9c2pEIR.mfPfihux2O2g51Tj_B_3eNw mIusri5stQkDmxxlSRGq0vEjwWxG0udLQUU6lXFXREWFt1PB8gez1c3cUwUh sSFSaZ1uWT6DpAj7bjbTV_pjXRotZ6bks3UmpoPYPr0BKRJeJAaN6IkcTWb5 3LKxCyVb8tD8vKFnc8cxy421_KeoWMnKu4CYnnbPJ2..5lgkHaO_c9Dwc9ZP A8ZFXqks8YKa.qBpzOutkqNY00Ss0Vru57K0S9yOYhF9otf8wKDB5HJe4oZG dNSlnllST4JGujK5IDDQqHomOJ8awkBpMYUcKeJ9YqJGtfMPpZ3HGeZZkGL4 nwCeUaMh8P16zDx11qt.665I.q2VYQeKwHLN07qYSJg-- Received: from [89.165.120.140] by web162702.mail.bf1.yahoo.com via HTTP; Sat, 02 Nov 2013 00:35:27 PDT X-Rocket-MIMEInfo: 002.001, VGhhbmtzIGZvciB5b3VyIGhlbHAuIEkgYWxzbyBmb3VuZMKgaWZfaW5pdG5hbWUgZnVuY3Rpb24gd2hpY2ggaXMgdXNlZCBpbiBpZ2Jfc2V0dXBfaW50ZXJmYWNlIGZ1bmN0aW9uIChpbiBpZl9pZ2IuYyBmaWxlKS4gSSd2ZSBmb3VuZCBvdXQgdGhhdCB0aGUgc2Vjb25kIGFyZ3VtZW50IG9mIGlmX2luaXRuYW1lIGZ1bmN0aW9uIGlzIHVzZWQgdG8gbnVtYmVyIHBvcnRzLCBjYW4gSSBhZGQgYW4gb2Zmc2V0IHRvIGl0IGluIG9yZGVyIHRvIGNoYW5nZSBwb3J0IG51bWJlcmluZz8gSXMgaXQgcmlnaHQ_CgoKCk8BMAEBAQE- X-Mailer: YahooMailWebService/0.8.161.596 References: <1383042426.69884.YahooMailNeo@web162706.mail.bf1.yahoo.com> <201310311433.36740.jhb@freebsd.org> Message-ID: <1383377727.1227.YahooMailNeo@web162702.mail.bf1.yahoo.com> Date: Sat, 2 Nov 2013 00:35:27 -0700 (PDT) From: Nomad Esst Subject: Re: How igb ports are numbered To: John Baldwin , "freebsd-drivers@freebsd.org" In-Reply-To: <201310311433.36740.jhb@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: Sat, 02 Nov 2013 07:35:35 -0000 Thanks for your help. I also found=A0if_initname function which is used in = igb_setup_interface function (in if_igb.c file). I've found out that the se= cond 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?=0A=0A=0A=0AOn= Thursday, October 31, 2013 10:57 PM, John Baldwin wrote:= =0A =0AOn Tuesday, October 29, 2013 6:27:06 am Nomad Esst wrote:=0A>=0A>> H= ow this job is done by driver? What should I do in order to change the =0A>= beginning number of ports numbering?=0A>=0A>devclasses (devclass_t) assign = unit numbers by using a first-free algorithm =0A>when a new device is added= .=A0 sys/kern/subr_bus.c is the place to dig for more =0A>details on this.= =0A>=0A>-- =0A>John Baldwin=0A>=0A>=0A>=0A>