disk.h 446 B

1234567891011121314
  1. /* Disk layer: read sectors via direct FDC + ISA DMA in protected mode. */
  2. #ifndef DISK_H
  3. #define DISK_H
  4. /* Read count sectors starting at lba into buf.
  5. * Returns 0 on success, -1 on error. */
  6. int disk_read_sectors(unsigned int lba, void *buf, unsigned int count);
  7. /* Write count sectors from buf starting at lba.
  8. * Returns 0 on success, -1 on error. */
  9. int disk_write_sectors(unsigned int lba, const void *buf, unsigned int count);
  10. #endif