Tue Jan 22 15:48:40 2013 UTC ()
Whitespace cleanup.


(tsutsui)
diff -r1.8 -r1.9 src/sys/arch/luna68k/stand/boot/Makefile
diff -r1.8 -r1.9 src/sys/arch/luna68k/stand/boot/locore.S
diff -r1.8 -r1.9 src/sys/arch/luna68k/stand/boot/samachdep.h
diff -r1.6 -r1.7 src/sys/arch/luna68k/stand/boot/autoconf.c
diff -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/disklabel.c
diff -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/if_le.c
diff -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/omron_disklabel.h
diff -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/prf.c
diff -r1.3 -r1.4 src/sys/arch/luna68k/stand/boot/parse.c
diff -r1.3 -r1.4 src/sys/arch/luna68k/stand/boot/sc.c
diff -r1.1 -r1.2 src/sys/arch/luna68k/stand/boot/scsireg.h
diff -r1.4 -r1.5 src/sys/arch/luna68k/stand/boot/sd.c

cvs diff -r1.8 -r1.9 src/sys/arch/luna68k/stand/boot/Makefile (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/Makefile 2013/01/21 11:58:12 1.8
+++ src/sys/arch/luna68k/stand/boot/Makefile 2013/01/22 15:48:40 1.9
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.8 2013/01/21 11:58:12 tsutsui Exp $ 1# $NetBSD: Makefile,v 1.9 2013/01/22 15:48:40 tsutsui Exp $
2# @(#)Makefile 8.2 (Berkeley) 8/15/93 2# @(#)Makefile 8.2 (Berkeley) 8/15/93
3 3
4NOMAN= # defined 4NOMAN= # defined
5 5
6.include <bsd.own.mk> 6.include <bsd.own.mk>
7.include <bsd.sys.mk> 7.include <bsd.sys.mk>
8 8
9S= ${.CURDIR}/../../../.. 9S= ${.CURDIR}/../../../..
10LIBSADIR= ${S}/lib/libsa 10LIBSADIR= ${S}/lib/libsa
11 11
12CPPFLAGS+= -nostdinc -D_STANDALONE 12CPPFLAGS+= -nostdinc -D_STANDALONE
13CPPFLAGS+= -I${.CURDIR} -I${.OBJDIR} -I${S} -I${S}/arch 13CPPFLAGS+= -I${.CURDIR} -I${.OBJDIR} -I${S} -I${S}/arch
14 14
@@ -27,27 +27,27 @@ CFLAGS+= -Wall -Werror @@ -27,27 +27,27 @@ CFLAGS+= -Wall -Werror
27CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith 27CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
28CFLAGS+= -Wno-pointer-sign 28CFLAGS+= -Wno-pointer-sign
29 29
30TEXTADDR= 700000 30TEXTADDR= 700000
31LDSCRIPT= ${.CURDIR}/boot.ldscript 31LDSCRIPT= ${.CURDIR}/boot.ldscript
32LINKFORMAT= -static -N -Ttext ${TEXTADDR} -T ${LDSCRIPT} 32LINKFORMAT= -static -N -Ttext ${TEXTADDR} -T ${LDSCRIPT}
33 33
34SRCS= locore.S 34SRCS= locore.S
35SRCS+= init_main.c autoconf.c ioconf.c 35SRCS+= init_main.c autoconf.c ioconf.c
36SRCS+= trap.c 36SRCS+= trap.c
37SRCS+= devopen.c 37SRCS+= devopen.c
38SRCS+= conf.c 38SRCS+= conf.c
39SRCS+= machdep.c 39SRCS+= machdep.c
40SRCS+= getline.c parse.c  40SRCS+= getline.c parse.c
41SRCS+= boot.c 41SRCS+= boot.c
42SRCS+= cons.c prf.c awaitkey.c 42SRCS+= cons.c prf.c awaitkey.c
43SRCS+= romcons.c 43SRCS+= romcons.c
44SRCS+= sio.c 44SRCS+= sio.c
45SRCS+= bmc.c bmd.c screen.c font.c kbd.c 45SRCS+= bmc.c bmd.c screen.c font.c kbd.c
46SRCS+= scsi.c sc.c sd.c 46SRCS+= scsi.c sc.c sd.c
47#SRCS+= st.c tape.c 47#SRCS+= st.c tape.c
48SRCS+= disklabel.c 48SRCS+= disklabel.c
49#SRCS+= fsdump.c 49#SRCS+= fsdump.c
50SRCS+= ufs_disksubr.c 50SRCS+= ufs_disksubr.c
51SRCS+= ls.c 51SRCS+= ls.c
52 52
53# netboot support 53# netboot support

cvs diff -r1.8 -r1.9 src/sys/arch/luna68k/stand/boot/locore.S (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/locore.S 2013/01/21 11:58:12 1.8
+++ src/sys/arch/luna68k/stand/boot/locore.S 2013/01/22 15:48:40 1.9
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: locore.S,v 1.8 2013/01/21 11:58:12 tsutsui Exp $ */ 1/* $NetBSD: locore.S,v 1.9 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1992 OMRON Corporation. 4 * Copyright (c) 1992 OMRON Corporation.
5 * 5 *
6 * This code is derived from software contributed to Berkeley by 6 * This code is derived from software contributed to Berkeley by
7 * OMRON Corporation. 7 * OMRON Corporation.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -277,27 +277,27 @@ Lstart0: @@ -277,27 +277,27 @@ Lstart0:
277 ROM_VBR = 0 277 ROM_VBR = 0
278 278
279ENTRY_NOPROFILE(exit) 279ENTRY_NOPROFILE(exit)
280GLOBAL(_rtt) 280GLOBAL(_rtt)
281 movw #PSL_HIGHIPL,%sr | no interrupts 281 movw #PSL_HIGHIPL,%sr | no interrupts
282 movl #ROM_VBR,%a0 282 movl #ROM_VBR,%a0
283 movec %a0,%vbr 283 movec %a0,%vbr
284 movl #_ASM_LABEL(gotoROM),%a0 284 movl #_ASM_LABEL(gotoROM),%a0
285 movl %a0@,%a1 285 movl %a0@,%a1
286 jmp %a1@ 286 jmp %a1@
287 287
288/* 288/*
289 * Trap/interrupt vector routines 289 * Trap/interrupt vector routines
290 */  290 */
291 291
292ENTRY_NOPROFILE(buserr) 292ENTRY_NOPROFILE(buserr)
293 tstl _C_LABEL(nofault) | device probe? 293 tstl _C_LABEL(nofault) | device probe?
294 jeq _C_LABEL(addrerr) | no, handle as usual 294 jeq _C_LABEL(addrerr) | no, handle as usual
295 movl _C_LABEL(nofault),%sp@- | yes, 295 movl _C_LABEL(nofault),%sp@- | yes,
296 jbsr _C_LABEL(longjmp) | longjmp(nofault) 296 jbsr _C_LABEL(longjmp) | longjmp(nofault)
297ENTRY_NOPROFILE(addrerr) 297ENTRY_NOPROFILE(addrerr)
298 clrw %sp@- | pad SR to longword 298 clrw %sp@- | pad SR to longword
299 moveml #0xFFFF,%sp@- | save user registers 299 moveml #0xFFFF,%sp@- | save user registers
300 movl %usp,%a0 | save the user SP 300 movl %usp,%a0 | save the user SP
301 movl %a0,%sp@(60) | in the savearea 301 movl %a0,%sp@(60) | in the savearea
302 lea %sp@(64),%a1 | grab base of HW berr frame 302 lea %sp@(64),%a1 | grab base of HW berr frame
303 movw %a1@(12),%d0 | grab SSW for fault processing 303 movw %a1@(12),%d0 | grab SSW for fault processing

cvs diff -r1.8 -r1.9 src/sys/arch/luna68k/stand/boot/samachdep.h (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/samachdep.h 2013/01/21 11:58:12 1.8
+++ src/sys/arch/luna68k/stand/boot/samachdep.h 2013/01/22 15:48:40 1.9
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: samachdep.h,v 1.8 2013/01/21 11:58:12 tsutsui Exp $ */ 1/* $NetBSD: samachdep.h,v 1.9 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1982, 1990, 1993 4 * Copyright (c) 1982, 1990, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -117,27 +117,27 @@ extern int hz; @@ -117,27 +117,27 @@ extern int hz;
117extern int nplane; 117extern int nplane;
118extern int machtype; 118extern int machtype;
119 119
120/* kbd.c */ 120/* kbd.c */
121int kbd_decode(u_char); 121int kbd_decode(u_char);
122 122
123/* lance.c */ 123/* lance.c */
124void *lance_attach(int, void *, void *, uint8_t *); 124void *lance_attach(int, void *, void *, uint8_t *);
125void *lance_cookie(int); 125void *lance_cookie(int);
126uint8_t *lance_eaddr(void *); 126uint8_t *lance_eaddr(void *);
127bool lance_init(void *); 127bool lance_init(void *);
128int lance_get(void *, void *, size_t); 128int lance_get(void *, void *, size_t);
129bool lance_put(void *, void *, size_t); 129bool lance_put(void *, void *, size_t);
130bool lance_end(void *);  130bool lance_end(void *);
131int lance_intr(void); 131int lance_intr(void);
132 132
133/* locore.S */ 133/* locore.S */
134extern u_int bootdev; 134extern u_int bootdev;
135extern int dipsw1, dipsw2; 135extern int dipsw1, dipsw2;
136extern int cputype; 136extern int cputype;
137extern volatile uint32_t tick; 137extern volatile uint32_t tick;
138int setjmp(label_t *); 138int setjmp(label_t *);
139int splhigh(void); 139int splhigh(void);
140void splx(int); 140void splx(int);
141int getsfc(void); 141int getsfc(void);
142int getdfc(void); 142int getdfc(void);
143int spl0(void); 143int spl0(void);

cvs diff -r1.6 -r1.7 src/sys/arch/luna68k/stand/boot/autoconf.c (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/autoconf.c 2013/01/14 12:28:11 1.6
+++ src/sys/arch/luna68k/stand/boot/autoconf.c 2013/01/22 15:48:40 1.7
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: autoconf.c,v 1.6 2013/01/14 12:28:11 tsutsui Exp $ */ 1/* $NetBSD: autoconf.c,v 1.7 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1992 OMRON Corporation. 4 * Copyright (c) 1992 OMRON Corporation.
5 * 5 *
6 * This code is derived from software contributed to Berkeley by 6 * This code is derived from software contributed to Berkeley by
7 * OMRON Corporation. 7 * OMRON Corporation.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -60,27 +60,27 @@ @@ -60,27 +60,27 @@
60 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 60 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
61 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 61 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
62 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 62 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
63 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 63 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
64 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 64 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
68 * SUCH DAMAGE. 68 * SUCH DAMAGE.
69 * 69 *
70 * @(#)autoconf.c 8.1 (Berkeley) 6/10/93 70 * @(#)autoconf.c 8.1 (Berkeley) 6/10/93
71 */ 71 */
72 72
73/*  73/*
74 * autoconf.c -- Determine mass storage and memory configuration for a machine. 74 * autoconf.c -- Determine mass storage and memory configuration for a machine.
75 * by A.Fujita, NOV-30-1991 75 * by A.Fujita, NOV-30-1991
76 * 76 *
77 * Modified by A.Fujita, FEB-04-1992 77 * Modified by A.Fujita, FEB-04-1992
78 */ 78 */
79 79
80 80
81#include <sys/param.h> 81#include <sys/param.h>
82#include <sys/dkstat.h> 82#include <sys/dkstat.h>
83#include <machine/cpu.h> 83#include <machine/cpu.h>
84#include <lib/libkern/libkern.h> 84#include <lib/libkern/libkern.h>
85#include <luna68k/stand/boot/samachdep.h> 85#include <luna68k/stand/boot/samachdep.h>
86#include <luna68k/stand/boot/device.h> 86#include <luna68k/stand/boot/device.h>

cvs diff -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/disklabel.c (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/disklabel.c 2013/01/10 16:20:11 1.2
+++ src/sys/arch/luna68k/stand/boot/disklabel.c 2013/01/22 15:48:40 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: disklabel.c,v 1.2 2013/01/10 16:20:11 tsutsui Exp $ */ 1/* $NetBSD: disklabel.c,v 1.3 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1992 OMRON Corporation. 4 * Copyright (c) 1992 OMRON Corporation.
5 * 5 *
6 * This code is derived from software contributed to Berkeley by 6 * This code is derived from software contributed to Berkeley by
7 * OMRON Corporation. 7 * OMRON Corporation.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -381,22 +381,22 @@ display(struct disklabel *lp) @@ -381,22 +381,22 @@ display(struct disklabel *lp)
381 break; 381 break;
382 382
383 default: 383 default:
384 printf("%s", ""); 384 printf("%s", "");
385 break; 385 break;
386 } 386 }
387 printf("\t# (Cyl. %d", 387 printf("\t# (Cyl. %d",
388 pp->p_offset / lp->d_secpercyl); 388 pp->p_offset / lp->d_secpercyl);
389 if (pp->p_offset % lp->d_secpercyl) 389 if (pp->p_offset % lp->d_secpercyl)
390 cnputc('*'); 390 cnputc('*');
391 else 391 else
392 cnputc(' '); 392 cnputc(' ');
393 printf("- %d", 393 printf("- %d",
394 (pp->p_offset +  394 (pp->p_offset +
395 pp->p_size + lp->d_secpercyl - 1) / 395 pp->p_size + lp->d_secpercyl - 1) /
396 lp->d_secpercyl - 1); 396 lp->d_secpercyl - 1);
397 if (pp->p_size % lp->d_secpercyl) 397 if (pp->p_size % lp->d_secpercyl)
398 cnputc('*'); 398 cnputc('*');
399 printf(")\n"); 399 printf(")\n");
400 } 400 }
401 } 401 }
402} 402}

cvs diff -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/if_le.c (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/if_le.c 2013/01/20 13:35:43 1.2
+++ src/sys/arch/luna68k/stand/boot/if_le.c 2013/01/22 15:48:40 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: if_le.c,v 1.2 2013/01/20 13:35:43 tsutsui Exp $ */ 1/* $NetBSD: if_le.c,v 1.3 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2013 Izumi Tsutsui. All rights reserved. 4 * Copyright (c) 2013 Izumi Tsutsui. All rights reserved.
5 * Copyright (c) 2003 Tetsuya Isaki. All rights reserved. 5 * Copyright (c) 2003 Tetsuya Isaki. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -206,33 +206,33 @@ le_get(struct iodesc *desc, void *pkt, s @@ -206,33 +206,33 @@ le_get(struct iodesc *desc, void *pkt, s
206 } 206 }
207 207
208 return len; 208 return len;
209} 209}
210 210
211static int 211static int
212le_put(struct iodesc *desc, void *pkt, size_t len) 212le_put(struct iodesc *desc, void *pkt, size_t len)
213{ 213{
214 struct netif *nif = desc->io_netif; 214 struct netif *nif = desc->io_netif;
215 struct netif_dif *dif = &nif->nif_driver->netif_ifs[nif->nif_unit]; 215 struct netif_dif *dif = &nif->nif_driver->netif_ifs[nif->nif_unit];
216 void *cookie = dif->dif_private; 216 void *cookie = dif->dif_private;
217#ifdef DEBUG 217#ifdef DEBUG
218 struct ether_header *eh; 218 struct ether_header *eh;
219  219
220 eh = pkt; 220 eh = pkt;
221 printf("dst: %s\n", ether_sprintf(eh->ether_dhost)); 221 printf("dst: %s\n", ether_sprintf(eh->ether_dhost));
222 printf("src: %s\n", ether_sprintf(eh->ether_shost)); 222 printf("src: %s\n", ether_sprintf(eh->ether_shost));
223 printf("type: 0x%x\n", eh->ether_type & 0xffff); 223 printf("type: 0x%x\n", eh->ether_type & 0xffff);
224#endif 224#endif
225  225
226 return lance_put(cookie, pkt, len) ? len : -1; 226 return lance_put(cookie, pkt, len) ? len : -1;
227} 227}
228 228
229static void 229static void
230le_end(struct netif *nif) 230le_end(struct netif *nif)
231{ 231{
232 struct netif_dif *dif = &nif->nif_driver->netif_ifs[nif->nif_unit]; 232 struct netif_dif *dif = &nif->nif_driver->netif_ifs[nif->nif_unit];
233 void *cookie = dif->dif_private; 233 void *cookie = dif->dif_private;
234 234
235#ifdef DEBUG 235#ifdef DEBUG
236 printf("%s\n", __func__); 236 printf("%s\n", __func__);
237#endif 237#endif
238 lance_end(cookie); 238 lance_end(cookie);
@@ -245,27 +245,27 @@ myetheraddr(uint8_t *ether) @@ -245,27 +245,27 @@ myetheraddr(uint8_t *ether)
245 uint8_t *ea; 245 uint8_t *ea;
246 volatile struct { uint32_t ctl; } *ds1220; 246 volatile struct { uint32_t ctl; } *ds1220;
247 247
248 switch (machtype) { 248 switch (machtype) {
249 case LUNA_I: 249 case LUNA_I:
250 ea = (uint8_t *)0x4101FFE0; 250 ea = (uint8_t *)0x4101FFE0;
251 for (i = 0; i < ETHER_ADDR_LEN; i++) { 251 for (i = 0; i < ETHER_ADDR_LEN; i++) {
252 int u, l; 252 int u, l;
253 253
254 u = ea[0]; 254 u = ea[0];
255 u = (u < 'A') ? u & 0xf : u - 'A' + 10; 255 u = (u < 'A') ? u & 0xf : u - 'A' + 10;
256 l = ea[1]; 256 l = ea[1];
257 l = (l < 'A') ? l & 0xf : l - 'A' + 10; 257 l = (l < 'A') ? l & 0xf : l - 'A' + 10;
258  258
259 ether[i] = l | (u << 4); 259 ether[i] = l | (u << 4);
260 ea += 2; 260 ea += 2;
261 } 261 }
262 break; 262 break;
263 case LUNA_II: 263 case LUNA_II:
264 ds1220 = (void *)0xF1000004; 264 ds1220 = (void *)0xF1000004;
265 loc = 12; 265 loc = 12;
266 for (i = 0; i < ETHER_ADDR_LEN; i++) { 266 for (i = 0; i < ETHER_ADDR_LEN; i++) {
267 unsigned int u, l, hex; 267 unsigned int u, l, hex;
268 268
269 ds1220->ctl = (loc) << 16; 269 ds1220->ctl = (loc) << 16;
270 u = 0xf0 & (ds1220->ctl >> 12); 270 u = 0xf0 & (ds1220->ctl >> 12);
271 ds1220->ctl = (loc + 1) << 16; 271 ds1220->ctl = (loc + 1) << 16;

cvs diff -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/omron_disklabel.h (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/omron_disklabel.h 2013/01/10 16:20:11 1.2
+++ src/sys/arch/luna68k/stand/boot/omron_disklabel.h 2013/01/22 15:48:40 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: omron_disklabel.h,v 1.2 2013/01/10 16:20:11 tsutsui Exp $ */ 1/* $NetBSD: omron_disklabel.h,v 1.3 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1992 OMRON Corporation. 4 * Copyright (c) 1992 OMRON Corporation.
5 * 5 *
6 * This code is derived from software contributed to Berkeley by 6 * This code is derived from software contributed to Berkeley by
7 * OMRON Corporation. 7 * OMRON Corporation.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -65,27 +65,27 @@ @@ -65,27 +65,27 @@
65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
68 * SUCH DAMAGE. 68 * SUCH DAMAGE.
69 * 69 *
70 * @(#)omron_disklabel.h 8.1 (Berkeley) 6/10/93 70 * @(#)omron_disklabel.h 8.1 (Berkeley) 6/10/93
71 */ 71 */
72 72
73/* omron_dislabel.h from UniOS-B */ 73/* omron_dislabel.h from UniOS-B */
74/* by A.Fujita, JAN-30-1992 */ 74/* by A.Fujita, JAN-30-1992 */
75 75
76 76
77#define DKL_MAGIC 0xDABE /* Disk label Magic number */ 77#define DKL_MAGIC 0xDABE /* Disk label Magic number */
78#define NLPART 8 /* # of logical partition */  78#define NLPART 8 /* # of logical partition */
79 79
80struct scd_dk_label { 80struct scd_dk_label {
81 char dkl_asciilabel[128]; /* for compatibility */ 81 char dkl_asciilabel[128]; /* for compatibility */
82 char dkl_pad[512-(128+8*8+11*2+4)]; 82 char dkl_pad[512-(128+8*8+11*2+4)];
83 uint16_t dkl_badchk; /* checksum of bad track */ 83 uint16_t dkl_badchk; /* checksum of bad track */
84 uint32_t dkl_maxblk; /* # of total logical block */ 84 uint32_t dkl_maxblk; /* # of total logical block */
85 uint16_t dkl_dtype; /* disk drive type */ 85 uint16_t dkl_dtype; /* disk drive type */
86 uint16_t dkl_ndisk; /* # of disk drives */ 86 uint16_t dkl_ndisk; /* # of disk drives */
87 uint16_t dkl_ncyl; /* # of data cylinders */ 87 uint16_t dkl_ncyl; /* # of data cylinders */
88 uint16_t dkl_acyl; /* # of alternate cylinders */ 88 uint16_t dkl_acyl; /* # of alternate cylinders */
89 uint16_t dkl_nhead; /* # of heads in this partition */ 89 uint16_t dkl_nhead; /* # of heads in this partition */
90 uint16_t dkl_nsect; /* # of 512 byte sectors per track */ 90 uint16_t dkl_nsect; /* # of 512 byte sectors per track */
91 uint16_t dkl_bhead; /* identifies proper label locations */ 91 uint16_t dkl_bhead; /* identifies proper label locations */

cvs diff -r1.2 -r1.3 src/sys/arch/luna68k/stand/boot/prf.c (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/prf.c 2013/01/21 11:58:12 1.2
+++ src/sys/arch/luna68k/stand/boot/prf.c 2013/01/22 15:48:40 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: prf.c,v 1.2 2013/01/21 11:58:12 tsutsui Exp $ */ 1/* $NetBSD: prf.c,v 1.3 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1982, 1986, 1990, 1993 4 * Copyright (c) 1982, 1986, 1990, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -46,28 +46,28 @@ getchar(void) @@ -46,28 +46,28 @@ getchar(void)
46 else if (c == ('c'&037)) { 46 else if (c == ('c'&037)) {
47 panic("^C"); 47 panic("^C");
48 /* NOTREACHED */ 48 /* NOTREACHED */
49 } 49 }
50 return c; 50 return c;
51} 51}
52 52
53int 53int
54tgetchar(void) 54tgetchar(void)
55{ 55{
56 int c; 56 int c;
57 57
58 if ((c = cngetc()) == 0) 58 if ((c = cngetc()) == 0)
59 return 0; 59 return 0;
60  60
61 if (c == '\r') 61 if (c == '\r')
62 c = '\n'; 62 c = '\n';
63 else if (c == ('c'&037)) { 63 else if (c == ('c'&037)) {
64 panic("^C"); 64 panic("^C");
65 /* NOTREACHED */ 65 /* NOTREACHED */
66 } 66 }
67 return c; 67 return c;
68} 68}
69 69
70void 70void
71putchar(int c) 71putchar(int c)
72{ 72{
73 cnputc(c); 73 cnputc(c);

cvs diff -r1.3 -r1.4 src/sys/arch/luna68k/stand/boot/parse.c (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/parse.c 2013/01/21 11:58:12 1.3
+++ src/sys/arch/luna68k/stand/boot/parse.c 2013/01/22 15:48:40 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: parse.c,v 1.3 2013/01/21 11:58:12 tsutsui Exp $ */ 1/* $NetBSD: parse.c,v 1.4 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1992 OMRON Corporation. 4 * Copyright (c) 1992 OMRON Corporation.
5 * 5 *
6 * This code is derived from software contributed to Berkeley by 6 * This code is derived from software contributed to Berkeley by
7 * OMRON Corporation. 7 * OMRON Corporation.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -142,27 +142,27 @@ struct command_entry entries[] = { @@ -142,27 +142,27 @@ struct command_entry entries[] = {
142 { "howto", how_to_boot }, 142 { "howto", how_to_boot },
143 { "ls", cmd_ls }, 143 { "ls", cmd_ls },
144 { "screen", screen }, 144 { "screen", screen },
145#ifdef notyet 145#ifdef notyet
146 { "tape", tape }, 146 { "tape", tape },
147 { "tp", tape }, 147 { "tp", tape },
148#endif 148#endif
149 { "scsi", scsi }, 149 { "scsi", scsi },
150 { "quit", exit_program }, 150 { "quit", exit_program },
151 { 0, 0 } 151 { 0, 0 }
152}; 152};
153 153
154 154
155int  155int
156parse(int argc, char *argv[]) 156parse(int argc, char *argv[])
157{ 157{
158 int i, status = ST_NOTFOUND; 158 int i, status = ST_NOTFOUND;
159 159
160 for (i = 0; entries[i].name != (char *) 0; i++) { 160 for (i = 0; entries[i].name != (char *) 0; i++) {
161 if (!strcmp(argv[0], entries[i].name)) { 161 if (!strcmp(argv[0], entries[i].name)) {
162 status = (*entries[i].func)(argc, argv); 162 status = (*entries[i].func)(argc, argv);
163 break; 163 break;
164 } 164 }
165 } 165 }
166 166
167 return(status); 167 return(status);
168} 168}

cvs diff -r1.3 -r1.4 src/sys/arch/luna68k/stand/boot/sc.c (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/sc.c 2013/01/14 01:37:57 1.3
+++ src/sys/arch/luna68k/stand/boot/sc.c 2013/01/22 15:48:40 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: sc.c,v 1.3 2013/01/14 01:37:57 tsutsui Exp $ */ 1/* $NetBSD: sc.c,v 1.4 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1992 OMRON Corporation. 4 * Copyright (c) 1992 OMRON Corporation.
5 * 5 *
6 * This code is derived from software contributed to Berkeley by 6 * This code is derived from software contributed to Berkeley by
7 * OMRON Corporation. 7 * OMRON Corporation.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -559,33 +559,33 @@ scintr(void) @@ -559,33 +559,33 @@ scintr(void)
559#ifdef DEBUG 559#ifdef DEBUG
560 printf("scintr: INTS 0x%x, SSTS 0x%x, PCTL 0x%x, PSNS 0x%x 0x%x\n", 560 printf("scintr: INTS 0x%x, SSTS 0x%x, PCTL 0x%x, PSNS 0x%x 0x%x\n",
561 ints, hd->scsi_ssts, hd->scsi_pctl, hd->scsi_psns, 561 ints, hd->scsi_ssts, hd->scsi_pctl, hd->scsi_psns,
562 hs->sc_phase); 562 hs->sc_phase);
563#endif 563#endif
564 if (ints & INTS_RESEL) { 564 if (ints & INTS_RESEL) {
565 if (hs->sc_phase == BUS_FREE_PHASE) { 565 if (hs->sc_phase == BUS_FREE_PHASE) {
566 temp = hd->scsi_temp & ~(1 << SCSI_ID); 566 temp = hd->scsi_temp & ~(1 << SCSI_ID);
567 for (i = 0; temp != 1; i++) { 567 for (i = 0; temp != 1; i++) {
568 temp >>= 1; 568 temp >>= 1;
569 } 569 }
570 hs->sc_target = i; 570 hs->sc_target = i;
571 *(hs->sc_lock) = SC_IN_PROGRESS; 571 *(hs->sc_lock) = SC_IN_PROGRESS;
572 } else  572 } else
573 goto abort; 573 goto abort;
574 } else if (ints & INTS_DISCON) { 574 } else if (ints & INTS_DISCON) {
575 if ((hs->sc_msg[0] == MSG_CMD_COMPLETE) || (hs->sc_msg[0] == MSG_DISCONNECT)) { 575 if ((hs->sc_msg[0] == MSG_CMD_COMPLETE) || (hs->sc_msg[0] == MSG_DISCONNECT)) {
576 hs->sc_phase = BUS_FREE_PHASE; 576 hs->sc_phase = BUS_FREE_PHASE;
577 hs->sc_target = SCSI_ID; 577 hs->sc_target = SCSI_ID;
578 if (hs->sc_msg[0] == MSG_CMD_COMPLETE)  578 if (hs->sc_msg[0] == MSG_CMD_COMPLETE)
579 /* SCSI IO complete */ 579 /* SCSI IO complete */
580 *(hs->sc_lock) = SC_IO_COMPLETE; 580 *(hs->sc_lock) = SC_IO_COMPLETE;
581 else 581 else
582 /* Cisconnected from Target */ 582 /* Cisconnected from Target */
583 *(hs->sc_lock) = SC_DISCONNECTED; 583 *(hs->sc_lock) = SC_DISCONNECTED;
584 hd->scsi_ints = ints; 584 hd->scsi_ints = ints;
585 return 0; 585 return 0;
586 } else 586 } else
587 goto abort; 587 goto abort;
588 } else if (ints & INTS_CMD_DONE) { 588 } else if (ints & INTS_CMD_DONE) {
589 if (hs->sc_phase == BUS_FREE_PHASE) 589 if (hs->sc_phase == BUS_FREE_PHASE)
590 goto abort; 590 goto abort;
591 else if (hs->sc_phase == MESG_IN_PHASE) { 591 else if (hs->sc_phase == MESG_IN_PHASE) {

cvs diff -r1.1 -r1.2 src/sys/arch/luna68k/stand/boot/scsireg.h (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/scsireg.h 2013/01/05 17:44:24 1.1
+++ src/sys/arch/luna68k/stand/boot/scsireg.h 2013/01/22 15:48:40 1.2
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: scsireg.h,v 1.1 2013/01/05 17:44:24 tsutsui Exp $ */ 1/* $NetBSD: scsireg.h,v 1.2 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1990, 1992, 1993 4 * Copyright (c) 1990, 1992, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to Berkeley by 7 * This code is derived from software contributed to Berkeley by
8 * Van Jacobson of Lawrence Berkeley Laboratory. 8 * Van Jacobson of Lawrence Berkeley Laboratory.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -276,46 +276,46 @@ struct scsi_reassign_parms { @@ -276,46 +276,46 @@ struct scsi_reassign_parms {
276 unsigned lba; /* logical block address */ 276 unsigned lba; /* logical block address */
277 } new_defect[2]; 277 } new_defect[2];
278} reassign_parms; 278} reassign_parms;
279 279
280struct scsi_modesel_hdr { 280struct scsi_modesel_hdr {
281 u_char rsvd1; 281 u_char rsvd1;
282 u_char media_type; 282 u_char media_type;
283 u_char rsvd2; 283 u_char rsvd2;
284 u_char block_desc_len; 284 u_char block_desc_len;
285 u_int density : 8; 285 u_int density : 8;
286 u_int number_blocks :24; 286 u_int number_blocks :24;
287 u_int rsvd3 : 8; 287 u_int rsvd3 : 8;
288 u_int block_length :24; 288 u_int block_length :24;
289};  289};
290 290
291struct scsi_modesense_hdr { 291struct scsi_modesense_hdr {
292 u_char len; 292 u_char len;
293 u_char media_type; 293 u_char media_type;
294 u_char wp : 1; 294 u_char wp : 1;
295 u_char rsvd1 : 7; 295 u_char rsvd1 : 7;
296 u_char block_desc_len; 296 u_char block_desc_len;
297 u_int density : 8; 297 u_int density : 8;
298 u_int number_blocks :24; 298 u_int number_blocks :24;
299 u_int rsvd2 : 8; 299 u_int rsvd2 : 8;
300 u_int block_length :24; 300 u_int block_length :24;
301};  301};
302 302
303/* 303/*
304 * Mode Select / Mode sense "pages" 304 * Mode Select / Mode sense "pages"
305 */ 305 */
306 306
307/* 307/*
308 * Page One - Error Recovery Parameters  308 * Page One - Error Recovery Parameters
309 */ 309 */
310struct scsi_err_recovery { 310struct scsi_err_recovery {
311 u_char page_savable : 1; /* save parameters */ 311 u_char page_savable : 1; /* save parameters */
312 u_char reserved : 1; 312 u_char reserved : 1;
313 u_char page_code : 6; /* = 0x01 */ 313 u_char page_code : 6; /* = 0x01 */
314 u_char page_length; /* = 6 */ 314 u_char page_length; /* = 6 */
315 u_char awre : 1; /* auto write realloc enabled */ 315 u_char awre : 1; /* auto write realloc enabled */
316 u_char arre : 1; /* auto read realloc enabled */ 316 u_char arre : 1; /* auto read realloc enabled */
317 u_char tb : 1; /* transfer block */ 317 u_char tb : 1; /* transfer block */
318 u_char rc : 1; /* read continuous */ 318 u_char rc : 1; /* read continuous */
319 u_char eec : 1; /* enable early correction */ 319 u_char eec : 1; /* enable early correction */
320 u_char per : 1; /* post error */ 320 u_char per : 1; /* post error */
321 u_char dte : 1; /* disable transfer on error */ 321 u_char dte : 1; /* disable transfer on error */
@@ -363,27 +363,27 @@ struct scsi_format { @@ -363,27 +363,27 @@ struct scsi_format {
363 u_short cyl_skew_factor; 363 u_short cyl_skew_factor;
364 u_char ssec : 1; /* Drive Type Field */ 364 u_char ssec : 1; /* Drive Type Field */
365 u_char hsec : 1; 365 u_char hsec : 1;
366 u_char rmb : 1; 366 u_char rmb : 1;
367 u_char surf : 1; 367 u_char surf : 1;
368 u_char ins : 1; 368 u_char ins : 1;
369 u_char reserved_1 : 3; 369 u_char reserved_1 : 3;
370 u_char reserved_2; 370 u_char reserved_2;
371 u_char reserved_3; 371 u_char reserved_3;
372 u_char reserved_4; 372 u_char reserved_4;
373}; 373};
374 374
375/* 375/*
376 * Page Four - Rigid Disk Drive Geometry Parameters  376 * Page Four - Rigid Disk Drive Geometry Parameters
377 */ 377 */
378struct scsi_geometry { 378struct scsi_geometry {
379 u_char page_savable : 1; /* save parameters */ 379 u_char page_savable : 1; /* save parameters */
380 u_char rsvd : 1; 380 u_char rsvd : 1;
381 u_char page_code : 6; /* = 0x04 */ 381 u_char page_code : 6; /* = 0x04 */
382 u_char page_length; /* = 18 */ 382 u_char page_length; /* = 18 */
383 u_char cyl_ub; /* number of cylinders */ 383 u_char cyl_ub; /* number of cylinders */
384 u_char cyl_mb; 384 u_char cyl_mb;
385 u_char cyl_lb; 385 u_char cyl_lb;
386 u_char heads; /* number of heads */ 386 u_char heads; /* number of heads */
387 u_char precomp_cyl_ub; /* cylinder to start precomp */ 387 u_char precomp_cyl_ub; /* cylinder to start precomp */
388 u_char precomp_cyl_mb; 388 u_char precomp_cyl_mb;
389 u_char precomp_cyl_lb; 389 u_char precomp_cyl_lb;

cvs diff -r1.4 -r1.5 src/sys/arch/luna68k/stand/boot/sd.c (expand / switch to unified diff)

--- src/sys/arch/luna68k/stand/boot/sd.c 2013/01/21 13:21:04 1.4
+++ src/sys/arch/luna68k/stand/boot/sd.c 2013/01/22 15:48:40 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: sd.c,v 1.4 2013/01/21 13:21:04 tsutsui Exp $ */ 1/* $NetBSD: sd.c,v 1.5 2013/01/22 15:48:40 tsutsui Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1992 OMRON Corporation. 4 * Copyright (c) 1992 OMRON Corporation.
5 * 5 *
6 * This code is derived from software contributed to Berkeley by 6 * This code is derived from software contributed to Berkeley by
7 * OMRON Corporation. 7 * OMRON Corporation.
8 * 8 *
9 * Redistribution and use in source and binary forms, with or without 9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions 10 * modification, are permitted provided that the following conditions
11 * are met: 11 * are met:
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright 14 * 2. Redistributions in binary form must reproduce the above copyright
@@ -94,27 +94,27 @@ struct sd_softc { @@ -94,27 +94,27 @@ struct sd_softc {
94 short sc_flags; 94 short sc_flags;
95 short sc_type; /* drive type */ 95 short sc_type; /* drive type */
96 short sc_punit; /* physical unit (scsi lun) */ 96 short sc_punit; /* physical unit (scsi lun) */
97 u_short sc_bshift; /* convert device blocks to DEV_BSIZE blks */ 97 u_short sc_bshift; /* convert device blocks to DEV_BSIZE blks */
98 u_int sc_blks; /* number of blocks on device */ 98 u_int sc_blks; /* number of blocks on device */
99 int sc_blksize; /* device block size in bytes */ 99 int sc_blksize; /* device block size in bytes */
100 u_int sc_wpms; /* average xfer rate in 16 bit wds/sec. */ 100 u_int sc_wpms; /* average xfer rate in 16 bit wds/sec. */
101}; 101};
102 102
103struct sd_devdata { 103struct sd_devdata {
104 int unit; /* drive number */ 104 int unit; /* drive number */
105 int part; /* partition */ 105 int part; /* partition */
106}; 106};
107  107
108static int sdinit(void *); 108static int sdinit(void *);
109static int sdident(struct sd_softc *, struct hp_device *); 109static int sdident(struct sd_softc *, struct hp_device *);
110 110
111struct driver sddriver = { 111struct driver sddriver = {
112 sdinit, "sd", NULL, 112 sdinit, "sd", NULL,
113}; 113};
114 114
115struct sd_softc sd_softc[NSD]; 115struct sd_softc sd_softc[NSD];
116struct sd_devdata sd_devdata[NSD]; 116struct sd_devdata sd_devdata[NSD];
117 117
118/* sc_flags values */ 118/* sc_flags values */
119#define SDF_ALIVE 0x1 119#define SDF_ALIVE 0x1
120 120