Subject: floppy on ultra1
To: None <port-sparc@netbsd.org>
From: Simon Gerraty <sjg@juniper.net>
List: port-sparc
Date: 06/28/2001 12:59:26
My ultra1 seems to be the only thing around with a floppy, so I tried
re-compiling my kernel... the following diff is needed to find fd.c,
but it doesn't compile:

Index: arch/sparc64/conf/files.sparc64
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/sparc64/conf/files.sparc64,v
retrieving revision 1.48
diff -u -r1.48 files.sparc64
--- arch/sparc64/conf/files.sparc64     2001/06/08 04:48:58     1.48
+++ arch/sparc64/conf/files.sparc64     2001/06/28 19:56:35
@@ -100,7 +100,7 @@
 # attach fdc at ebus
 device fd: disk
 attach fd at fdc
-file   dev/sun/fd.c                            fdc | fd needs-flag
+file   arch/sparc64/dev/fd.c                   fdc | fd needs-flag
 file   arch/sparc64/sparc64/bsd_fdintr.s       fdc
 
 attach audiocs at ebus with audiocs_ebus

As a data point, I get (srcs updated earlier today):

FYI
--sjg

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-main -Wno-uninitialized -Wa,-Av9a -mno-fpu -I. -I/share/sjg/work/NetBSD/current/src/sys/arch -I/share/sjg/work/NetBSD/current/src/sys -nostdinc -DSUN4U -DLKM -D_LP64 -DFDSCRIPTS -DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -Dsparc64   -c /share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c: In function `fdcmatch':
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:282: dereferencing pointer to incomplete type
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:293: dereferencing pointer to incomplete type
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:293: `BUS_MAIN' undeclared (first use in this function)
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:293: (Each undeclared identifier is reported only once
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:293: for each function it appears in.)
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:299: dereferencing pointer to incomplete type
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:299: `BUS_OBIO' undeclared (first use in this function)
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:303: dereferencing pointer to incomplete type
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:306: dereferencing pointer to incomplete type
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:307: dereferencing pointer to incomplete type
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c: In function `fdcattach':
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:376: dereferencing pointer to incomplete type
/share/sjg/work/NetBSD/current/src/sys/arch/sparc64/dev/fd.c:377: dereferencing pointer to incomplete type