mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-24 02:34:59 +00:00
Fetch the (dummy) READY CHANGED condition interrupt stati that
happen after an FDC reset. Submitted by: bde
This commit is contained in:
parent
d51a59611b
commit
0e317d05cc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14955
|
@ -43,7 +43,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.81 1996/03/28 14:28:37 scrappy Exp $
|
||||
* $Id: fd.c,v 1.82 1996/03/29 11:45:12 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -1595,6 +1595,13 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
|
|||
fdc->state = STARTRECAL;
|
||||
break;
|
||||
case STARTRECAL:
|
||||
/* XXX clear the fdc results from the last reset, if any. */
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 4; i++)
|
||||
(void)fd_sense_int(fdc, &st0, &cyl);
|
||||
}
|
||||
|
||||
if(fd_cmd(fdcu,
|
||||
2, NE7CMD_RECAL, fdu,
|
||||
0)) /* Recalibrate Function */
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.81 1996/03/28 14:28:37 scrappy Exp $
|
||||
* $Id: fd.c,v 1.82 1996/03/29 11:45:12 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -1595,6 +1595,13 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
|
|||
fdc->state = STARTRECAL;
|
||||
break;
|
||||
case STARTRECAL:
|
||||
/* XXX clear the fdc results from the last reset, if any. */
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 4; i++)
|
||||
(void)fd_sense_int(fdc, &st0, &cyl);
|
||||
}
|
||||
|
||||
if(fd_cmd(fdcu,
|
||||
2, NE7CMD_RECAL, fdu,
|
||||
0)) /* Recalibrate Function */
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
|
||||
* $Id: fd.c,v 1.81 1996/03/28 14:28:37 scrappy Exp $
|
||||
* $Id: fd.c,v 1.82 1996/03/29 11:45:12 bde Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -1595,6 +1595,13 @@ fdstate(fdcu_t fdcu, fdc_p fdc)
|
|||
fdc->state = STARTRECAL;
|
||||
break;
|
||||
case STARTRECAL:
|
||||
/* XXX clear the fdc results from the last reset, if any. */
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < 4; i++)
|
||||
(void)fd_sense_int(fdc, &st0, &cyl);
|
||||
}
|
||||
|
||||
if(fd_cmd(fdcu,
|
||||
2, NE7CMD_RECAL, fdu,
|
||||
0)) /* Recalibrate Function */
|
||||
|
|
Loading…
Reference in a new issue