From owner-freebsd-current Fri Sep 22 11:47:57 1995 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id LAA13800 for current-outgoing; Fri, 22 Sep 1995 11:47:57 -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 LAA13789 for ; Fri, 22 Sep 1995 11:47:37 -0700 Received: by crox.net.kiae.su id WAA00337; (8.6.9/vak/1.8a) Fri, 22 Sep 1995 22:40:52 +0400 To: bde@zeta.org.au, current@FreeBSD.org, josh@American.COM References: <199509221313.XAA07515@godzilla.zeta.org.au> Message-ID: Organization: Cronyx Ltd. Date: Fri, 22 Sep 95 22:40:52 +0400 X-Mailer: BML [UNIX Beauty Mail v.1.39] From: vak@cronyx.ru Subject: Re: more ATAPI CD issues Sender: owner-current@FreeBSD.org Precedence: bulk > >This test could fail for single-drive configurations. > >The driver does not set the drive unit number to 0 before testing > >the cylinder register. If the BIOS leaves it set to 1, then the test > >will fail... > > I tried toggling the drive select bit (in a debugger with interrupts > off) on a single-drive IDE system and the test continued to work. The > status register changed from 0x50 to 0x00 (0x00 for the nonexistent > drive) and the cyl_lo register held values written to it. The altsts > register did not change from 0xf0. I tested it from the other end: my new CD-ROM drive (Wearnes 120A) failed on the cyl_lo check. I added the unit 0 select before it: outb(du->dk_port + wd_sdh, WDSD_IBM); Now it works fine. (The patch is posted to freebsd-current) Serge --- 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