Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/stand/xxboot - use declarations in <lib/libsa/...
details: https://anonhg.NetBSD.org/src/rev/19b14519182b
branches: trunk
changeset: 782724:19b14519182b
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Nov 17 16:02:00 2012 +0000
description:
- use declarations in <lib/libsa/stand.h>
- remove __P() and some KNF
- remove extern variable decl
- use uintNN_t type
diffstat:
sys/arch/x68k/stand/xxboot/xx.c | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diffs (48 lines):
diff -r a91c82aab69b -r 19b14519182b sys/arch/x68k/stand/xxboot/xx.c
--- a/sys/arch/x68k/stand/xxboot/xx.c Sat Nov 17 15:59:28 2012 +0000
+++ b/sys/arch/x68k/stand/xxboot/xx.c Sat Nov 17 16:02:00 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xx.c,v 1.1 2012/03/20 13:01:32 minoura Exp $ */
+/* $NetBSD: xx.c,v 1.2 2012/11/17 16:02:00 tsutsui Exp $ */
/*
* Copyright (c) 2010 MINOURA Makoto.
@@ -26,31 +26,30 @@
*/
#include <sys/param.h>
+#include <lib/libsa/stand.h>
-struct open_file;
-extern void RAW_READ __P((void *buf, u_int32_t blkpos, size_t bytelen));
-int xxopen(struct open_file *);
-int xxclose(struct open_file *);
-int xxstrategy(void *, int, daddr_t, size_t, void *, size_t *);
+extern void RAW_READ(void *buf, uint32_t blkpos, size_t bytelen);
int
-xxopen(struct open_file *f)
+xxopen(struct open_file *f, ...)
{
+
return 0;
}
int
xxclose(struct open_file *f)
{
+
return 0;
}
-extern unsigned int SCSI_BLKLEN;
int
xxstrategy(void *arg, int rw, daddr_t dblk, size_t size,
void *buf, size_t *rsize)
{
- RAW_READ(buf, (u_int32_t)dblk, size);
+
+ RAW_READ(buf, (uint32_t)dblk, size);
if (rsize)
*rsize = size;
return 0;
Home |
Main Index |
Thread Index |
Old Index