From owner-freebsd-hardware Mon Apr 1 17:37:33 1996 Return-Path: owner-hardware Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA21290 for hardware-outgoing; Mon, 1 Apr 1996 17:37:33 -0800 (PST) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id RAA21239 for ; Mon, 1 Apr 1996 17:36:13 -0800 (PST) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id LAA08971; Tue, 2 Apr 1996 11:25:58 +0930 From: Michael Smith Message-Id: <199604020155.LAA08971@genesis.atrad.adelaide.edu.au> Subject: Re: Some solutions to disk problems.... I think. To: Brett_Glass@ccgate.infoworld.com (Brett Glass) Date: Tue, 2 Apr 1996 11:25:58 +0930 (CST) Cc: Brett_Glass@ccgate.infoworld.com, jkh@time.cdrom.com, hardware@freebsd.org In-Reply-To: <9603018283.AA828371256@ccgate.infoworld.com> from "Brett Glass" at Mar 31, 96 08:10:32 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hardware@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Brett Glass stands accused of saying: > > The code should probably be activated by flags (one per drive for each IDE > interface). What is the proper procedure for implementing and assigning a > device driver flag, and making sure that there are no conflicts? Are any > flag bits reserved in FreeBSD disk drivers? Don't do it this way, particularly since you are adding a command to activate a vendor-specific function. You should create a rogues table, and define your Seagate fix as a 'rogue feature', triggered by the drive id in wdattach(). If the feature were _standard_, then you might want to look at a simple wdcontrol utility and a set of ioctls. > --Brett -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[