summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-07 05:22:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2007-06-07 05:22:33 +0000
commitb6e5dab82a52cac1a2a08f9c1840d091cc9381ab (patch)
treea586c3a0d63f4a60bf28413a197200b491d23c07 /sys
parent52c632660356012b59ddd7c11c70cb006b89f617 (diff)
more XXsize() functions not fixed
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/vax/mba/hp.c11
-rw-r--r--sys/arch/vax/mscp/mscp_disk.c10
-rw-r--r--sys/arch/vax/vsa/hdc9224.c4
3 files changed, 13 insertions, 12 deletions
diff --git a/sys/arch/vax/mba/hp.c b/sys/arch/vax/mba/hp.c
index a1216c49385..c7150c5f276 100644
--- a/sys/arch/vax/mba/hp.c
+++ b/sys/arch/vax/mba/hp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hp.c,v 1.17 2007/06/05 00:38:19 deraadt Exp $ */
+/* $OpenBSD: hp.c,v 1.18 2007/06/07 05:22:32 deraadt Exp $ */
/* $NetBSD: hp.c,v 1.22 2000/02/12 16:09:33 ragge Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -83,10 +83,10 @@ enum xfer_action hpfinish(struct mba_device *, int, int *);
int hpopen(dev_t, int, int);
int hpclose(dev_t, int, int);
int hpioctl(dev_t, u_long, caddr_t, int, struct proc *);
-int hpdump(dev_t, caddr_t, caddr_t, size_t);
+int hpdump(dev_t, daddr64_t, caddr_t, size_t);
int hpread(dev_t, struct uio *);
int hpwrite(dev_t, struct uio *);
-int hpsize(dev_t);
+daddr64_t hpsize(dev_t);
struct cfattach hp_ca = {
sizeof(struct hp_softc), hpmatch, hpattach
@@ -444,7 +444,7 @@ hpattn(md)
}
-int
+daddr64_t
hpsize(dev)
dev_t dev;
{
@@ -464,7 +464,8 @@ hpsize(dev)
int
hpdump(dev, a1, a2, size)
dev_t dev;
- caddr_t a1, a2;
+ daddr64_t a1;
+ caddr_t a2;
size_t size;
{
printf("hpdump: Not implemented yet.\n");
diff --git a/sys/arch/vax/mscp/mscp_disk.c b/sys/arch/vax/mscp/mscp_disk.c
index 454f35be0c0..28bfc85d9bc 100644
--- a/sys/arch/vax/mscp/mscp_disk.c
+++ b/sys/arch/vax/mscp/mscp_disk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mscp_disk.c,v 1.21 2007/06/06 17:15:13 deraadt Exp $ */
+/* $OpenBSD: mscp_disk.c,v 1.22 2007/06/07 05:22:32 deraadt Exp $ */
/* $NetBSD: mscp_disk.c,v 1.30 2001/11/13 07:38:28 lukem Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -111,7 +111,7 @@ int raread(dev_t, struct uio *);
int rawrite(dev_t, struct uio *);
int raioctl(dev_t, int, caddr_t, int, struct proc *);
int radump(dev_t, daddr64_t, caddr_t, size_t);
-int rasize(dev_t);
+daddr64_t rasize(dev_t);
int ra_putonline(struct ra_softc *);
struct cfattach ra_ca = {
@@ -428,7 +428,7 @@ radump(dev, blkno, va, size)
/*
* Return the size of a partition, if known, or -1 if not.
*/
-int
+daddr64_t
rasize(dev)
dev_t dev;
{
@@ -460,7 +460,7 @@ int rxread(dev_t, struct uio *);
int rxwrite(dev_t, struct uio *);
int rxioctl(dev_t, int, caddr_t, int, struct proc *);
int rxdump(dev_t, daddr64_t, caddr_t, size_t);
-int rxsize(dev_t);
+daddr64_t rxsize(dev_t);
struct cfattach rx_ca = {
sizeof(struct rx_softc), (cfmatch_t)rxmatch, rxattach
@@ -739,7 +739,7 @@ rxdump(dev, blkno, va, size)
return ENXIO;
}
-int
+daddr64_t
rxsize(dev)
dev_t dev;
{
diff --git a/sys/arch/vax/vsa/hdc9224.c b/sys/arch/vax/vsa/hdc9224.c
index 94696d9be4a..83f63928c50 100644
--- a/sys/arch/vax/vsa/hdc9224.c
+++ b/sys/arch/vax/vsa/hdc9224.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hdc9224.c,v 1.16 2007/06/06 17:15:13 deraadt Exp $ */
+/* $OpenBSD: hdc9224.c,v 1.17 2007/06/07 05:22:32 deraadt Exp $ */
/* $NetBSD: hdc9224.c,v 1.16 2001/07/26 15:05:09 wiz Exp $ */
/*
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
@@ -626,7 +626,7 @@ hdc_printgeom(p)
/*
* Return the size of a partition, if known, or -1 if not.
*/
-int
+daddr64_t
hdsize(dev_t dev)
{
struct hdsoftc *hd;