home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1035 / btt.h next >
C/C++ Source or Header  |  1990-12-28  |  619b  |  25 lines

  1. /*
  2. **        Bad Track Table
  3. **    This block contains the mapping between bad tracks and their
  4. **    replacements (or alternates).  This table occupies the second
  5. **    to last sector in the active partition.
  6. **    $Header: btt.h,v 1.2 87/09/16 02:11:51 root Exp $
  7. */
  8.  
  9. #ifndef BTT_H
  10. #define BTT_H
  11.  
  12. typedef struct {
  13.         unsigned short  bad_cylinder;
  14.         unsigned char   bad_track;
  15.         unsigned short  new_cylinder;
  16.         unsigned char   new_track;
  17. } badtrack;
  18.  
  19. #define BADTRACKMAPS_PER_SECTOR    85    /* 85 * sizeof(bad_track_map) == 510 */
  20.  
  21. typedef badtrack btt_t[BADTRACKMAPS_PER_SECTOR + 1]; /* > 512 */
  22.  
  23. #endif /* BTT_H */
  24.  
  25.