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* subnetmask; /* Subnet mask */
49 char* addl_params; /* copy all additional parameters */
50 char* vtag; /* VLAN tag */
52 /* Following fields are used only in ipv6 format */
53 int is_ipv6; /* is ipv6 specified ? */
54 char* dhcpv6; /* dhcpv6 string */
55 char* blksize; /* blksize string */
60 /* File access methods */
61 const struct fs_t *fs;
63 /* Filesystem private (to be broken once we have a
71 unsigned char* buffer;
74 // unsigned int dev_blk_size;
75 // unsigned int part_start;
76 // unsigned int part_count;
80 open_file(struct boot_fspec_t* spec,
81 struct boot_file_t* file);
84 parse_device_path(char *imagepath, char *defdevice, int defpart,
85 char *deffile, struct boot_fspec_t *result);