/*
* 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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_NXGE_NXGE_MII_H_
#define _SYS_NXGE_NXGE_MII_H_
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/*
* Configuration Register space.
*/
/* Shadow register definition */
/*
* Configuration Register space.
*/
typedef struct _mii_regs {
/*
* MII Register 0: Basic mode control register.
*/
typedef union _mii_bmcr {
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} bits;
/*
* MII Register 1: Basic mode status register.
*/
typedef union _mii_bmsr {
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} bits;
/*
* MII Register 2: Physical Identifier 1.
*/
/* contains BCM OUI bits [3:18] */
typedef union _mii_idr1 {
struct {
} bits;
/*
* MII Register 3: Physical Identifier 2.
*/
typedef union _mii_idr2 {
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} bits;
/*
* MII Register 4: Auto-negotiation advertisement register.
*/
typedef union _mii_anar {
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} bits;
/*
* MII Register 5: Auto-negotiation link partner ability register.
*/
/*
* MII Register 6: Auto-negotiation expansion register.
*/
typedef union _mii_aner {
struct {
#if defined(_BIT_FIELDS_HTOL)
#else
#endif
} bits;
/*
* MII Register 7: Next page transmit register.
*/
typedef union _mii_nptxr {
struct {
#if defined(_BIT_FIELDS_HTOL)
#else
#endif
} bits;
/*
* MII Register 8: Link partner received next page register.
*/
typedef union _mii_lprxnpr {
struct {
#if defined(_BIT_FIELDS_HTOL)
#else
#endif
} bits;
/*
* MII Register 9: 1000BaseT control register.
*/
typedef union _mii_gcr {
struct {
#if defined(_BIT_FIELDS_HTOL)
#else
#endif
} bits;
/*
* MII Register 10: 1000BaseT status register.
*/
typedef union _mii_gsr {
struct {
#if defined(_BIT_FIELDS_HTOL)
#else
#endif
} bits;
/*
* MII Register 15: Extended status register.
*/
typedef union _mii_esr {
struct {
#if defined(_BIT_FIELDS_HTOL)
#else
#endif
} bits;
/* Shadow regiser 0x11111 */
typedef union _mii_mode_control_stat {
struct {
#if defined(_BIT_FIELDS_HTOL)
#elif defined(_BIT_FIELDS_LTOH)
#endif
} bits;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_NXGE_NXGE_MII_H_ */