home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / C-FDC / FDC.H < prev    next >
Text File  |  1986-05-06  |  1KB  |  62 lines

  1. /* header file for fast diskcopy */
  2.  
  3. /* defines for INT 13 */
  4.  
  5. #define DISKINT  0x13
  6.  
  7. #define DISKRESET 0x0000
  8. #define READSTATUS 0x0100
  9. #define READSECS   0x0200
  10. #define WRITESECS  0x0300
  11. #define VERIFYTR   0x0400
  12. #define FORMATTR   0x0500
  13. #define READDASD 0x1500
  14. #define SETDASD  0x1700
  15.  
  16. #define MAXSECT 26
  17. #define MAXDRIVES 2
  18.  
  19. /* struct tag for get allocation type info  */
  20.  
  21. struct ati {
  22.     char media_type;
  23.     int sector_au;
  24.     unsigned int au;
  25.     int sector_size;
  26. };
  27.  
  28. /*    defines for DISK_POINTER, the pointer to the disk parameter blocks */
  29.  
  30. #define DSK_PTR_SEG 0
  31. #define DSK_PTR_OFF 78
  32.  
  33. /* struct tag for disk paramter block */
  34. struct dpb {
  35.     char first;
  36.     char second;
  37.     char motor_wait_off;
  38.     char sector_type;
  39.     char gap_length;
  40.     char eot;
  41.     char dtl;
  42.     char format_gap_length;
  43.     char fill_byte;
  44.     char head_settle_time;
  45.     char motor_start_time;
  46. };
  47.  
  48.  
  49. /* 
  50.  * prototypes for functions 
  51.  */
  52.  
  53. struct ati *getati(int drive);
  54. int getdasd(int drive);
  55. int setdasd(int drive, int type);
  56. int fmtrack(int drive, int head, int track, int max_sect, int sect_type);
  57. int rdtrack(int drive, int head, int track, int start_sect, int max_sect, 
  58.     char *buf);
  59. int wrtrack(int drive, int head, int track, int start_sect, int max_sect, 
  60.     char *buf);
  61.  
  62.