devbios.h 493 B

12345678910111213141516171819202122
  1. typedef uvlong Devbytes, Devsects;
  2. typedef struct Biosdrive Biosdrive; /* 1 drive -> ndevs */
  3. typedef struct Biosdev Biosdev;
  4. struct Biosdrive {
  5. int ndevs;
  6. };
  7. struct Biosdev {
  8. Devbytes size;
  9. Devbytes offset;
  10. uchar id;
  11. char type;
  12. };
  13. int biosboot(int dev, char *file, Boot *b);
  14. void* biosgetfspart(int i, char *name, int chatty);
  15. void biosinitdev(int i, char *name);
  16. int biosinit(void);
  17. void biosprintbootdevs(int dev);
  18. void biosprintdevs(int i);
  19. long biosread(Fs *fs, void *a, long n);