Date: Fri, 22 Sep 1995 23:13:37 +1000 From: Bruce Evans <bde@zeta.org.au> To: current@FreeBSD.org, josh@American.COM, vak@cronyx.ru Subject: Re: more ATAPI CD issues Message-ID: <199509221313.XAA07515@godzilla.zeta.org.au>
index | next in thread | raw e-mail
>> First, the current layering of wd.c is obviously not well suited to this >> configuration. Your ATAPI controller has to react a certain way to particular >> ATA commands to get to the point of being probed at all as an ATAPI CD. The 3 >> trials of ATA you must pass are 1) writable byte count / cyl. address >> registers, 2) successful wdreset(), and 3) successful WDCC_DIAGNOSE behavior. >> >> The first test is reasonable, for what its worth. >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. Has EIDE changed the required behaviour here? Brucehome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199509221313.XAA07515>
