home *** CD-ROM | disk | FTP | other *** search
/ Jason Aller Floppy Collection / 202.img / SCO386N2.TD0 / usr / include / sys / ecc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1988-05-18  |  939 b   |  43 lines

  1. /*
  2.  *    @(#) ecc.h 1.1 88/05/18 
  3.  *
  4.  *    Copyright (C) The Santa Cruz Operation, 1987, 1988.
  5.  *    Copyright (C) Microsoft Corporation, 1987.
  6.  *    This Module contains Proprietary Information of
  7.  *    The Santa Cruz Operation, Microsoft Corporation
  8.  *    and AT&T, and should be treated as Confidential.
  9.  */
  10.  
  11. #define MAXSINGLE 10
  12. #define MAXTMPBAD 10
  13.  
  14. #define MAXBADPGS 40 
  15.  
  16. #define EDAC      ('E'<<8)
  17. #define EDACGET   (EDAC|1)
  18. #define EDACRESET (EDAC|2)
  19.  
  20. /*
  21.  * Structure returned by the edac driver's EDACGET ioctl(). 
  22.  * Also cleared by the EDACRESET ioctl().
  23.  */
  24. struct softerr {
  25.     long s_nsofterrs;
  26.     struct { 
  27.         long s_pfn;
  28.         long s_errcount;
  29.     } s[MAXSINGLE];
  30. };
  31.  
  32. /*
  33.  * The structure that the driver reads and writes.  Writing
  34.  * out a new bad page list is a privileged (superuser only) operation.
  35.  * The driver computes the checksum. 
  36.  */
  37.  
  38. struct badmem {
  39.     unsigned long bp_chksum;
  40.     unsigned long bp_maxbad;
  41.     unsigned long bp_badpage[MAXBADPGS];
  42. };
  43.