home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0010 - 0019 / ibm0010-0019 / ibm0010.tar / ibm0010 / UNIX3862.ZIP / U386-06.ZIP / U386-6.TD0 / usr / include / sys / alttbl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-06-26  |  1.2 KB  |  37 lines

  1. /*    Copyright (c) 1984, 1986, 1987, 1988 AT&T    */
  2. /*      All Rights Reserved      */
  3.  
  4. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T    */
  5. /*    The copyright notice above does not evidence any       */
  6. /*    actual or intended publication of such source code.    */
  7.  
  8. #ident    "@(#)head.sys:alttbl.h    1.8"
  9.  
  10. /*
  11.  * ALTTBL.H
  12.  *
  13.  * This file defines the bad block table for the hard disk driver.
  14.  *    The same table structure is used for the bad track table.
  15. */
  16.  
  17. #define MAX_ALTENTS     253    /* Maximum # of slots for alts    */
  18.                 /* allowed for in the table.    */
  19.  
  20. #define ALT_SANITY      0xdeadbeef      /* magic # to validate alt table */
  21. #define ALT_VERSION    0x02        /* version of table          */
  22.  
  23. struct  alt_table {
  24.     ushort  alt_used;    /* # of alternates already assigned    */
  25.     ushort  alt_reserved;    /* # of alternates reserved on disk    */
  26.     daddr_t alt_base;    /* 1st sector (abs) of the alt area    */
  27.     daddr_t alt_bad[MAX_ALTENTS];    /* list of bad sectors/tracks    */
  28. };
  29.  
  30. struct alt_info {    /* table length should be multiple of 512    */
  31.     long    alt_sanity;    /* to validate correctness        */
  32.     ushort  alt_version;    /* to corroborate vintage        */
  33.     ushort  alt_pad;    /* padding for alignment        */
  34.     struct alt_table alt_trk;    /* bad track table    */
  35.     struct alt_table alt_sec;    /* bad sector table    */
  36. };
  37.