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 #define FILE_DEVICE_BLOCK 1
36 #define FILE_DEVICE_NET 2
39 char* dev; /* OF device path */
40 int part; /* Partition number or -1 */
41 char* file; /* File path */
46 /* File access methods */
47 const struct fs_t *fs;
49 /* Filesystem private (to be broken once we have a
57 unsigned char* buffer;
59 // unsigned int dev_blk_size;
60 // unsigned int part_start;
61 // unsigned int part_count;
65 open_file(const struct boot_fspec_t* spec,
66 struct boot_file_t* file);
69 parse_device_path(char *imagepath, char *defdevice, int defpart,
70 char *deffile, struct boot_fspec_t *result);
73 extern int validate_fspec(
74 struct boot_fspec_t* spec,
77 extern char *parse_device_path(