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* siaddr; /* Server address */
43 char* file; /* File path */
44 char* ciaddr; /* Client address */
45 char* giaddr; /* Gateway address */
46 char* bootp_retries; /* Bootp retries */
47 char* tftp_retries; /* TFTP retries */
48 char* addl_params; /* copy all additional parameters */
53 /* File access methods */
54 const struct fs_t *fs;
56 /* Filesystem private (to be broken once we have a
64 unsigned char* buffer;
66 // unsigned int dev_blk_size;
67 // unsigned int part_start;
68 // unsigned int part_count;
72 open_file(struct boot_fspec_t* spec,
73 struct boot_file_t* file);
76 parse_device_path(char *imagepath, char *defdevice, int defpart,
77 char *deffile, struct boot_fspec_t *result);