Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 95 22:40:52 +0400
From:      vak@cronyx.ru
To:        bde@zeta.org.au, current@FreeBSD.org, josh@American.COM
Subject:   Re: more ATAPI CD issues
Message-ID:  <AAqCmOmWK0@crox.net.kiae.su>
References:  <199509221313.XAA07515@godzilla.zeta.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
>   >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                 <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?AAqCmOmWK0>