diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-22 00:40:03 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-01-22 00:40:03 +0000 |
commit | 22c9c3850c0937b005b1a8552095891e59df87c2 (patch) | |
tree | e3633a0c9690c06d26a567eb2f2c6e937c26db61 /sys/arch/sparc | |
parent | 2122cf052cb864c6d41447b67783028f0ee3a145 (diff) |
b_cylin -> b_cylinder; no functional change.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/dev/fd.c | 20 | ||||
-rw-r--r-- | sys/arch/sparc/sparc/disksubr.c | 8 |
2 files changed, 12 insertions, 16 deletions
diff --git a/sys/arch/sparc/dev/fd.c b/sys/arch/sparc/dev/fd.c index 2ad2d5fa5a1..47f01a2a5af 100644 --- a/sys/arch/sparc/dev/fd.c +++ b/sys/arch/sparc/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.42 2005/08/14 10:58:33 miod Exp $ */ +/* $OpenBSD: fd.c,v 1.43 2006/01/22 00:40:02 miod Exp $ */ /* $NetBSD: fd.c,v 1.51 1997/05/24 20:16:19 pk Exp $ */ /*- @@ -117,8 +117,6 @@ /* XXX misuse a flag to identify format operation */ #define B_FORMAT B_XXX -#define b_cylin b_resid - #ifdef FD_DEBUG int fdc_debug = 0; #endif @@ -744,13 +742,13 @@ fdstrategy(bp) bp->b_bcount = sz << DEV_BSHIFT; } - bp->b_cylin = (bp->b_blkno * DEV_BSIZE) / + bp->b_cylinder = (bp->b_blkno * DEV_BSIZE) / (FD_BSIZE(fd) * fd->sc_type->seccyl); #ifdef FD_DEBUG if (fdc_debug > 1) printf("fdstrategy: b_blkno %d b_bcount %ld blkno %d cylin %ld\n", - bp->b_blkno, bp->b_bcount, fd->sc_blkno, bp->b_cylin); + bp->b_blkno, bp->b_bcount, fd->sc_blkno, bp->b_cylinder); #endif /* Queue transfer on drive, activate drive and controller if idle. */ @@ -1356,12 +1354,12 @@ loop: doseek: if ((fdc->sc_flags & FDC_EIS) && (bp->b_flags & B_FORMAT) == 0) { - fd->sc_cylin = bp->b_cylin; + fd->sc_cylin = bp->b_cylinder; /* We use implied seek */ goto doio; } - if (fd->sc_cylin == bp->b_cylin) + if (fd->sc_cylin == bp->b_cylinder) goto doio; fd->sc_cylin = -1; @@ -1383,7 +1381,7 @@ loop: /* seek function */ FDC_WRFIFO(fdc, NE7CMD_SEEK); FDC_WRFIFO(fdc, fd->sc_drive); /* drive number */ - FDC_WRFIFO(fdc, bp->b_cylin * fd->sc_type->step); + FDC_WRFIFO(fdc, bp->b_cylinder * fd->sc_type->step); return (1); @@ -1474,7 +1472,7 @@ loop: /* Make sure seek really happened. */ if (fdc->sc_nstat != 2 || (st0 & 0xf8) != 0x20 || - cyl != bp->b_cylin * fd->sc_type->step) { + cyl != bp->b_cylinder * fd->sc_type->step) { #ifdef FD_DEBUG if (fdc_debug) fdcstatus(fdc, "seek failed"); @@ -1482,7 +1480,7 @@ loop: fdcretry(fdc); goto loop; } - fd->sc_cylin = bp->b_cylin; + fd->sc_cylin = bp->b_cylinder; goto doio; case IOTIMEDOUT: @@ -1590,7 +1588,7 @@ loop: fd->sc_skip += fd->sc_nbytes; fd->sc_bcount -= fd->sc_nbytes; if (finfo == NULL && fd->sc_bcount > 0) { - bp->b_cylin = fd->sc_blkno / fd->sc_type->seccyl; + bp->b_cylinder = fd->sc_blkno / fd->sc_type->seccyl; goto doseek; } fdfinish(fd, bp); diff --git a/sys/arch/sparc/sparc/disksubr.c b/sys/arch/sparc/sparc/disksubr.c index 11ea0a143b4..65a63d00316 100644 --- a/sys/arch/sparc/sparc/disksubr.c +++ b/sys/arch/sparc/sparc/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.35 2006/01/20 23:27:25 miod Exp $ */ +/* $OpenBSD: disksubr.c,v 1.36 2006/01/22 00:40:02 miod Exp $ */ /* $NetBSD: disksubr.c,v 1.16 1996/04/28 20:25:59 thorpej Exp $ */ /* @@ -53,8 +53,6 @@ static char *disklabel_sun_to_bsd(char *, struct disklabel *); static int disklabel_bsd_to_sun(struct disklabel *, char *); static __inline u_long sun_extended_sum(struct sun_disklabel *); -#define b_cylin b_resid - extern struct device *bootdv; /* @@ -171,7 +169,7 @@ readdisklabel(dev, strat, lp, clp, spoofonly) /* next, dig out disk label */ bp->b_dev = dev; bp->b_blkno = LABELSECTOR; - bp->b_cylin = 0; + bp->b_cylinder = 0; bp->b_bcount = lp->d_secsize; bp->b_flags = B_BUSY | B_READ; (*strat)(bp); @@ -302,7 +300,7 @@ writedisklabel(dev, strat, lp, clp) /* Write out the updated label. */ bp->b_dev = dev; bp->b_blkno = LABELSECTOR; - bp->b_cylin = 0; + bp->b_cylinder = 0; bp->b_bcount = lp->d_secsize; bp->b_flags = B_WRITE; (*strat)(bp); |