* ========== Copyright Header Begin ==========================================
* OpenSPARC T2 Processor File: xmac.h
* Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved
* 4150 Network Circle, Santa Clara, California 95054, U.S.A.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* 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
* the Free Software Foundation; version 2 of the License.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
* For the avoidance of doubt, and except that if any non-GPL license
* choice is available it will apply instead, Sun elects to use only
* the General Public License version 2 (GPLv2) at this time for any
* software where a choice of GPL license versions is made
* available with the language indicating that GPLv2 or any later version
* may be used, or where a choice of which version of the GPL is applied is
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* ========== Copyright Header End ============================================
/*************************************************************************
* Copyright (c) 2002, Sun Microsystems, Inc.
* Sun Proprietary and Confidential
*************************************************************************/
`define DBYTE
15:0 // double bytes
`define DBYTE_WIDTH
16 // double bytes
`define QBYTE
31:0 // quad bytes
`define TBITS_WIDTH
23 //
`define REMOTE_FAULT_SEQ
{8'h02
,8'h00
,8'h00
,`SEQ
,8'h02
,8'h00
,8'h00
,`SEQ
}
// ***********************
// * Mac host info table *
// ***********************
// * mode host_id def_qpn*
// ***********************
// 2'b00(2),mac_addr_index(6),def_QP(8),mode_bit,local_cpu,ph_bit,mu_bit
`define H_INFO_WIDTH
18 // perfect match register width
`define H_INFO `H_INFO_WIDTH
- 1 : 0
`define MAC_CTRL_WIDTH `H_INFO_WIDTH
+ 2
`define MAC_CTRL `H_INFO_WIDTH
+ 1 : 0
// ***********************
// ***********************
`define XMAC0_ADDR_OFFSET
4'h0
`define XPCS0_ADDR_OFFSET
4'h1
`define PCS0_ADDR_OFFSET
4'h2
`define XMAC1_ADDR_OFFSET
4'h3
`define XPCS1_ADDR_OFFSET
4'h4
`define PCS1_ADDR_OFFSET
4'h5
`define BMAC2_ADDR_OFFSET
4'h6
`define PCS2_ADDR_OFFSET
4'h7
`define BMAC3_ADDR_OFFSET
4'h8
`define PCS3_ADDR_OFFSET
4'h9
`define ESR_ADDR_OFFSET
4'ha
`define MIF_ADDR_OFFSET
4'hb
// *********************************
// * 20to10 and 10to20 conversion
// *********************************
`define SEL_mac_training_vector
4'hF
////////////////////////////////////////////////////////////////////////////
// The following two ifdef variable defines the mix-and-match configuration
// ALT_ADDR_AND_HASH_FUNC : defines extra mac alternative address
// matching and multicast address hashing filter
// function. This is mainly for NIC application.
// XGMII_ONLY : selects between 10G only mac vs quad speed mac
////////////////////////////////////////////////////////////////////////////
`define ALT_ADDR_AND_HASH_FUNC
1
`define FULL_DUPLEX_ONLY
1
//`define USE_XGMII_INTF 1
// Defines divider clock and loopback clock polarity
`define USE_NON_INVERTING_CLOCK
1