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) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _PCI_SUN4U_H
2N/A#define _PCI_SUN4U_H
2N/A
2N/A#include <pcibus_labels.h>
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A#define XMITS_COMPAT "pci108e,8002" /* compatible property for XMits */
2N/A
2N/A/*
2N/A * Functions for platforms that need a label lookup
2N/A * test in addition to the standard ones provided.
2N/A */
2N/Aextern int sunfire_test_func(topo_mod_t *, did_t *);
2N/A
2N/A/*
2N/A * Data for label lookup based on existing slot label.
2N/A *
2N/A * Platforms may need entries here if the slot labels
2N/A * provided by firmware are incorrect.
2N/A */
2N/A
2N/Aslot_rwd_t v240_rewrites[] = {
2N/A /* from OBP, should be, test func */
2N/A { "PCI3", "PCI0", NULL },
2N/A { "PCI1", "PCI2", NULL },
2N/A { "PCI2", "PCI1", NULL }
2N/A};
2N/A
2N/Aslot_rwd_t sunfire_rewrites[] = {
2N/A { "slot 2", "slot 3", sunfire_test_func },
2N/A { "slot 3", "slot 2", sunfire_test_func },
2N/A { "slot 6", "slot 7", sunfire_test_func },
2N/A { "slot 7", "slot 6", sunfire_test_func }
2N/A};
2N/A
2N/Aplat_rwd_t plat_rewrites[] = {
2N/A { "Sun-Fire-V240",
2N/A sizeof (v240_rewrites) / sizeof (slot_rwd_t),
2N/A v240_rewrites },
2N/A { "Sun-Fire",
2N/A sizeof (sunfire_rewrites) / sizeof (slot_rwd_t),
2N/A sunfire_rewrites }
2N/A};
2N/A
2N/Aslotnm_rewrite_t SlotRWs = {
2N/A sizeof (plat_rewrites) / sizeof (plat_rwd_t),
2N/A plat_rewrites
2N/A};
2N/A
2N/Aslotnm_rewrite_t *Slot_Rewrites = &SlotRWs;
2N/Aphyslot_names_t *Physlot_Names = NULL;
2N/Amissing_names_t *Missing_Names = NULL;
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _PCI_SUN4U_H */