Module Name: src
Committed By: tsutsui
Date: Sat Nov 17 16:02:00 UTC 2012
Modified Files:
src/sys/arch/x68k/stand/xxboot: xx.c
Log Message:
- use declarations in <lib/libsa/stand.h>
- remove __P() and some KNF
- remove extern variable decl
- use uintNN_t type
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/x68k/stand/xxboot/xx.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/x68k/stand/xxboot/xx.c
diff -u src/sys/arch/x68k/stand/xxboot/xx.c:1.1 src/sys/arch/x68k/stand/xxboot/xx.c:1.2
--- src/sys/arch/x68k/stand/xxboot/xx.c:1.1 Tue Mar 20 13:01:32 2012
+++ src/sys/arch/x68k/stand/xxboot/xx.c Sat Nov 17 16:02:00 2012
@@ -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;