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