home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1997 #3 / amigamamagazinepolishissue03-1 / ma_shareware / mashare76 / identify / include / pascal / libraries / identify.h
Text File  |  1996-09-16  |  4KB  |  90 lines

  1. ** $VER: identify.h 4.0 (6.9.96) 
  2. ** 
  3. ** identify.library definitions 
  4. ** 
  5. ** (C) Copyright 1996 Richard Koerber 
  6. ** All Rights Reserved. 
  7. }
  8.  
  9. {$if not def LIBRARIES_IDENTIFY_H} CONST LIBRARIES_IDENTIFY_H=1;
  10.  
  11.  
  12. {$if not def EXEC_LIBRARIES_H;incl 'exec/libraries.h';endif}
  13. {$if not def UTILITY_TAGITEM_H;incl 'utility/tagitem.h';endif}
  14.  
  15. CONST  _IDTAGS      = $CD450000;
  16.  
  17. { --------------------------------------------------------------------------}
  18. { Generic library informations }
  19.  
  20. CONST  IDENTIFYVERSION = 4;
  21.  
  22. TYPE   p_IdentifyBase = ^_IdentifyBase;
  23.        _IdentifyBase  = Record
  24.                           ifyb_LibNode  :_Library;
  25.                         End;
  26.  
  27. CONST  IDENTIFYBUFLEN = 50;  { default buffer length }
  28.  
  29. { --------------------------------------------------------------------------}
  30. { Expansion() tags }
  31.  
  32.        IDTAG_ConfigDev = _IDTAGS+$00;   { "p_ConfigDev" ConfigDev }
  33.                                         { structure to be evaluated }
  34.        IDTAG_ManufID = _IDTAGS+$01;     { UWORD manufacturer ID if no }
  35.                                         { ConfigDev is available }
  36.        IDTAG_ProdID = _IDTAGS+$02;      { UBYTE product ID if no }
  37.                                         { ConfigDev is available }
  38.        IDTAG_StrLength = _IDTAGS+$03;   { UWORD of maximum buffer length, }
  39.                                         { including termination. Default }
  40.                                         { is 50. }
  41.        IDTAG_ManufStr = _IDTAGS+$04;    { STRPTR of manufacturer name }
  42.                                         { puffer, or NULL }
  43.        IDTAG_ProdStr = _IDTAGS+$05;     { STRPTR of product name }
  44.                                         { puffer, or NULL }
  45.        IDTAG_ClassStr = _IDTAGS+$06;    { STRPTR of product class }
  46.                                         { puffer, or NULL }
  47.        IDTAG_DeadStr = _IDTAGS+$07;     { STRPTR deadend or recoverable alert? }
  48.        IDTAG_SubsysStr = _IDTAGS+$08;   { STRPTR alert subsystem }
  49.        IDTAG_GeneralStr = _IDTAGS+$09;  { STRPTR alert general cause }
  50.        IDTAG_SpecStr = _IDTAGS+$0A;     { STRPTR alert specific cause }
  51.        IDTAG_FuncNameStr = _IDTAGS+$0B; { STRPTR function name }
  52.  
  53. { --------------------------------------------------------------------------}
  54. { Hardware description types }
  55.  
  56.        IDHW_SYSTEM = 0;  { System (Amiga,DraCo,...) }
  57.        IDHW_CPU = 1;  { CPU (68000,68010,...,68060) }
  58.        IDHW_FPU = 2;  { FPU (---,68881,68882,68040,68060) }
  59.        IDHW_MMU = 3;  { MMU (---,68852,68030,68040,68060) }
  60.        IDHW_OSVER = 4;  { OS Version (Vx.x) }
  61.        IDHW_EXECVER = 5;  { Exec Version (Vx.x) }
  62.        IDHW_WBVER = 6;  { Workbench Version (---,Vx.x) }
  63.        IDHW_ROMSIZE = 7;  { OS ROM Size (xKB, xMB) }
  64.        IDHW_CHIPSET = 8;  { Chipset (OCS,ECS,AGA,DraCo) }
  65.        IDHW_GFXSYS = 9;  { Graphics system (AmigaOS, CyberGraphX, ...) }
  66.        IDHW_CHIPRAM = 10;  { Chip RAM (xKB, xMB, xGB) }
  67.        IDHW_FASTRAM = 11;  { Fast RAM (xKB, xMB, xGB) }
  68.        IDHW_RAM = 12;  { Total RAM (xKB, xMB, xGB) }
  69.        IDHW_SETPATCHVER = 13; { SetPatch Version (---,Vx.x) }
  70.        IDHW_NUMBEROF = 14;  { Number of types, PRIVATE! }
  71.  
  72. { --------------------------------------------------------------------------}
  73. { Error codes }
  74.  
  75. { Positive error codes are DOS errors! }
  76.        IDERR_OKAY = 0;      { No error }
  77.        IDERR_NOLENGTH = -1; { Buffer length is 0 ?? }
  78.        IDERR_BADID = -2;    { Missing or bad board ID }
  79.        IDERR_NOMEM = -3;    { Not enough memory }
  80.        IDERR_NOFD = -4;     { No fitting FD file found }
  81.        IDERR_OFFSET = -5;   { Function offset not found }
  82.  
  83. { --------------------------------------------------------------------------}
  84. { That's all... }
  85.  
  86. {$endif} 
  87.  
  88.  
  89.