From owner-freebsd-drivers@FreeBSD.ORG Sun Feb 25 17:52:51 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D20C216A402 for ; Sun, 25 Feb 2007 17:52:51 +0000 (UTC) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: from fallbackmx03.syd.optusnet.com.au (fallbackmx03.syd.optusnet.com.au [211.29.133.136]) by mx1.freebsd.org (Postfix) with ESMTP id 651BB13C4A5 for ; Sun, 25 Feb 2007 17:52:51 +0000 (UTC) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: from mail30.syd.optusnet.com.au (mail30.syd.optusnet.com.au [211.29.133.193]) by fallbackmx03.syd.optusnet.com.au (8.12.11.20060308/8.12.11) with ESMTP id l1P3kApC002995 for ; Sun, 25 Feb 2007 14:46:11 +1100 Received: from triptrop.cse.unsw.edu.au (blaax9-b219.dialup.optusnet.com.au [203.164.127.219]) by mail30.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id l1P3jvB1025841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 25 Feb 2007 14:46:07 +1100 Received: from triptrop.cse.unsw.edu.au (localhost [127.0.0.1]) by triptrop.cse.unsw.edu.au (8.13.8/8.13.6) with ESMTP id l1P3iUjV001347 for ; Sun, 25 Feb 2007 14:44:31 +1100 (EST) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: (from tbourke@localhost) by triptrop.cse.unsw.edu.au (8.13.8/8.13.6/Submit) id l1P3iUwC001346 for freebsd-drivers@freebsd.org; Sun, 25 Feb 2007 14:44:30 +1100 (EST) (envelope-from tbourke) Date: Sun, 25 Feb 2007 14:44:29 +1100 From: Timothy Bourke To: freebsd-drivers@freebsd.org Message-ID: <20070225034429.GA1182@triptrop> Mail-Followup-To: freebsd-drivers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://www.cse.unsw.edu.au/~tbourke/pubkey.txt Subject: vkbd driver and devfs X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 17:52:52 -0000 --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I am writing some code (a driver) that exploits the vkbd driver and I have some questions about the latter. The following notes apply to 6.2-RELEASE. The vkbd driver seems to interact strangely with devfs, specifically: 1. The /dev/vkbdctl device never appears in directory listings (although it is found dynamically). kldload vkbd ls /dev | grep vkbd # nothing=20 =20 Possible fix: add make_dev and destroy_dev calls to vkbd_modeevent(). 2. Opening /dev/vkbdctl for the first time correctly creates two devices (and redirects the open to the first): /dev/vkbdctl0=20 /dev/vkbd0 =20 Closing /dev/vkbdctl0 correctly removes the /dev/vkbd0 device but not the /dev/vkbdctl0 device itself. Should it also be removed? Possible fix: `unclone' (if possible) /dev/vkbdctl0 in vkbd_dev_close(). =20 Maybe a /dev/vkbdctl node should only be removed if no higher numbered nodes are in use? Then, presumably, all unopened lower numbered vkbdctl<= M> nodes should also be removed? =20 Currently /dev/vkbctl nodes are removed en masse via a call to clone_cleanup() when the driver is unloaded. 3. Each new open on /dev/vkbdctl creates and returns new /dev/vkbdctl devices with progressively higher values of N. Is this the proper behavi= our? =20 If not, possible fix: vkbd_dev_clone() should work upward from 0 looking for unopen /dev/vkbdctl0 nodes before calling clone_create(). =20 Pointers to the documentation or source are most welcome. Perhaps I have overlooked something obvious. If necessary I will try to write a patch. Tim. --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFF4QYdtKVK1sFb0ecRAvHTAJ4kP1EblU2ur/WLNxhdhRMz9vz8VACdEM2j jQyyyZNcL4Ichmr97NBdONc= =MjIz -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1-- From owner-freebsd-drivers@FreeBSD.ORG Sun Feb 25 23:34:07 2007 Return-Path: X-Original-To: drivers@freebsd.org Delivered-To: freebsd-drivers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0D52516A407 for ; Sun, 25 Feb 2007 23:34:07 +0000 (UTC) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: from fallbackmx03.syd.optusnet.com.au (fallbackmx03.syd.optusnet.com.au [211.29.133.136]) by mx1.freebsd.org (Postfix) with ESMTP id 99B1713C467 for ; Sun, 25 Feb 2007 23:34:06 +0000 (UTC) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: from mail14.syd.optusnet.com.au (mail14.syd.optusnet.com.au [211.29.132.195]) by fallbackmx03.syd.optusnet.com.au (8.12.11.20060308/8.12.11) with ESMTP id l1PAk3rh018810 for ; Sun, 25 Feb 2007 21:46:04 +1100 Received: from triptrop.cse.unsw.edu.au (blaax11-b091.dialup.optusnet.com.au [203.164.191.91]) by mail14.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id l1PAjU1s028934 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 25 Feb 2007 21:45:43 +1100 Received: from triptrop.cse.unsw.edu.au (localhost [127.0.0.1]) by triptrop.cse.unsw.edu.au (8.13.8/8.13.6) with ESMTP id l1PAhZ6V001730 for ; Sun, 25 Feb 2007 21:43:41 +1100 (EST) (envelope-from tbourke@triptrop.cse.unsw.edu.au) Received: (from tbourke@localhost) by triptrop.cse.unsw.edu.au (8.13.8/8.13.6/Submit) id l1PAhX4t001728 for drivers@freebsd.org; Sun, 25 Feb 2007 21:43:33 +1100 (EST) (envelope-from tbourke) Date: Sun, 25 Feb 2007 21:43:30 +1100 From: Timothy Bourke To: drivers@freebsd.org Message-ID: <20070225104330.GA1696@triptrop> Mail-Followup-To: drivers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KsGdsel6WgEHnImy" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://www.cse.unsw.edu.au/~tbourke/pubkey.txt Cc: Subject: vkbd driver and devfs X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 23:34:07 -0000 --KsGdsel6WgEHnImy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I am writing some code (a driver) that exploits the vkbd driver and I have some questions about the latter. The following notes apply to 6.2-RELEASE. The vkbd driver seems to interact strangely with devfs, specifically: 1. The /dev/vkbdctl device never appears in directory listings (although it is found dynamically). kldload vkbd ls /dev | grep vkbd # nothing=20 =20 Possible fix: add make_dev and destroy_dev calls to vkbd_modeevent(). 2. Opening /dev/vkbdctl for the first time correctly creates two devices (and redirects the open to the first): /dev/vkbdctl0=20 /dev/vkbd0 =20 Closing /dev/vkbdctl0 correctly removes the /dev/vkbd0 device but not the /dev/vkbdctl0 device itself. Should it also be removed? Possible fix: `unclone' (if possible) /dev/vkbdctl0 in vkbd_dev_close(). =20 Maybe a /dev/vkbdctl node should only be removed if no higher numbered nodes are in use? Then, presumably, all unopened lower numbered vkbdctl<= M> nodes should also be removed? =20 Currently /dev/vkbctl nodes are removed en masse via a call to clone_cleanup() when the driver is unloaded. 3. Each new open on /dev/vkbdctl creates and returns new /dev/vkbdctl devices with progressively higher values of N. Is this the proper behavi= our? =20 If not, possible fix: vkbd_dev_clone() should work upward from 0 looking for unopen /dev/vkbdctl0 nodes before calling clone_create(). =20 If necessary I will try to write a patch. Tim. --KsGdsel6WgEHnImy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFF4WhStKVK1sFb0ecRAuz0AJ4vlIhvbdzW5EfkfJCDCP0yLxmmRwCeKUnJ n7FtygX9uomHOqF1bb/lrTs= =1uEV -----END PGP SIGNATURE----- --KsGdsel6WgEHnImy-- From owner-freebsd-drivers@FreeBSD.ORG Tue Feb 27 07:28:12 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1477B16A400 for ; Tue, 27 Feb 2007 07:28:12 +0000 (UTC) (envelope-from abraham_aji@yahoo.co.in) Received: from web8325.mail.in.yahoo.com (web8325.mail.in.yahoo.com [202.43.219.176]) by mx1.freebsd.org (Postfix) with SMTP id 45C0013C49D for ; Tue, 27 Feb 2007 07:28:09 +0000 (UTC) (envelope-from abraham_aji@yahoo.co.in) Received: (qmail 59454 invoked by uid 60001); 27 Feb 2007 07:28:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Yy4NtsjdGckXaoc3lGGj/xI1/iV+cW52crXbs74C8vPym/AiJdFASC/hTI8KLGPif+drBwMjqgkWzRa145fULduJG/8t51HE5/ASSxVBL1dSFoqtqqcUad5+/u1iMf5ddK6I5oiaVDECCPKIPLSXO9XEUJFjJf2U/kyT54EmARs=; X-YMail-OSG: kdv7XbMVM1k_oP6qEVOwl3dbvcpNM8aNNgOKaHEVkDXJZ2Em9OOZMG084qX8S0DtFA-- Received: from [122.167.63.24] by web8325.mail.in.yahoo.com via HTTP; Tue, 27 Feb 2007 07:28:04 GMT Date: Tue, 27 Feb 2007 07:28:04 +0000 (GMT) From: aji abraham To: freebsd-drivers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <113829.58393.qm@web8325.mail.in.yahoo.com> Subject: mii functions X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 07:28:12 -0000 hi All is any one have the clear idea about the mii functions (1) mii_mediachg (2) mii_tick (3) mii_pollstat (4) mii_phy_probe & (1) struct mii_data Am also interested to know how we can get those functionality with out using them. if yes is their any ease way to port it to another Unix base OS. __________________________________________________________ Yahoo! India Answers: Share what you know. Learn something new http://in.answers.yahoo.com/ From owner-freebsd-drivers@FreeBSD.ORG Tue Feb 27 17:37:27 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC87616A402 for ; Tue, 27 Feb 2007 17:37:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 9EB5A13C442 for ; Tue, 27 Feb 2007 17:37:27 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id l1RHYTFd078053; Tue, 27 Feb 2007 10:34:29 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 27 Feb 2007 10:34:28 -0700 (MST) Message-Id: <20070227.103428.104094926.imp@bsdimp.com> To: abraham_aji@yahoo.co.in From: Warner Losh In-Reply-To: <113829.58393.qm@web8325.mail.in.yahoo.com> References: <113829.58393.qm@web8325.mail.in.yahoo.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 27 Feb 2007 10:34:29 -0700 (MST) Cc: freebsd-drivers@freebsd.org Subject: Re: mii functions X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 17:37:27 -0000 > is any one have the clear idea about the mii functions Yes. > (1) mii_mediachg > (2) mii_tick > (3) mii_pollstat > (4) mii_phy_probe > & > (1) struct mii_data I guess 'What is your question'? > Am also interested to know how we can get those > functionality with out using them. if yes is their any > ease way to port it to another Unix base OS. Not really. NIC drivers attach the PHY and have the PHY driver take care of things. If one wanted portability to other Unix drivers, then one would just ifdef out the extra code on FreeBSD the other unix systems would require, no? Warner From owner-freebsd-drivers@FreeBSD.ORG Wed Feb 28 15:32:07 2007 Return-Path: X-Original-To: freebsd-drivers@freebsd.org Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D1E916A402 for ; Wed, 28 Feb 2007 15:32:07 +0000 (UTC) (envelope-from telemetria@ukr.net) Received: from ffe1.ukr.net (ffe1.ukr.net [195.214.192.7]) by mx1.freebsd.org (Postfix) with ESMTP id 272C413C4AC for ; Wed, 28 Feb 2007 15:32:07 +0000 (UTC) (envelope-from telemetria@ukr.net) Received: from mail by ffe1.ukr.net with local ID 1HMQmj-0003tb-8D ; Wed, 28 Feb 2007 17:32:05 +0200 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="windows-1251" MIME-Version: 1.0 To: freebsd-drivers@freebsd.org From: "Alex" X-Life: is great, enjoy it! X-Mailer: freemail.ukr.net mPOP 3.3 X-Originating-Ip: 192.168.16.56, 195.114.135.114 via proxy [195.114.135.114] In-Reply-To: <20070227.103428.104094926.imp@bsdimp.com> X-Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Message-Id: Date: Wed, 28 Feb 2007 17:32:05 +0200 Cc: sos@FreeBSD.org Subject: VT6421 PATA Support X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2007 15:32:07 -0000 Greeting, There is Linux patch for support PATA mode VIA VT6421 at http://www.mail-archive.com/linux-ide@vger.kernel.org/msg02260.html. Is it any possibility add so patch to freebsd? (maybe in sys/dev/ata/ata-chipset.c). Now driver cannot detect any HDD, connected to PATA interface. From owner-freebsd-drivers@FreeBSD.ORG Wed Feb 28 17:19:11 2007 Return-Path: X-Original-To: freebsd-drivers@FreeBSD.ORG Delivered-To: freebsd-drivers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 36B0616A405; Wed, 28 Feb 2007 17:19:11 +0000 (UTC) (envelope-from sos@deepcore.dk) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.freebsd.org (Postfix) with ESMTP id B162413C428; Wed, 28 Feb 2007 17:19:10 +0000 (UTC) (envelope-from sos@deepcore.dk) Received: from [194.192.25.137] (ws.deepcore.dk [194.192.25.137]) by spider.deepcore.dk (8.13.8/8.13.8) with ESMTP id l1SHJ9on016999; Wed, 28 Feb 2007 18:19:09 +0100 (CET) (envelope-from sos@deepcore.dk) Message-ID: <45E5B98D.1000208@deepcore.dk> Date: Wed, 28 Feb 2007 18:19:09 +0100 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207) MIME-Version: 1.0 To: Alex References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-drivers@FreeBSD.ORG, sos@FreeBSD.ORG Subject: Re: VT6421 PATA Support X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2007 17:19:11 -0000 Alex wrote: > Greeting, > > There is Linux patch for support PATA mode VIA VT6421 at http://www.mail-archive.com/linux-ide@vger.kernel.org/msg02260.html. > Is it any possibility add so patch to freebsd? (maybe in sys/dev/ata/ata-chipset.c). > Now driver cannot detect any HDD, connected to PATA interface. > I've just received a 6421 based controller here in the lab, donated by Fabian Peters, support will emerge ASAP. -Søren