void prom_fatal(const char *message, ...); void prom_wait(const char *prompt); /* * Gets called shortly after prom_init to intialize the malloc * subsystem based on the proms information about memory layout * */ void prom_init_malloc(void ); /* * Open may be used to open "partitions" passed in by name from the prom. It is the * proms abstraction layers responsibility to associate a file which associates to the * block device * */ int prom_open(char *name, int mode, FILE *stream); int prom_close(FILE stream); /* * Seek on the e.g. partition to a specific block indicated by a byte offset. * */ int prom_seek(FILE stream, long long position, int whence); enum { O_RDONLY, O_RDWR, }; enum { SEEK_SET, SEEK_CUR, }; int prom_write(FILE stream, char *buf, unsigned long len, unsigned long *rlen); int prom_read(FILE stream, char *buf, unsigned long len, unsigned long *rlen);