home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / gdb-4.9 / gdb / 29k-share / udi / udiids.h next >
Encoding:
C/C++ Source or Header  |  1993-05-12  |  2.1 KB  |  56 lines

  1. /******************************************************************************
  2.  * Copyright 1991 Advanced Micro Devices, Inc.
  3.  *
  4.  * This software is the property of Advanced Micro Devices, Inc  (AMD)  which
  5.  * specifically  grants the user the right to modify, use and distribute this
  6.  * software provided this notice is not removed or altered.  All other rights
  7.  * are reserved by AMD.
  8.  *
  9.  * AMD MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS
  10.  * SOFTWARE.  IN NO EVENT SHALL AMD BE LIABLE FOR INCIDENTAL OR CONSEQUENTIAL
  11.  * DAMAGES IN CONNECTION WITH OR ARISING FROM THE FURNISHING, PERFORMANCE, OR
  12.  * USE OF THIS SOFTWARE.
  13.  *
  14.  * Comments about this software should be directed to udi@amd.com. If access
  15.  * to electronic mail isn't available, send mail to:
  16.  *
  17.  * Advanced Micro Devices, Inc.
  18.  * 29K Support Products
  19.  * Mail Stop 573
  20.  * 5900 E. Ben White Blvd.
  21.  * Austin, TX 78741
  22.  *****************************************************************************
  23.  *       $Id: @(#)udiids.h    2.3, AMD
  24.  */
  25.  
  26. /*  This file contains the DFE and TIP IDs to be used by AMD products for */
  27. /*  the UDICapabilities call                                              */
  28.  
  29.     /* Company Codes -- AMD assigns these */
  30. #define UDICompanyCode_AMD 1
  31.  
  32.     /* Build a UDIID given a CompanyProdCode and 3 version pieces */
  33. #define UDIID(CompanyProdCode, v1,v2,v3) ((((CompanyProdCode) & 0xfffff)<<12)+\
  34.                   (((v1)&0xf)<<8) + (((v2)&0xf)<<4) + ((v3)&0xf)) 
  35.  
  36.  
  37.     /* Extract a CompanyProdCode or a Version from a UDIID */
  38. #define UDIID_CompanyProdCode(id) (((id)>>12) & 0xfffff)
  39. #define UDIID_Version(id) ((id)&0xfff)
  40.  
  41.  
  42. #define UDIAMDProduct(ProdCode) ((UDICompanyCode_AMD<<4) + (ProdCode&0xf))
  43.  
  44.     /* AMD DFE Product Codes */
  45. #define UDIProductCode_Mondfe UDIAMDProduct(0)
  46. #define UDIProductCode_XRAY   UDIAMDProduct(1)
  47. #define UDIProductCode_TIPTester  UDIAMDProduct(2)
  48.  
  49.     /* AMD TIP Product Codes (need not be distinct from DFE Product Codes) */
  50. #define UDIProductCode_Montip UDIAMDProduct(0)
  51. #define UDIProductCode_Isstip UDIAMDProduct(1)
  52.  
  53.  
  54. #define UDILatestVersion 0x120    /* UDI 1.2.0, can be used in DFE and TIP desired UDI params */
  55.  
  56.