Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand/ofwboot Add support for ffsv2 and lfs.



details:   https://anonhg.NetBSD.org/src/rev/2f1a90eb47d3
branches:  trunk
changeset: 752158:2f1a90eb47d3
user:      eeh <eeh%NetBSD.org@localhost>
date:      Wed Feb 17 15:50:06 2010 +0000

description:
Add support for ffsv2 and lfs.

diffstat:

 sys/arch/sparc/stand/ofwboot/ofdev.c |  17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 06b35abf9f8f -r 2f1a90eb47d3 sys/arch/sparc/stand/ofwboot/ofdev.c
--- a/sys/arch/sparc/stand/ofwboot/ofdev.c      Wed Feb 17 15:49:19 2010 +0000
+++ b/sys/arch/sparc/stand/ofwboot/ofdev.c      Wed Feb 17 15:50:06 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ofdev.c,v 1.25 2010/01/27 22:18:37 martin Exp $        */
+/*     $NetBSD: ofdev.c,v 1.26 2010/02/17 15:50:06 eeh Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -41,6 +41,7 @@
 
 #include <lib/libsa/stand.h>
 #include <lib/libsa/ufs.h>
+#include <lib/libsa/lfs.h>
 #include <lib/libsa/cd9660.h>
 #ifdef NETBOOT
 #include <lib/libsa/nfs.h>
@@ -188,8 +189,10 @@
 };
 int ndevs = sizeof ofdevsw / sizeof ofdevsw[0];
 
+
 #ifdef SPARC_BOOT_UFS
-static struct fs_ops file_system_ufs = FS_OPS(ufs);
+static struct fs_ops file_system_ufs[] = 
+{ FS_OPS(ufs), FS_OPS(ffsv2), FS_OPS(lfsv1), FS_OPS(lfsv2) };
 #endif
 #ifdef SPARC_BOOT_CD9660
 static struct fs_ops file_system_cd9660 = FS_OPS(cd9660);
@@ -199,7 +202,7 @@
 static struct fs_ops file_system_tftp = FS_OPS(tftp);
 #endif
 
-struct fs_ops file_system[3];
+struct fs_ops file_system[7];
 int nfsys;
 
 static struct of_dev ofdev = {
@@ -515,11 +518,13 @@
                of->f_dev = ofdevsw;
                of->f_devdata = &ofdev;
 #ifdef SPARC_BOOT_UFS
-               memcpy(&file_system[nfsys++], &file_system_ufs, sizeof file_system[0]);
+               memcpy(&file_system[nfsys++], &file_system_ufs[0], sizeof file_system[0]);
+               memcpy(&file_system[nfsys++], &file_system_ufs[1], sizeof file_system[0]);
+               memcpy(&file_system[nfsys++], &file_system_ufs[2], sizeof file_system[0]);
+               memcpy(&file_system[nfsys++], &file_system_ufs[3], sizeof file_system[0]);
 #endif
 #ifdef SPARC_BOOT_CD9660
-               memcpy(&file_system[nfsys++], &file_system_cd9660,
-                   sizeof file_system[0]);
+               memcpy(&file_system[nfsys++], &file_system_cd9660, sizeof file_system[0]);
 #endif
                DPRINTF(("devopen: return 0\n"));
                return 0;



Home | Main Index | Thread Index | Old Index