home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s053 / 8.ddi / usr / include / sys / alttbl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-08  |  1.5 KB  |  43 lines

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