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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [29k-share/] [udi/] [udiids.h] - Blame information for rev 578

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* This file contains the DFE and TIP IDs to be used by AMD products for
2
   the UDICapabilities call.
3
 
4
   Copyright 1993 Free Software Foundation, Inc.
5
 
6
   This file is part of GDB.
7
 
8
   This program is free software; you can redistribute it and/or modify
9
   it under the terms of the GNU General Public License as published by
10
   the Free Software Foundation; either version 2 of the License, or
11
   (at your option) any later version.
12
 
13
   This program is distributed in the hope that it will be useful,
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with this program; if not, write to the Free Software
20
   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
21
 
22
        /* Company Codes -- AMD assigns these */
23
#define UDICompanyCode_AMD 1
24
 
25
        /* Build a UDIID given a CompanyProdCode and 3 version pieces */
26
#define UDIID(CompanyProdCode, v1,v2,v3) ((((CompanyProdCode) & 0xfffff)<<12)+\
27
                                  (((v1)&0xf)<<8) + (((v2)&0xf)<<4) + ((v3)&0xf))
28
 
29
 
30
        /* Extract a CompanyProdCode or a Version from a UDIID */
31
#define UDIID_CompanyProdCode(id) (((id)>>12) & 0xfffff)
32
#define UDIID_Version(id) ((id)&0xfff)
33
 
34
 
35
#define UDIAMDProduct(ProdCode) ((UDICompanyCode_AMD<<4) + (ProdCode&0xf))
36
 
37
        /* AMD DFE Product Codes */
38
#define UDIProductCode_Mondfe UDIAMDProduct(0)
39
#define UDIProductCode_XRAY   UDIAMDProduct(1)
40
#define UDIProductCode_TIPTester  UDIAMDProduct(2)
41
 
42
        /* AMD TIP Product Codes (need not be distinct from DFE Product Codes) */
43
#define UDIProductCode_Montip UDIAMDProduct(0)
44
#define UDIProductCode_Isstip UDIAMDProduct(1)
45
 
46
 
47
#define UDILatestVersion 0x120  /* UDI 1.2.0, can be used in DFE and TIP desired UDI params */
48
 

powered by: WebSVN 2.1.0

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