summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2011-03-13 00:13:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2011-03-13 00:13:54 +0000
commit498cf2cbf80b299bf6c21307d98f424374b5b18c (patch)
tree8553045f12ef69e9aaafd5e8e87dfa1fbe23c284 /sys/arch/hppa64
parent87ac327e012b105ceaf428b26525cfa462ccd835 (diff)
Change daddr_t to daddr32_t. The bootblocks on our architectures only
do 32-bit block spanning. If later on we get some that can/should do 64-bit, that can be done now using daddr64_t (but of course, we are taking this step to finalize the daddr_t 64-bit conversion). ok miod krw
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r--sys/arch/hppa64/stand/libsa/dev_hppa64.h6
-rw-r--r--sys/arch/hppa64/stand/libsa/libsa.h6
-rw-r--r--sys/arch/hppa64/stand/libsa/pdc.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/hppa64/stand/libsa/dev_hppa64.h b/sys/arch/hppa64/stand/libsa/dev_hppa64.h
index a47daa2173a..1a019cb872d 100644
--- a/sys/arch/hppa64/stand/libsa/dev_hppa64.h
+++ b/sys/arch/hppa64/stand/libsa/dev_hppa64.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev_hppa64.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+/* $OpenBSD: dev_hppa64.h,v 1.2 2011/03/13 00:13:52 deraadt Exp $ */
#define IOPGSHIFT 11
@@ -9,8 +9,8 @@ struct disklabel;
struct hppa_dev {
dev_t bootdev;
struct pz_device *pz_dev; /* device descriptor */
- daddr_t fsoff; /* offset to the file system */
- daddr_t last_blk; /* byte offset for last read blk */
+ daddr32_t fsoff; /* offset to the file system */
+ daddr32_t last_blk; /* byte offset for last read blk */
size_t last_read; /* amount read last time */
struct disklabel *label;
/* buffer to cache data (aligned properly) */
diff --git a/sys/arch/hppa64/stand/libsa/libsa.h b/sys/arch/hppa64/stand/libsa/libsa.h
index 9952a35a383..148fa7a2076 100644
--- a/sys/arch/hppa64/stand/libsa/libsa.h
+++ b/sys/arch/hppa64/stand/libsa/libsa.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: libsa.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+/* $OpenBSD: libsa.h,v 1.2 2011/03/13 00:13:52 deraadt Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -30,7 +30,7 @@ void pdc_init(void);
struct pz_device;
struct pz_device *pdc_findev(int, int);
-int iodcstrategy(void *, int, daddr_t, size_t, void *, size_t *);
+int iodcstrategy(void *, int, daddr32_t, size_t, void *, size_t *);
int ctopen(struct open_file *, ...);
int ctclose(struct open_file *);
@@ -39,7 +39,7 @@ int dkopen(struct open_file *, ...);
int dkclose(struct open_file *);
int lfopen(struct open_file *, ...);
-int lfstrategy(void *, int, daddr_t, size_t, void *, size_t *);
+int lfstrategy(void *, int, daddr32_t, size_t, void *, size_t *);
int lfclose(struct open_file *);
void ite_probe(struct consdev *);
diff --git a/sys/arch/hppa64/stand/libsa/pdc.c b/sys/arch/hppa64/stand/libsa/pdc.c
index 1569c52a1dd..5ff24400bb8 100644
--- a/sys/arch/hppa64/stand/libsa/pdc.c
+++ b/sys/arch/hppa64/stand/libsa/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+/* $OpenBSD: pdc.c,v 1.2 2011/03/13 00:13:52 deraadt Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -119,7 +119,7 @@ int
iodcstrategy(devdata, rw, blk, size, buf, rsize)
void *devdata;
int rw;
- daddr_t blk;
+ daddr32_t blk;
size_t size;
void *buf;
size_t *rsize;