2 Definitions for talking to the Open Firmware PROM on
3 Power Macintosh computers.
5 Copyright (C) 1999 Benjamin Herrenschmidt
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #define FILE_MAX_PATH 1024
35 char* dev; /* OF device path */
36 int part; /* Partition number or -1 */
37 char* file; /* File path */
42 /* File access methods */
43 const struct fs_t *fs;
45 /* Filesystem private (to be broken once we have a
53 unsigned char* buffer;
55 // unsigned int dev_blk_size;
56 // unsigned int part_start;
57 // unsigned int part_count;
61 open_file(const struct boot_fspec_t* spec,
62 struct boot_file_t* file);
65 parse_device_path(char *imagepath, char *defdevice, int defpart,
66 char *deffile, struct boot_fspec_t *result);
69 extern int validate_fspec(
70 struct boot_fspec_t* spec,
73 extern char *parse_device_path(