0cc8ae8667155d352d327b5c92b62899a7e05bcdav/*
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * CDDL HEADER START
0cc8ae8667155d352d327b5c92b62899a7e05bcdav *
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * The contents of this file are subject to the terms of the
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * Common Development and Distribution License (the "License").
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * You may not use this file except in compliance with the License.
0cc8ae8667155d352d327b5c92b62899a7e05bcdav *
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * or http://www.opensolaris.org/os/licensing.
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * See the License for the specific language governing permissions
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * and limitations under the License.
0cc8ae8667155d352d327b5c92b62899a7e05bcdav *
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * When distributing Covered Code, include this CDDL HEADER in each
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * If applicable, add the following below this CDDL HEADER, with the
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * fields enclosed by brackets "[]" replaced with your own identifying
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * information: Portions Copyright [yyyy] [name of copyright owner]
0cc8ae8667155d352d327b5c92b62899a7e05bcdav *
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * CDDL HEADER END
0cc8ae8667155d352d327b5c92b62899a7e05bcdav */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav/*
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * Use is subject to license terms.
0cc8ae8667155d352d327b5c92b62899a7e05bcdav */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#ifndef _OPL_DIMM_H
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#define _OPL_DIMM_H
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#pragma ident "%Z%%M% %I% %E% SMI"
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#ifdef __cplusplus
0cc8ae8667155d352d327b5c92b62899a7e05bcdavextern "C" {
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#endif
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#define OPL_DIMM_INFO_VERSION 1 /* Version number */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#define OPL_MAX_DIMMS 32 /* Max dimms per board */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdavtypedef struct board_dimm_info {
0cc8ae8667155d352d327b5c92b62899a7e05bcdav uint8_t bd_version; /* Version of this structure */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav uint8_t bd_boardnum; /* Board Number */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav uint8_t bd_numdimms; /* Number of dimms attached */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav uint8_t bd_dnamesz; /* DIMM name size */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav uint8_t bd_serialsz; /* Serial number size */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav uint8_t bd_partnumsz; /* Partnumber size */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav /*
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * DIMM info for each dimm(0 - bd_numdimms) is appended
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * to this structure in the form similar to below:
0cc8ae8667155d352d327b5c92b62899a7e05bcdav *
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * char name[bd_dnamesz];
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * char serial[bd_serialsz];
0cc8ae8667155d352d327b5c92b62899a7e05bcdav * char partnum[bd_partnumsz];
0cc8ae8667155d352d327b5c92b62899a7e05bcdav */
0cc8ae8667155d352d327b5c92b62899a7e05bcdav} board_dimm_info_t;
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#ifdef __cplusplus
0cc8ae8667155d352d327b5c92b62899a7e05bcdav}
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#endif
0cc8ae8667155d352d327b5c92b62899a7e05bcdav
0cc8ae8667155d352d327b5c92b62899a7e05bcdav#endif /* _OPL_DIMM_H */