Date: Thu, 23 Mar 1995 21:51:25 -0800 From: PVinci@ix.netcom.com (Paul Vinciguerra) To: hackers@FreeBSD.org Subject: wdcommand() revisited .. Message-ID: <199503240551.VAA08032@ix3.ix.netcom.com>
next in thread | raw e-mail | index | archive | help
wdcommand ends as follows: outb(wdc + wd_command, command); return (0); } ATA states that we first have to check the status register to ensure command is ok. outb(wdc + wd_command, command); if ((inb(wdc +wd_status) & WDCS_ERR) != 0) return (-1) /* or whatever error correction */ return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503240551.VAA08032>