| 1 | // ========== Copyright Header Begin ========================================== |
| 2 | // |
| 3 | // OpenSPARC T2 Processor File: tx_test_class_defines.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 PKT_PRT_ERR 64'h1 |
| 36 | #define CONF_PART_ERR 64'h2 |
| 37 | #define NACK_PKT_RD 64'h4 |
| 38 | #define NACK_PERF 64'h8 |
| 39 | #define PERF_BUF_PAR_ERR 64'h10 |
| 40 | #define TX_RING_OFLOW 64'h20 |
| 41 | #define PKT_SIZE_ERR 64'h40 |
| 42 | #define MBOX_ERR 64'h80 |
| 43 | |
| 44 | #define PKT_PRT_ERR_MASK 64'h1 |
| 45 | #define CONF_PART_ERR_MASK 64'h2 |
| 46 | #define NACK_PKT_RD_MASK 64'h4 |
| 47 | #define NACK_PERF_MASK 64'h8 |
| 48 | #define PERF_BUF_PAR_ERR_MASK 64'h10 |
| 49 | #define TX_RING_OFLOW_MASK 64'h20 |
| 50 | #define PKT_SIZE_ERR_MASK 64'h40 |
| 51 | #define MBOX_ERR_MASK 64'h80 |
| 52 | |
| 53 | #define SF_CorrecrError_P0 64'h1 |
| 54 | #define SF_UnCorrecrError_P0 64'h2 |
| 55 | #define RO_CorrecrError_P0 64'h4 |
| 56 | #define RO_UnCorrecrError_P0 64'h8 |
| 57 | #define ReorderError_P0 64'h10 |
| 58 | #define PacketAssyDead_P0 64'h20 |
| 59 | |
| 60 | #define SF_CorrecrError_P1 64'h100 |
| 61 | #define SF_UnCorrecrError_P1 64'h200 |
| 62 | #define RO_CorrecrError_P1 64'h400 |
| 63 | #define RO_UnCorrecrError_P1 64'h800 |
| 64 | #define ReorderError_P1 64'h1000 |
| 65 | #define PacketAssyDead_P1 64'h2000 |
| 66 | |
| 67 | #define SF_CorrecrError_P2 64'h10000 |
| 68 | #define SF_UnCorrecrError_P2 64'h20000 |
| 69 | #define RO_CorrecrError_P2 64'h40000 |
| 70 | #define RO_UnCorrecrError_P2 64'h80000 |
| 71 | #define ReorderError_P2 64'h100000 |
| 72 | #define PacketAssyDead_P2 64'h200000 |
| 73 | |
| 74 | #define SF_CorrecrError_P3 64'h1000000 |
| 75 | #define SF_UnCorrecrError_P3 64'h2000000 |
| 76 | #define RO_CorrecrError_P3 64'h4000000 |
| 77 | #define RO_UnCorrecrError_P3 64'h8000000 |
| 78 | #define ReorderError_P3 64'h10000000 |
| 79 | #define PacketAssyDead_P3 64'h20000000 |
| 80 | |
| 81 | // Tx FIFO Error Injection |
| 82 | |
| 83 | #define TxFIFO_SF_ERROR (64'h1<<24) |
| 84 | #define TxFIFO_RO_ERROR (64'h2<<24) |
| 85 | #define TxFIFO_CorrectError (64'h1<<16) |
| 86 | #define TxFIFO_UnCorrectError (64'h2<<16) |
| 87 | |
| 88 | #define TxFIFO_ErrorAllPkts (64'h4 <<8) |
| 89 | #define TxFIFO_ErrorAltPkts (64'h2 <<8) |
| 90 | #define TxFIFO_ErrorSinglePkts (64'h1 <<8) |
| 91 | |
| 92 | #define TxFIFO_ErrorFirstLine 64'h1 |
| 93 | #define TxFIFO_ErrorSecondLine 64'h2 |
| 94 | #define TxFIFO_ErrorLastLine 64'h4 |
| 95 | |