Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / verif / env / niu / vera / niu_tokens / include / niu_rxtoken.vri
CommitLineData
86530b38
AT
1// ========== Copyright Header Begin ==========================================
2//
3// OpenSPARC T2 Processor File: niu_rxtoken.vri
4// Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
5// 4150 Network Circle, Santa Clara, California 95054, U.S.A.
6//
7// * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8//
9// This program is free software; you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation; version 2 of the License.
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// For the avoidance of doubt, and except that if any non-GPL license
23// choice is available it will apply instead, Sun elects to use only
24// the General Public License version 2 (GPLv2) at this time for any
25// software where a choice of GPL license versions is made
26// available with the language indicating that GPLv2 or any later version
27// may be used, or where a choice of which version of the GPL is applied is
28// otherwise unspecified.
29//
30// Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
31// CA 95054 USA or visit www.sun.com if you need additional information or
32// have any questions.
33//
34// ========== Copyright Header End ============================================
35#define GOOD_RxPKT 0
36#define DROP_RxPKT 1
37#define RNGFULL_DROP_RxPKT 2
38#define BUFFSIZE_EXCEEDED_DROP_RxPKT 3
39#define VALID_DISABLED_DROP_RxPKT 4
40#define CRCACHE_FULL_DROP_RxPKT 5
41#define RUNT_DROP_RxPKT 6
42
43
44// Enumerations for the network/host/memory/misc errors to be passed to checker through RxToken
45
46#define RX_TEST_CLASS_NO_ERR0R 64'h0000_0000_0000_0000
47#define MEM_ERR0R_RBR_CACHE_PARITY_ERR 64'h0000_0000_0000_0001
48#define MEM_ERR0R_RCR_CACHE_PARITY_ERR 64'h0000_0000_0000_0002
49#define MEM_ERR0R_IPP_DFIFO_SINGLE_BIT_ECC 64'h0000_0000_0000_0004
50#define MEM_ERR0R_IPP_DFIFO_DOUBLE_BIT_ECC 64'h0000_0000_0000_0008
51#define MEM_ERR0R_IPP_CFIFO_SINGLE_BIT_ECC 64'h0000_0000_0000_0010
52#define MEM_ERR0R_IPP_CFIFO_DOUBLE_BIT_ECC 64'h0000_0000_0000_0020
53
54#define NTWK_ERR0R_CRC_ERR 64'h0000_0000_0000_0040
55#define NTWK_ERR0R_CHECKSUM_ERR 64'h0000_0000_0000_0080
56
57#define RXDMA_ERR0R_RINGS_LOGICAL_PAGE_ERR 64'h0000_0000_0000_0100
58#define RXDMA_ERR0R_BUFFER_LOGICAL_PAGE_ERR 64'h0000_0000_0000_0200
59#define RXDMA_ERR0R_RBR_FULL_ERR 64'h0000_0000_0000_0400
60#define RXDMA_ERR0R_RBR_EMPTY_ERR 64'h0000_0000_0000_0800
61#define RXDMA_ERR0R_RCR_FULL_ERR 64'h0000_0000_0000_1000
62#define RXDMA_ERR0R_RCR_INCONSISTENCY_ERR 64'h0000_0000_0000_2000
63#define RXDMA_ERR0R_RINGS_PAGE_ALIGNMENT_ERR 64'h0000_0000_0000_4000
64#define RXDMA_ERR0R_RCR_SHADOW_FULL_DROP 64'h0000_0000_0000_8000
65#define RXDMA_ERR0R_RCR_PREFETCH_EMPTY_DROP 64'h0000_0000_0001_0000
66#define RXDMA_ERR0R_WRED_DROP 64'h0000_0000_0002_0000
67#define RXDMA_ERR0R_PORT_DROP_PKT 64'h0000_0000_0004_0000
68
69#define HOST_RCR_ACK_TIMEOUT_ERR0R 64'h0000_0000_0008_0000
70#define HOST_READ_RESP_TIMEOUT_ERR0R 64'h0000_0000_0010_0000
71#define HOST_READ_RESP_SINGLE_BIT_ECC_ERR0R 64'h0000_0000_0020_0000
72#define HOST_READ_RESP_DOUBLE_BIT_ECC_ERR0R 64'h0000_0000_0040_0000
73#define HOST_READ_RESP_DATA_PARITY_ERR0R 64'h0000_0000_0080_0000
74#define HOST_READ_RESP_UNCORRECTIBLE_ERR0R 64'h0000_0000_0100_0000
75#define HOST_READ_RESP_UNMAPPED_ERR0R 64'h0000_0000_0200_0000
76#define HOST_WRITE_ACK_SINGLE_BIT_ECC_ERR0R 64'h0000_0000_0400_0000
77#define HOST_WRITE_ACK_DOUBLE_BIT_ECC_ERR0R 64'h0000_0000_0800_0000
78#define HOST_WRITE_ACK_UNCORRECTIBLE_ERR0R 64'h0000_0000_1000_0000
79#define HOST_WRITE_ACK_UNMAPPED_ERR0R 64'h0000_0000_2000_0000
80
81#define NEP_RD_HOST_PEU_ECRC_ERR 64'h0000_0000_4000_0000
82#define NEP_RD_HOST_PEU_POISON_ERR 64'h0000_0000_8000_0000
83#define NEP_RD_HOST_PEU_MAL_LEN_TLP_ERR 64'h0000_0001_0000_0000
84#define NEP_RD_HOST_PEU_MAL_TLP_NULL_ERR 64'h0000_0002_0000_0000
85#define NEP_RD_HOST_PEU_MAL_TLP_NULL_PLOAD_ERR 64'h0000_0004_0000_0000
86
87/* TO BE USED ONLY FOR NIU_CORE HARD-RESET TESTCASES*/
88#define RX_TEST_CLASS_MAYBE_DROPED 64'h0000_0008_0000_0000