OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [29k-share/] [udi/] [udiids.h] - Diff between revs 107 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/* This file contains the DFE and TIP IDs to be used by AMD products for
/* This file contains the DFE and TIP IDs to be used by AMD products for
   the UDICapabilities call.
   the UDICapabilities call.
 
 
   Copyright 1993 Free Software Foundation, Inc.
   Copyright 1993 Free Software Foundation, Inc.
 
 
   This file is part of GDB.
   This file is part of GDB.
 
 
   This program is free software; you can redistribute it and/or modify
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   (at your option) any later version.
 
 
   This program is distributed in the hope that it will be useful,
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   GNU General Public License for more details.
 
 
   You should have received a copy of the GNU General Public License
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   along with this program; if not, write to the Free Software
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 
        /* Company Codes -- AMD assigns these */
        /* Company Codes -- AMD assigns these */
#define UDICompanyCode_AMD 1
#define UDICompanyCode_AMD 1
 
 
        /* Build a UDIID given a CompanyProdCode and 3 version pieces */
        /* Build a UDIID given a CompanyProdCode and 3 version pieces */
#define UDIID(CompanyProdCode, v1,v2,v3) ((((CompanyProdCode) & 0xfffff)<<12)+\
#define UDIID(CompanyProdCode, v1,v2,v3) ((((CompanyProdCode) & 0xfffff)<<12)+\
                                  (((v1)&0xf)<<8) + (((v2)&0xf)<<4) + ((v3)&0xf))
                                  (((v1)&0xf)<<8) + (((v2)&0xf)<<4) + ((v3)&0xf))
 
 
 
 
        /* Extract a CompanyProdCode or a Version from a UDIID */
        /* Extract a CompanyProdCode or a Version from a UDIID */
#define UDIID_CompanyProdCode(id) (((id)>>12) & 0xfffff)
#define UDIID_CompanyProdCode(id) (((id)>>12) & 0xfffff)
#define UDIID_Version(id) ((id)&0xfff)
#define UDIID_Version(id) ((id)&0xfff)
 
 
 
 
#define UDIAMDProduct(ProdCode) ((UDICompanyCode_AMD<<4) + (ProdCode&0xf))
#define UDIAMDProduct(ProdCode) ((UDICompanyCode_AMD<<4) + (ProdCode&0xf))
 
 
        /* AMD DFE Product Codes */
        /* AMD DFE Product Codes */
#define UDIProductCode_Mondfe UDIAMDProduct(0)
#define UDIProductCode_Mondfe UDIAMDProduct(0)
#define UDIProductCode_XRAY   UDIAMDProduct(1)
#define UDIProductCode_XRAY   UDIAMDProduct(1)
#define UDIProductCode_TIPTester  UDIAMDProduct(2)
#define UDIProductCode_TIPTester  UDIAMDProduct(2)
 
 
        /* AMD TIP Product Codes (need not be distinct from DFE Product Codes) */
        /* AMD TIP Product Codes (need not be distinct from DFE Product Codes) */
#define UDIProductCode_Montip UDIAMDProduct(0)
#define UDIProductCode_Montip UDIAMDProduct(0)
#define UDIProductCode_Isstip UDIAMDProduct(1)
#define UDIProductCode_Isstip UDIAMDProduct(1)
 
 
 
 
#define UDILatestVersion 0x120  /* UDI 1.2.0, can be used in DFE and TIP desired UDI params */
#define UDILatestVersion 0x120  /* UDI 1.2.0, can be used in DFE and TIP desired UDI params */
 
 
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.