Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 1995 22:06:23 +0400 (MSD)
From:      "Serge V.Vakulenko" <vak@crox.net.kiae.su>
To:        current@freebsd.org
Subject:   [patch] make wdprobe to recognize single-drive ATAPI CD-ROM configurations
Message-ID:  <Pine.BSF.3.91.950922220240.262A-100000@crox.net.kiae.su>

next in thread | raw e-mail | index | archive | help

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                 <vak@cronyx.msk.su>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.950922220240.262A-100000>