From owner-freebsd-current Fri Sep 22 11:13:31 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA12498 for current-outgoing; Fri, 22 Sep 1995 11:13:31 -0700 Received: from crox.net.kiae.su (crox.net.kiae.su [144.206.130.72]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id LAA12484 for ; Fri, 22 Sep 1995 11:13:23 -0700 Received: by crox.net.kiae.su id WAA00271; (8.6.9/vak/1.8a) Fri, 22 Sep 1995 22:06:23 +0400 Date: Fri, 22 Sep 1995 22:06:23 +0400 (MSD) From: "Serge V.Vakulenko" To: current@freebsd.org Subject: [patch] make wdprobe to recognize single-drive ATAPI CD-ROM configurations Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-current@freebsd.org Precedence: bulk After this patch my Wearnes 120A CD-ROM drive probes fine. And it seems unlikely to break anything. --- wd1.c Thu Sep 21 21:56:28 1995 +++ wd2.c Fri Sep 22 21:37:46 1995 @@ -299,6 +299,7 @@ wdc_registerdev(dvp); /* check if we have registers that work */ + outb(du->dk_port + wd_sdh, WDSD_IBM); /* select unit 0 */ outb(du->dk_port + wd_cyl_lo, 0xa5); /* wd_cyl_lo is read/write */ if (inb(du->dk_port + wd_cyl_lo) == 0xff) /* XXX too weak */ goto nodevice; Serge Vakulenko Cronyx Ltd., Moscow Unix consulting and custom programming phone: +7 (095) 939-23-23 FreeBSD support fax: +7 (095) 939-03-00 Relcom network development