Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * OpenSPARC T2 Processor File: pcs_define.h | |
5 | * Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
6 | * 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
7 | * | |
8 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or modify | |
11 | * it under the terms of the GNU General Public License as published by | |
12 | * the Free Software Foundation; version 2 of the License. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 | * | |
23 | * For the avoidance of doubt, and except that if any non-GPL license | |
24 | * choice is available it will apply instead, Sun elects to use only | |
25 | * the General Public License version 2 (GPLv2) at this time for any | |
26 | * software where a choice of GPL license versions is made | |
27 | * available with the language indicating that GPLv2 or any later version | |
28 | * may be used, or where a choice of which version of the GPL is applied is | |
29 | * otherwise unspecified. | |
30 | * | |
31 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
32 | * CA 95054 USA or visit www.sun.com if you need additional information or | |
33 | * have any questions. | |
34 | * | |
35 | * | |
36 | * ========== Copyright Header End ============================================ | |
37 | */ | |
38 | /* @(#)pcs_define.v 1.2G */ | |
39 | /**********************************************************************/ | |
40 | /* Project Name : CASSINI */ | |
41 | /* Module Name : Definition of Constants for PCS */ | |
42 | /* */ | |
43 | /* Parent module : none. */ | |
44 | /* Child modules : none. */ | |
45 | /* Author Name : Linda Chen */ | |
46 | /* Date Created : 10/15/96 */ | |
47 | /* */ | |
48 | /* Copyright (c) 1994, Sun Microsystems, Inc. */ | |
49 | /* Sun Proprietary and Confidential */ | |
50 | /* */ | |
51 | /* Modifications : none */ | |
52 | /* Synthesis Notes : none */ | |
53 | /**********************************************************************/ | |
54 | ||
55 | /* | |
56 | ** PIO Defines | |
57 | */ | |
58 | `define PHY_PIO_MII_CONF 7'h00 | |
59 | `define PHY_PIO_MII_STAT 7'h01 | |
60 | `define PHY_PIO_MII_ADVER 7'h02 | |
61 | `define PHY_PIO_MII_PARTNER 7'h03 | |
62 | `define PHY_PIO_CONF_REG 7'h04 | |
63 | `define PHY_PIO_STATE 7'h05 | |
64 | `define PHY_PIO_INTERRUPT 7'h06 | |
65 | ||
66 | `define PHY_PIO_DPATH_MODE 7'h14 | |
67 | `define PHY_PIO_SER_CTRL 7'h15 | |
68 | `define PHY_PIO_SHARED 7'h16 | |
69 | `define PHY_PIO_SER_STATE 7'h17 | |
70 | `define PHY_PIO_PKT_CNT 7'h18 | |
71 | ||
72 | /* | |
73 | ** For use with Decoder to mark special characters with rx_8bdata | |
74 | ** Used in files pcs_rx_ctrl.v and file pcs_rx_dpath.v | |
75 | */ | |
76 | `define PCS_R_CHAR 0 | |
77 | `define PCS_S_CHAR 1 | |
78 | `define PCS_T_CHAR 2 | |
79 | `define PCS_H_CHAR 3 | |
80 | `define PCS_K285_CHAR 4 | |
81 | ||
82 | /* | |
83 | ** Rx Data Mux for GMII | |
84 | */ | |
85 | `define PCS_RXD_ZERO 3'h0 | |
86 | `define PCS_RXD_PREAMBLE 3'h1 | |
87 | `define PCS_RXD_FALSE_CARRIER 3'h2 | |
88 | `define PCS_RXD_CRS_EXT 3'h3 | |
89 | `define PCS_RXD_CRS_EXT_ER 3'h4 | |
90 | `define PCS_RXD_DECODER 3'h5 | |
91 | ||
92 | /* | |
93 | ** Tx Control Signals into Encoder | |
94 | ** Used by pcs_tx_ctrl.v and pcs_tx_dpath.v | |
95 | */ | |
96 | `define PCS_ENC_K285 4'h0 // tx_enc_ctrl_sel | |
97 | `define PCS_ENC_IDLE2 4'h1 | |
98 | `define PCS_ENC_SOP 4'h2 | |
99 | `define PCS_ENC_DATA 4'h3 | |
100 | `define PCS_ENC_T_CHAR 4'h4 | |
101 | `define PCS_ENC_R_CHAR 4'h5 | |
102 | `define PCS_ENC_IDLE1 4'h6 | |
103 | `define PCS_ENC_H_CHAR 4'h7 | |
104 | ||
105 | `define PCS_ENC_LINK_CONFA 4'h8 // specific to link config | |
106 | `define PCS_ENC_LINK_CONFB 4'h9 | |
107 | ||
108 | `define PCS_TX_GMII_DATA 2'h0 // for txd_sel | |
109 | `define PCS_TX_CONF_REG1 2'h1 | |
110 | `define PCS_TX_CONF_REG2 2'h2 | |
111 | `define PCS_TX_CONF_ZEROS 2'h3 | |
112 | ||
113 | /*******************************************************/ |