home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / alt_os / mint / mfs6011 / source / minixfs / hdio.h < prev    next >
C/C++ Source or Header  |  1994-05-13  |  1KB  |  50 lines

  1. /* Comment out this next line if you want to force ICD physical mode */
  2. /*#define NO_ICD_PHYS*/ 
  3.  
  4. extern char *hdd_err[];
  5.  
  6. extern char *size_err[];
  7.  
  8. /* This structue is set/passed by disk I/O functions. */
  9.  
  10.  
  11. struct hdinfo
  12. {
  13.     long start;    /* Partition start in physical sectors */
  14.     long size;    /* Partition size in physical sectors */
  15.     int scsiz;    /* Sector size 0=1K 1=512bytes */
  16.     int rwmode;    /* how to access partition */
  17.     /* Valid rw modes */
  18. #define RW_NORMAL    0x0    /* Normal Rwabs */
  19. #define RW_PHYS        0x1    /* Physical Rwabs */
  20. #define RW_XHDI        0x2    /* XHDI */
  21. #define RW_MODE        0x1f    /* Mask for I/O modes */
  22. #define RW_LRECNO    0x20    /* Use lrecno */
  23. #define RW_CHECK    0x40    /* Check partition boundaries */
  24.     int major;    /* major device number, unit number or device */
  25.     int minor;    /* minor device number or pun */
  26.     int drive;    /* Bios drive number */
  27. };
  28.  
  29. #ifdef __STDC__
  30. # define    P(s) s
  31. #else
  32. # define P(s) ()
  33. #endif
  34.  
  35.  
  36. /* hdio.c */
  37. int get_hddinf P((int drive , struct hdinfo *hdinf , int flag ));
  38. int _get_hddinf P((int drive , struct hdinfo *hdinf , int flag ));
  39. int set_lrecno P((struct hdinfo *hdinf , long size ));
  40. int test_lrecno P((int drive , int mode ));
  41. int no_lrecno P((int drv ));
  42. int no_plrecno P((int drv ));
  43. int no_xhdi P((void));
  44. int _no_xhdi P((void));
  45. int init_icd P((void));
  46. long block_rwabs P((int rw , void *buf , unsigned num , long recno , struct hdinfo *hdinf ));
  47. int get_size(int drive,long *size);
  48.  
  49. #undef P
  50.