bootpath
struct device_path bootpath; /* 0x24: boot path */
bootpath = pmon_getenv("al");
if (bootpath != NULL && strncmp(bootpath, "tftp://", 7) == 0)
bootpath = NULL;
if (bootpath != NULL) {
tmp = strchr(bootpath, '@');
bootpath = NULL;
bootpath = tmp + 1;
tmp = strchr(bootpath, '/');
bootpath = NULL;
bootpathlen = tmp - bootpath;
if (bootpath != NULL && bootpathlen >= 3) {
strncpy(path, bootpath, bootpathlen);
if (bootpath[bootpathlen - 1] >= '0' &&
bootpath[bootpathlen - 1] <= '9')
const char *bootpath = NULL;
bootpath = tmp;
printf("bootpath: %s\n", bootpath);
char *bootpath;
bootpath= &bootpathbuf[0];
while ( *++bootpath && *bootpath != ' ');
if (*bootpath) {
*bootpath++ = 0;
while (*bootpath) {
switch (*bootpath++) {
bootpath = &bootpathbuf[0];
parseofwbp(bootpath);
char bootpath[128], *cp;
bzero(bootpath, sizeof bootpath);
OF_getprop(chosen, "bootpath", bootpath, sizeof bootpath);
cp = strrchr(bootpath, ',');
strlcpy(cp + 1, path, bootpath + sizeof bootpath - (cp + 1));
OF_fd = OF_open(bootpath);
extern char *bootpath;
struct bootpath *bootpath_store(int, struct bootpath *);
struct bootpath bootpath[16];
struct bootpath *bp = bootpath_store(0, NULL);
static void bootpath_print(struct bootpath *);
void bootpath_nodes(struct bootpath *, int);
void nail_bootdev(struct device *, struct bootpath *);
nail_bootdev(struct device *dev, struct bootpath *bp)
bootpath_nodes(struct bootpath *bp, int nbp)
register struct bootpath *bp;
bzero((void *)bootpath, sizeof(bootpath));
bp = bootpath;
bootpath_nodes(bootpath, nbootpath);
bootpath_print(struct bootpath *bp)
struct bootpath *
bootpath_store(int storep, struct bootpath *bp)
static struct bootpath *save;
struct bootpath *retval;
struct bootpath *bp;
bootpath_print(bootpath);
bp = nbootpath == 0 ? NULL : &bootpath[nbootpath-1];
bootpath_store(1, bootpath);