2 * file.h - Filesystem related interfaces
4 * Copyright (C) 2001 Ethan Benson
8 * Copyright (C) 2001 Colin Walters
10 * Copyright (C) 1999 Benjamin Herrenschmidt
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
37 #define FILE_MAX_PATH 1024
40 char* dev; /* OF device path */
41 int part; /* Partition number or -1 */
42 char* file; /* File path */
47 /* File access methods */
48 const struct fs_t *fs;
50 /* Filesystem private (to be broken once we have a
58 unsigned char* buffer;
60 // unsigned int dev_blk_size;
61 // unsigned int part_start;
62 // unsigned int part_count;
66 open_file(const struct boot_fspec_t* spec,
67 struct boot_file_t* file);
70 parse_device_path(char *imagepath, char *defdevice, int defpart,
71 char *deffile, struct boot_fspec_t *result);