diff options
author | Florian Lohoff <flo@rfc822.org> | 2008-10-04 15:45:55 +0000 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-04-26 15:26:26 +0200 |
commit | ae4dcabd39938e93afa1fb095ed5421e92c10d7d (patch) | |
tree | 7bf99aee7c2504512782978067692f051874907a /common | |
parent | 7ef5cc75cfd3cf93f7edaf2b1b02e557ae16bf7f (diff) |
Seperate ARC prom calls from ext2io.c
Diffstat (limited to 'common')
-rw-r--r-- | common/prom.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/common/prom.h b/common/prom.h index 31852e9..b347d36 100644 --- a/common/prom.h +++ b/common/prom.h @@ -1,4 +1,29 @@ + +/* + * 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); |