summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-05-13 07:30:28 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-05-13 07:30:28 +0000
commit010cf40c8489f1dc39784741b021522115923f9e (patch)
treef13404491fe2a915892176758c61533ed68d5f13 /sys/arch/vax
parent763973eaa8f9842f3ee719cf88f1d008d209f0d8 (diff)
Use DEV_BSIZE instead of the wasteful MAXBSIZE for buffer size.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/boot/bootxx.c3
-rw-r--r--sys/arch/vax/boot/hp.c4
-rw-r--r--sys/arch/vax/boot/mfm.c6
-rw-r--r--sys/arch/vax/boot/ra.c4
-rw-r--r--sys/arch/vax/boot/rom.c4
-rw-r--r--sys/arch/vax/boot/sd.c4
-rw-r--r--sys/arch/vax/stand/bootxx.c3
-rw-r--r--sys/arch/vax/stand/hp.c4
-rw-r--r--sys/arch/vax/stand/mfm.c6
-rw-r--r--sys/arch/vax/stand/ra.c4
-rw-r--r--sys/arch/vax/stand/rom.c4
-rw-r--r--sys/arch/vax/stand/sd.c4
12 files changed, 24 insertions, 26 deletions
diff --git a/sys/arch/vax/boot/bootxx.c b/sys/arch/vax/boot/bootxx.c
index ab794a78b6b..5cdc2246964 100644
--- a/sys/arch/vax/boot/bootxx.c
+++ b/sys/arch/vax/boot/bootxx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bootxx.c,v 1.7 1998/05/11 07:36:27 niklas Exp $ */
+/* $OpenBSD: bootxx.c,v 1.8 1998/05/13 07:30:21 niklas Exp $ */
/* $NetBSD: bootxx.c,v 1.11 1997/06/08 17:49:17 ragge Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -250,7 +250,6 @@ int nfsys = (sizeof(file_system) / sizeof(struct fs_ops));
struct disklabel lp;
int part_off = 0; /* offset into partition holding /boot */
-char io_buf[MAXBSIZE];
volatile struct uda {
struct mscp_1ca uda_ca; /* communications area */
struct mscp uda_rsp; /* response packets */
diff --git a/sys/arch/vax/boot/hp.c b/sys/arch/vax/boot/hp.c
index 4886516ed19..80d5d8ac56b 100644
--- a/sys/arch/vax/boot/hp.c
+++ b/sys/arch/vax/boot/hp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hp.c,v 1.3 1997/05/29 00:04:22 niklas Exp $ */
+/* $OpenBSD: hp.c,v 1.4 1998/05/13 07:30:22 niklas Exp $ */
/* $NetBSD: hp.c,v 1.5 1996/02/17 18:23:22 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -63,7 +63,7 @@ struct hp_softc {
struct disklabel hplabel;
struct hp_softc hp_softc;
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
daddr_t part_offset;
hpopen(f, adapt, ctlr, unit, part)
diff --git a/sys/arch/vax/boot/mfm.c b/sys/arch/vax/boot/mfm.c
index 65f05f1c0b6..20465089651 100644
--- a/sys/arch/vax/boot/mfm.c
+++ b/sys/arch/vax/boot/mfm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfm.c,v 1.3 1998/02/03 11:48:27 maja Exp $ */
+/* $OpenBSD: mfm.c,v 1.4 1998/05/13 07:30:23 niklas Exp $ */
/* $NetBSD: mfm.c,v 1.2 1997/03/15 13:04:28 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -72,7 +72,7 @@ struct mfm_softc {
int mfmstrategy(), mfmopen();
struct disklabel mfmlabel;
struct mfm_softc mfm_softc;
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
/*
* These should probably be somewhere else, but ka410 is the only
@@ -384,7 +384,7 @@ mfmopen(f, adapt, ctlr, unit, part)
struct mfm_xbn *xp;
/* mfmstrategy(msc, F_READ, -16, 8192, io_buf, &i); */
- mfmstrategy(msc, F_READ, -16, 512, io_buf, &i);
+ mfmstrategy(msc, F_READ, -16, DEV_BSIZE, io_buf, &i);
#ifdef verbose
printf("dumping raw disk-block #0:\n");
ucp = io_buf;
diff --git a/sys/arch/vax/boot/ra.c b/sys/arch/vax/boot/ra.c
index 0c16abf8b3c..c349d2ec463 100644
--- a/sys/arch/vax/boot/ra.c
+++ b/sys/arch/vax/boot/ra.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ra.c,v 1.4 1997/05/29 00:04:24 niklas Exp $ */
+/* $OpenBSD: ra.c,v 1.5 1998/05/13 07:30:24 niklas Exp $ */
/* $NetBSD: ra.c,v 1.5 1996/08/02 11:22:18 ragge Exp $ */
/*
* Copyright (c) 1995 Ludd, University of Lule}, Sweden.
@@ -85,7 +85,7 @@ volatile struct uda *ubauda;
volatile struct udadevice *udacsr;
struct disklabel ralabel;
struct ra_softc ra_softc;
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
raopen(f, adapt, ctlr, unit, part)
struct open_file *f;
diff --git a/sys/arch/vax/boot/rom.c b/sys/arch/vax/boot/rom.c
index cdbd70f545b..1e14e6049a4 100644
--- a/sys/arch/vax/boot/rom.c
+++ b/sys/arch/vax/boot/rom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rom.c,v 1.2 1997/05/29 00:04:24 niklas Exp $ */
+/* $OpenBSD: rom.c,v 1.3 1998/05/13 07:30:26 niklas Exp $ */
/* $NetBSD: rom.c,v 1.1 1996/08/02 11:22:21 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -61,7 +61,7 @@ struct rom_softc {
int romstrategy(), romopen();
struct disklabel romlabel;
struct rom_softc rom_softc;
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
romopen(f, adapt, ctlr, unit, part)
struct open_file *f;
diff --git a/sys/arch/vax/boot/sd.c b/sys/arch/vax/boot/sd.c
index d3098b99b3b..72b5318cecc 100644
--- a/sys/arch/vax/boot/sd.c
+++ b/sys/arch/vax/boot/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.2 1997/05/29 00:04:26 niklas Exp $ */
+/* $OpenBSD: sd.c,v 1.3 1998/05/13 07:30:27 niklas Exp $ */
/* $NetBSD: sd.c,v 1.1 1996/08/02 11:22:36 ragge Exp $ */
/*
@@ -135,7 +135,7 @@ sdreset(ctlr, unit)
{
}
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
sdgetinfo(ss)
register struct sd_softc *ss;
diff --git a/sys/arch/vax/stand/bootxx.c b/sys/arch/vax/stand/bootxx.c
index ab794a78b6b..5cdc2246964 100644
--- a/sys/arch/vax/stand/bootxx.c
+++ b/sys/arch/vax/stand/bootxx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bootxx.c,v 1.7 1998/05/11 07:36:27 niklas Exp $ */
+/* $OpenBSD: bootxx.c,v 1.8 1998/05/13 07:30:21 niklas Exp $ */
/* $NetBSD: bootxx.c,v 1.11 1997/06/08 17:49:17 ragge Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -250,7 +250,6 @@ int nfsys = (sizeof(file_system) / sizeof(struct fs_ops));
struct disklabel lp;
int part_off = 0; /* offset into partition holding /boot */
-char io_buf[MAXBSIZE];
volatile struct uda {
struct mscp_1ca uda_ca; /* communications area */
struct mscp uda_rsp; /* response packets */
diff --git a/sys/arch/vax/stand/hp.c b/sys/arch/vax/stand/hp.c
index 4886516ed19..80d5d8ac56b 100644
--- a/sys/arch/vax/stand/hp.c
+++ b/sys/arch/vax/stand/hp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hp.c,v 1.3 1997/05/29 00:04:22 niklas Exp $ */
+/* $OpenBSD: hp.c,v 1.4 1998/05/13 07:30:22 niklas Exp $ */
/* $NetBSD: hp.c,v 1.5 1996/02/17 18:23:22 ragge Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -63,7 +63,7 @@ struct hp_softc {
struct disklabel hplabel;
struct hp_softc hp_softc;
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
daddr_t part_offset;
hpopen(f, adapt, ctlr, unit, part)
diff --git a/sys/arch/vax/stand/mfm.c b/sys/arch/vax/stand/mfm.c
index 65f05f1c0b6..20465089651 100644
--- a/sys/arch/vax/stand/mfm.c
+++ b/sys/arch/vax/stand/mfm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfm.c,v 1.3 1998/02/03 11:48:27 maja Exp $ */
+/* $OpenBSD: mfm.c,v 1.4 1998/05/13 07:30:23 niklas Exp $ */
/* $NetBSD: mfm.c,v 1.2 1997/03/15 13:04:28 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -72,7 +72,7 @@ struct mfm_softc {
int mfmstrategy(), mfmopen();
struct disklabel mfmlabel;
struct mfm_softc mfm_softc;
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
/*
* These should probably be somewhere else, but ka410 is the only
@@ -384,7 +384,7 @@ mfmopen(f, adapt, ctlr, unit, part)
struct mfm_xbn *xp;
/* mfmstrategy(msc, F_READ, -16, 8192, io_buf, &i); */
- mfmstrategy(msc, F_READ, -16, 512, io_buf, &i);
+ mfmstrategy(msc, F_READ, -16, DEV_BSIZE, io_buf, &i);
#ifdef verbose
printf("dumping raw disk-block #0:\n");
ucp = io_buf;
diff --git a/sys/arch/vax/stand/ra.c b/sys/arch/vax/stand/ra.c
index 0c16abf8b3c..c349d2ec463 100644
--- a/sys/arch/vax/stand/ra.c
+++ b/sys/arch/vax/stand/ra.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ra.c,v 1.4 1997/05/29 00:04:24 niklas Exp $ */
+/* $OpenBSD: ra.c,v 1.5 1998/05/13 07:30:24 niklas Exp $ */
/* $NetBSD: ra.c,v 1.5 1996/08/02 11:22:18 ragge Exp $ */
/*
* Copyright (c) 1995 Ludd, University of Lule}, Sweden.
@@ -85,7 +85,7 @@ volatile struct uda *ubauda;
volatile struct udadevice *udacsr;
struct disklabel ralabel;
struct ra_softc ra_softc;
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
raopen(f, adapt, ctlr, unit, part)
struct open_file *f;
diff --git a/sys/arch/vax/stand/rom.c b/sys/arch/vax/stand/rom.c
index cdbd70f545b..1e14e6049a4 100644
--- a/sys/arch/vax/stand/rom.c
+++ b/sys/arch/vax/stand/rom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rom.c,v 1.2 1997/05/29 00:04:24 niklas Exp $ */
+/* $OpenBSD: rom.c,v 1.3 1998/05/13 07:30:26 niklas Exp $ */
/* $NetBSD: rom.c,v 1.1 1996/08/02 11:22:21 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -61,7 +61,7 @@ struct rom_softc {
int romstrategy(), romopen();
struct disklabel romlabel;
struct rom_softc rom_softc;
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
romopen(f, adapt, ctlr, unit, part)
struct open_file *f;
diff --git a/sys/arch/vax/stand/sd.c b/sys/arch/vax/stand/sd.c
index d3098b99b3b..72b5318cecc 100644
--- a/sys/arch/vax/stand/sd.c
+++ b/sys/arch/vax/stand/sd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sd.c,v 1.2 1997/05/29 00:04:26 niklas Exp $ */
+/* $OpenBSD: sd.c,v 1.3 1998/05/13 07:30:27 niklas Exp $ */
/* $NetBSD: sd.c,v 1.1 1996/08/02 11:22:36 ragge Exp $ */
/*
@@ -135,7 +135,7 @@ sdreset(ctlr, unit)
{
}
-char io_buf[MAXBSIZE];
+char io_buf[DEV_BSIZE];
sdgetinfo(ss)
register struct sd_softc *ss;