2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _XAUI_H
2N/A#define _XAUI_H
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A/*
2N/A * When all we're provided is a physical slot number, these structures
2N/A * allow us to attach an accompanying label.
2N/A */
2N/Atypedef struct physnm {
2N/A int ps_num;
2N/A const char *ps_label;
2N/A} physnm_t;
2N/A
2N/Atypedef struct pphysnm {
2N/A const char *pnm_platform; /* platform on which the names apply */
2N/A int pnm_nnames; /* number of names */
2N/A struct physnm *pnm_names; /* array of labels */
2N/A} pphysnm_t;
2N/A
2N/Atypedef struct physlot_names {
2N/A int psn_nplats;
2N/A struct pphysnm *psn_names;
2N/A} physlot_names_t;
2N/A
2N/A/* T5120/T5220 xaui slot numbers */
2N/Aphysnm_t t5120_pnms[] = {
2N/A /* Slot #, Label */
2N/A { 0, "MB/RISER2/XAUI0" },
2N/A { 1, "MB/RISER3/XAUI1" }
2N/A};
2N/A
2N/A/* T5140/T5240 xaui slot numbers */
2N/Aphysnm_t t5140_pnms[] = {
2N/A /* Slot #, Label */
2N/A { 0, "MB/RISER0/XAUI0" },
2N/A { 1, "MB/RISER1/XAUI1" }
2N/A};
2N/A
2N/A/* T5440 xaui slot numbers */
2N/Aphysnm_t t5440_pnms[] = {
2N/A /* Slot #, Label */
2N/A { 0, "MB/XAUI0" },
2N/A { 1, "MB/XAUI1" }
2N/A};
2N/A
2N/Apphysnm_t plat_pnames[] = {
2N/A { "SPARC-Enterprise-T5120",
2N/A sizeof (t5120_pnms) / sizeof (physnm_t),
2N/A t5120_pnms },
2N/A { "SPARC-Enterprise-T5220",
2N/A sizeof (t5120_pnms) / sizeof (physnm_t),
2N/A t5120_pnms },
2N/A { "T5140",
2N/A sizeof (t5140_pnms) / sizeof (physnm_t),
2N/A t5140_pnms },
2N/A { "T5240",
2N/A sizeof (t5140_pnms) / sizeof (physnm_t),
2N/A t5140_pnms },
2N/A { "T5440",
2N/A sizeof (t5440_pnms) / sizeof (physnm_t),
2N/A t5440_pnms }
2N/A};
2N/A
2N/Aphyslot_names_t PhyxauiNMs = {
2N/A sizeof (plat_pnames) / sizeof (pphysnm_t),
2N/A plat_pnames
2N/A};
2N/A
2N/Aphyslot_names_t *Phyxaui_Names = &PhyxauiNMs;
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _XAUI_H */