You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef FS_H
  2. #define FS_H
  3. #include <stdint.h>
  4. //typedef uint64_t sector_t;
  5. #ifdef IDE_DISK
  6. int ide_probe(int drive);
  7. int ide_read(int drive, sector_t sector, void *buffer);
  8. #endif
  9. #ifdef USB_DISK
  10. int usb_probe(int drive);
  11. int usb_read(int drive, sector_t sector, void *buffer);
  12. #endif
  13. #define DISK_IDE 1
  14. #define DISK_MEM 2
  15. #define DISK_USB 3
  16. int devopen(const char *name, int *reopen);
  17. int devread(unsigned long sector, unsigned long byte_offset,
  18. unsigned long byte_len, void *buf);
  19. int file_open(const char *filename);
  20. int file_read(void *buf, unsigned long len);
  21. int file_seek(unsigned long offset);
  22. unsigned long file_size(void);
  23. #define PARTITION_UNKNOWN 0xbad6a7
  24. #ifdef ELTORITO
  25. int open_eltorito_image(int part, unsigned long *start, unsigned long *length);
  26. #else
  27. # define open_eltorito_image(x,y,z) PARTITION_UNKNOWN
  28. #endif
  29. extern int using_devsize;
  30. #endif /* FS_H */