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 * Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _DISPLAY_SUN4U_H
2N/A#define _DISPLAY_SUN4U_H
2N/A
2N/A#include <pdevinfo_sun4u.h>
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A/*
2N/A * If a QLC card is present in the system, the following values are needed
2N/A * to decode what type of a QLC card it is.
2N/A */
2N/A#define AMBER_SUBSYSTEM_ID 0x4082
2N/A#define CRYSTAL_SUBSYSTEM_ID 0x4083
2N/A
2N/A#define AMBER_CARD_NAME "Amber"
2N/A#define CRYSTAL_CARD_NAME "Crystal+"
2N/A
2N/A#define MAX_QLC_MODEL_LEN 10
2N/A
2N/A/*
2N/A * Define strings in this structure as arrays instead of pointers so
2N/A * that copying is easier.
2N/A */
2N/Astruct io_card {
2N/A int display; /* Should we display this card? */
2N/A int node_id; /* Node ID */
2N/A int board; /* Board number */
2N/A char bus_type[MAXSTRLEN]; /* Type of bus this IO card is on */
2N/A int schizo_portid; /* portid of the Schizo for this card */
2N/A char pci_bus; /* PCI bus A or B */
2N/A int slot; /* Slot number */
2N/A char slot_str[MAXSTRLEN]; /* Slot description string */
2N/A int freq; /* Frequency (in MHz) */
2N/A char status[MAXSTRLEN]; /* Card status */
2N/A char name[MAXSTRLEN]; /* Card name */
2N/A char model[MAXSTRLEN]; /* Card model */
2N/A int dev_no; /* device number */
2N/A int func_no; /* function number */
2N/A char notes[MAXSTRLEN]; /* notes */
2N/A struct io_card *next;
2N/A};
2N/A
2N/A/* used to determine whether slot (int) or slot_str(char*) should be used */
2N/A#define PCI_SLOT_IS_STRING (-99)
2N/A
2N/Aint display(Sys_tree *, Prom_node *, struct system_kstat_data *, int);
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _DISPLAY_SUN4U_H */