From owner-cvs-all Wed Jan 31 10:44:41 2001 Delivered-To: cvs-all@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 0530D37B503; Wed, 31 Jan 2001 10:44:08 -0800 (PST) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.1/8.9.3) with ESMTP id f0VIbl315403; Wed, 31 Jan 2001 10:37:48 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Wed, 31 Jan 2001 10:43:14 -0800 (PST) From: John Baldwin To: Andrzej Bialecki Subject: Re: cvs commit: src/sys/dev/ata ata-disk.c Cc: peter@netplex.com.au, msmith@FreeBSD.org, mjacob@feral.com, sos@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Soren Schmidt Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 31-Jan-01 Andrzej Bialecki wrote: > On Tue, 30 Jan 2001, John Baldwin wrote: > >> >> On 30-Jan-01 Soren Schmidt wrote: >> > It seems Peter Wemm wrote: >> >> >> >> I had a sysctl to turn it on/off globally for all drives. I never got >> >> around >> >> to making it per-drive. >> >> >> >> A stale, very old version is at: >> >> http://people.freebsd.org/~peter/wce.diff >> >> >> >> Replicating the hw.atamodes dma/pio thing is probably the ticket though. >> > >> > And that is exactly what I have in the works for other things, and as >> > I said I'll add WCE to it, but in the meantime I think an option >> > will do just fine... >> >> Actually, having dynaic per-device sysctls such as: >> >> hw.ata.ad0.wce=1 >> hw.ata.ad0.mode=dma >> hw.ata.acd1.mode=pio >> ... >> etc. >> >> would be nice. > > Maybe what you want is the sysctl_add_oid(9)? Yes, dynamic sysctls (SYSCTL_ADD_*) is exactly what I'm hinting at, I'm just making a design suggestion, I know it can be done. See the recent addition of dynamic sysctls to pcm and acpi for example. :) > Andrzej Bialecki -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message