From owner-cvs-all Wed Feb 28 20:49:31 2001 Delivered-To: cvs-all@freebsd.org Received: from mobile.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id 3B94937B71A; Wed, 28 Feb 2001 20:49:19 -0800 (PST) (envelope-from peter@netplex.com.au) Received: from netplex.com.au (localhost [127.0.0.1]) by mobile.wemm.org (8.11.1/8.11.1) with ESMTP id f214nI746879; Wed, 28 Feb 2001 20:49:18 -0800 (PST) (envelope-from peter@netplex.com.au) Message-Id: <200103010449.f214nI746879@mobile.wemm.org> X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.4 To: Matt Jacob Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/isp isp_pci.c In-Reply-To: <200103010221.f212LbH72135@freefall.freebsd.org> Date: Wed, 28 Feb 2001 20:49:18 -0800 From: Peter Wemm Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matt Jacob wrote: > mjacob 2001/02/28 18:21:37 PST > > Modified files: > sys/dev/isp isp_pci.c > Log: > Eliminate the use of the getenv_int stuff we'd been using (with a bitmap > for selecting unit). Instead, use the resource hints mechanism. > > One unfortunate situation here is that there is no resource_quad_value > function- which is what I needed for WWN boot time replacement. Worse- > you can't store the hint as just plain > > hint.isp.0.nodewwn="0x50000000aaaa0001" > > because this gets interpreted as an int- incorrectly because it can't > be converted to an int. I can't even get this as a string. I have got a drastically overhauled version of this stuff kicking around somewhere.. one of the key changes was to hang onto the ascii and defer typing until it was requested by the caller. Ie: if you asked for an int, you would get an int represenation. Ask for a string and it would give you the string (even if it looked like an int to the resource functions). Adding a quad form to that would be trivial. I will see if I can find it again.. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message