safari_pcd.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 1999-2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_SAFARI_PCD_H
#define _SYS_SAFARI_PCD_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* This file contains definitions of the structure spcd_t, Port Configuration
* Descriptor, which is part of the information handed off to OBP and
* the OS by POST in the "golden" I/O SRAM.
* It is very similar in function to, and borrows heavily from, the spd
*/
#ifdef __cplusplus
extern "C" {
#endif
#define MAX_DIMMS_PER_PORT 8
#define IOBUS_PER_PORT 2
#define IOCARD_PER_BUS 4
#define LINKS_PER_PORT 5
#define UPADEV_PER_PORT 2
#define AGENTS_PER_PORT 2
#define PCD_VERSION 1
/* Types of Safari ports */
#define SAFPTYPE_NULL 0
#define SAFPTYPE_CPU 1
#define SAFPTYPE_sPCI 2
#define SAFPTYPE_cPCI 3
#define SAFPTYPE_WCI 4
#define SAFPTYPE_PCIX 5
/*
* RSV stands for Resource Status Value.
* These are the values used in all cases where the status of
* a resource is maintained in a byte element of a structure.
* These are ordered in terms of preserving interesting information
* in POST displays where all configurations are displayed in a
* single value.
*/
#define SPCD_RSV_FAIL 0xff
typedef struct {
/* for ports with UPA device */
/* for ports with IO buses */
/* status of each IO card on port */
/* for ports with WIC links */
/* status of each WIC link on port */
char *sprd_bank_rsv[MAX_BANKS_PER_PORT];
/* status of each bank */
char *sprd_dimm[MAX_DIMMS_PER_PORT];
/* status of each dimm */
/* labels for ecache dimms */
} spcd_t;
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SAFARI_PCD_H */