Sync with sys/i386/isa/wd.c revision 1.161.

This commit is contained in:
KATO Takenori 1998-04-25 04:27:54 +00:00
parent 3562d37f74
commit 012417733c

View File

@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)wd.c 7.2 (Berkeley) 5/9/91
* $Id: wd.c,v 1.48 1998/04/20 13:51:34 kato Exp $
* $Id: wd.c,v 1.49 1998/04/22 10:25:23 julian Exp $
*/
/* TODO:
@ -83,6 +83,7 @@
#ifdef SLICE
#include <sys/device.h>
#include <sys/fcntl.h>
#include <sys/sliceio.h>
#include <dev/slice/slice.h>
#else
#include <sys/devfsext.h>
@ -1068,6 +1069,11 @@ wdstart(int ctrlr)
blknum = transbad144(dsgetbad(bp->b_dev, du->dk_slices),
blknum - ds_offset) + ds_offset;
}
#else
if (du->dk_flags & DKFL_SINGLE) {
(void) (*du->slice->handler_up->upconf)(du->slice,
SLCIOCTRANSBAD, (caddr_t)&blknum, 0, 0);
}
#endif
wdtab[ctrlr].b_active = 1; /* mark controller active */
@ -2622,7 +2628,7 @@ wddump(dev_t dev)
static void
wderror(struct buf *bp, struct disk *du, char *mesg)
{
#ifndef SLICE
#ifdef SLICE
printf("wd%d: %s:\n", du->dk_lunit, mesg);
#else /* !SLICE */
if (bp == NULL)
@ -2916,7 +2922,7 @@ SYSINIT(wddev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,wd_drvinit,NULL)
* be a multiple of a sector in length.
*/
static void
wdsIOreq(void *private ,struct buf *bp)
wdsIOreq(void *private, struct buf *bp)
{
struct disk *du = private;
int s;