/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2012 Gary Mills
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2009, Pyun YongHyeon <yongari@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice unmodified, this list of conditions, and the following
* disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#ifndef _ATGE_CMN_REG_H
#define _ATGE_CMN_REG_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* Station Address
*/
/*
* Interrupt related registers.
*/
/* L1E intr status */
/*
* L1E specific errors. We keep it here since some errors are common for
* both L1 and L1E chip.
*
*/
#define L1E_INTR_ERRORS \
/*
* TXQ CFG registers.
*/
#define TXQ_CFG_TPD_BURST_SHIFT 0
/*
* Common registers for DMA CFG.
*/
/* L1E specific but can go into common regs */
/*
* Common PHY registers.
*/
#define MDIO_DATA_SHIFT 0
#define MDIO_REG_ADDR(x) \
(((x) << MDIO_REG_ADDR_SHIFT) & MDIO_REG_ADDR_MASK)
#define ATGE_PHY_ADDR 0
#define DESC_TPD_CNT_SHIFT 0
/* From Freebsd if_alcreg.h */
/* 0x0000 - 0x02FF : PCIe configuration space */
#define SMB_STAT_TIMER_SHIFT 0
#define CMB_TD_THRESH_SHIFT 0
#define CMB_TX_TIMER_SHIFT 0
#define MBOX_RD_PROD_SHIFT 0
#define MBOX_TD_PROD_HI_IDX_SHIFT 0
#define MBOX_TD_CONS_HI_IDX_SHIFT 0
#define MBOX_RD0_CONS_IDX_SHIFT 0
#define MBOX_RD2_CONS_IDX_SHIFT 0
#define INTR_RETRIG_TIMER_SHIFT 0
/* End Freebsd if_alcreg.h */
#define MBOX_RD_PROD_IDX_SHIFT 0
#define IPG_IFG_IPGT_SHIFT 0
/* half-duplex parameter configuration. */
#define HDPX_CFG_LCOL_SHIFT 0
/* WOL pattern length. */
#define ATGE_IM_TIMER_MIN 0
#define IM_TIMER_TX_SHIFT 0
#define RXQ_JUMBO_CFG_SZ_THRESH_SHIFT 0
#define RXQ_FIFO_PAUSE_THRESH_LO_SHIFT 0
/*
* RXQ CFG register.
*/
/* 64bit multicast hash register. */
/* From Freebsd if_alcreg.h */
#define ANA_IECHO_ADJ_3_SHIFT 0
#define ANA_SERDES_CDR_BW_SHIFT 0
#define ANA_TEST_MODE_10BT_01SHIFT 0
#define ANA_LONG_CABLE_TH_100_SHIFT 0
/* End Freebsd if_alcreg.h */
#define ATGE_TD_BUFLEN_SHIFT 0
#define ATGE_TX_BYTES(x) \
(((x) << ATGE_TD_BUFLEN_SHIFT) & ATGE_TD_BUFLEN_MASK)
#ifdef __cplusplus
}
#endif
#endif /* _ATGE_CMN_REG_H */