Commit yaboot 1.3.4
[yaboot.git] / second / fs_iso.c
1 /* iso9660 filesystem (placeholder)
2    
3    Copyright (C) 1999 Benjamin Herrenschnidt
4    
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9    
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
18
19 #include "ctype.h"
20 #include "types.h"
21 #include "stddef.h"
22 #include "file.h"
23 #include "prom.h"
24 #include "string.h"
25 #include "partition.h"
26 #include "fs.h"
27 #include "errors.h"
28
29 static int iso_open(    struct boot_file_t*     file,
30                         const char*             dev_name,
31                         struct partition_t*     part,
32                         const char*             file_name);
33 static int iso_read(    struct boot_file_t*     file,
34                         unsigned int            size,
35                         void*                   buffer);
36 static int iso_seek(    struct boot_file_t*     file,
37                         unsigned int            newpos);
38 static int iso_close(   struct boot_file_t*     file);
39
40 struct fs_t iso_filesystem =
41 {
42      "iso9660",
43      iso_open,
44      iso_read,
45      iso_seek,
46      iso_close
47 };
48
49 static int
50 iso_open(       struct boot_file_t*     file,
51                 const char*             dev_name,
52                 struct partition_t*     part,
53                 const char*             file_name)
54 {
55      return FILE_ERR_BAD_FSYS;
56 }
57
58 static int
59 iso_read(       struct boot_file_t*     file,
60                 unsigned int            size,
61                 void*                   buffer)
62 {
63      return FILE_ERR_BAD_FSYS;
64 }
65
66 static int
67 iso_seek(       struct boot_file_t*     file,
68                 unsigned int            newpos)
69 {
70      return FILE_ERR_BAD_FSYS;
71 }
72
73 static int
74 iso_close(      struct boot_file_t*     file)
75 {
76      return 0;
77 }
78
79 /* 
80  * Local variables:
81  * c-file-style: "K&R"
82  * c-basic-offset: 5
83  * End:
84  */