]> git.ozlabs.org Git - yaboot.git/blobdiff - second/fs_iso.c
Commit yaboot 1.3.0
[yaboot.git] / second / fs_iso.c
diff --git a/second/fs_iso.c b/second/fs_iso.c
new file mode 100644 (file)
index 0000000..9f52a3d
--- /dev/null
@@ -0,0 +1,77 @@
+/* iso9660 filesystem (placeholder)
+   
+   Copyright (C) 1999 Benjamin Herrenschnidt
+   
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+   
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+
+#include "ctype.h"
+#include "types.h"
+#include "stddef.h"
+#include "file.h"
+#include "prom.h"
+#include "string.h"
+#include "partition.h"
+#include "fs.h"
+
+
+static int iso_open(   struct boot_file_t*     file,
+                       const char*             dev_name,
+                       struct partition_t*     part,
+                       const char*             file_name);
+static int iso_read(   struct boot_file_t*     file,
+                       unsigned int            size,
+                       void*                   buffer);
+static int iso_seek(   struct boot_file_t*     file,
+                       unsigned int            newpos);
+static int iso_close(  struct boot_file_t*     file);
+
+struct fs_t iso_filesystem =
+{
+    "iso9660",
+    iso_open,
+    iso_read,
+    iso_seek,
+    iso_close
+};
+
+static int
+iso_open(      struct boot_file_t*     file,
+               const char*             dev_name,
+               struct partition_t*     part,
+               const char*             file_name)
+{
+       return FILE_ERR_NOTFOUND;
+}
+
+static int
+iso_read(      struct boot_file_t*     file,
+               unsigned int            size,
+               void*                   buffer)
+{
+       return FILE_ERR_NOTFOUND;
+}
+
+static int
+iso_seek(      struct boot_file_t*     file,
+               unsigned int            newpos)
+{
+       return FILE_ERR_NOTFOUND;
+}
+
+static int
+iso_close(     struct boot_file_t*     file)
+{
+       return 0;
+}