diff options
| author | Charles.Forsyth <devnull@localhost> | 2008-06-11 14:21:44 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2008-06-11 14:21:44 +0000 |
| commit | 8a8c2d742b51525f66c2210e3c8a251de10022ff (patch) | |
| tree | 8282ce595e5fbe2e487dc20f54891d9e9e7cbf37 /os/boot/pc/devbios.h | |
| parent | 31a18a6996a6b5927e39cc553696c167e6c88e3d (diff) | |
20080611-1520
Diffstat (limited to 'os/boot/pc/devbios.h')
| -rw-r--r-- | os/boot/pc/devbios.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/os/boot/pc/devbios.h b/os/boot/pc/devbios.h new file mode 100644 index 00000000..08832996 --- /dev/null +++ b/os/boot/pc/devbios.h @@ -0,0 +1,22 @@ +typedef uvlong Devbytes, Devsects; + +typedef struct Biosdrive Biosdrive; /* 1 drive -> ndevs */ +typedef struct Biosdev Biosdev; + +struct Biosdrive { + int ndevs; +}; +struct Biosdev { + Devbytes size; + Devbytes offset; + uchar id; + char type; +}; + +int biosboot(int dev, char *file, Boot *b); +void* biosgetfspart(int i, char *name, int chatty); +void biosinitdev(int i, char *name); +int biosinit(void); +void biosprintbootdevs(int dev); +void biosprintdevs(int i); +long biosread(Fs *fs, void *a, long n); |
