1*0cc8ae86Sav145390 /* 2*0cc8ae86Sav145390 * CDDL HEADER START 3*0cc8ae86Sav145390 * 4*0cc8ae86Sav145390 * The contents of this file are subject to the terms of the 5*0cc8ae86Sav145390 * Common Development and Distribution License (the "License"). 6*0cc8ae86Sav145390 * You may not use this file except in compliance with the License. 7*0cc8ae86Sav145390 * 8*0cc8ae86Sav145390 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*0cc8ae86Sav145390 * or http://www.opensolaris.org/os/licensing. 10*0cc8ae86Sav145390 * See the License for the specific language governing permissions 11*0cc8ae86Sav145390 * and limitations under the License. 12*0cc8ae86Sav145390 * 13*0cc8ae86Sav145390 * When distributing Covered Code, include this CDDL HEADER in each 14*0cc8ae86Sav145390 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*0cc8ae86Sav145390 * If applicable, add the following below this CDDL HEADER, with the 16*0cc8ae86Sav145390 * fields enclosed by brackets "[]" replaced with your own identifying 17*0cc8ae86Sav145390 * information: Portions Copyright [yyyy] [name of copyright owner] 18*0cc8ae86Sav145390 * 19*0cc8ae86Sav145390 * CDDL HEADER END 20*0cc8ae86Sav145390 */ 21*0cc8ae86Sav145390 /* 22*0cc8ae86Sav145390 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23*0cc8ae86Sav145390 * Use is subject to license terms. 24*0cc8ae86Sav145390 */ 25*0cc8ae86Sav145390 26*0cc8ae86Sav145390 #ifndef _OPL_DIMM_H 27*0cc8ae86Sav145390 #define _OPL_DIMM_H 28*0cc8ae86Sav145390 29*0cc8ae86Sav145390 #pragma ident "%Z%%M% %I% %E% SMI" 30*0cc8ae86Sav145390 31*0cc8ae86Sav145390 32*0cc8ae86Sav145390 #ifdef __cplusplus 33*0cc8ae86Sav145390 extern "C" { 34*0cc8ae86Sav145390 #endif 35*0cc8ae86Sav145390 36*0cc8ae86Sav145390 #define OPL_DIMM_INFO_VERSION 1 /* Version number */ 37*0cc8ae86Sav145390 #define OPL_MAX_DIMMS 32 /* Max dimms per board */ 38*0cc8ae86Sav145390 39*0cc8ae86Sav145390 typedef struct board_dimm_info { 40*0cc8ae86Sav145390 uint8_t bd_version; /* Version of this structure */ 41*0cc8ae86Sav145390 uint8_t bd_boardnum; /* Board Number */ 42*0cc8ae86Sav145390 uint8_t bd_numdimms; /* Number of dimms attached */ 43*0cc8ae86Sav145390 uint8_t bd_dnamesz; /* DIMM name size */ 44*0cc8ae86Sav145390 uint8_t bd_serialsz; /* Serial number size */ 45*0cc8ae86Sav145390 uint8_t bd_partnumsz; /* Partnumber size */ 46*0cc8ae86Sav145390 /* 47*0cc8ae86Sav145390 * DIMM info for each dimm(0 - bd_numdimms) is appended 48*0cc8ae86Sav145390 * to this structure in the form similar to below: 49*0cc8ae86Sav145390 * 50*0cc8ae86Sav145390 * char name[bd_dnamesz]; 51*0cc8ae86Sav145390 * char serial[bd_serialsz]; 52*0cc8ae86Sav145390 * char partnum[bd_partnumsz]; 53*0cc8ae86Sav145390 */ 54*0cc8ae86Sav145390 } board_dimm_info_t; 55*0cc8ae86Sav145390 56*0cc8ae86Sav145390 #ifdef __cplusplus 57*0cc8ae86Sav145390 } 58*0cc8ae86Sav145390 #endif 59*0cc8ae86Sav145390 60*0cc8ae86Sav145390 #endif /* _OPL_DIMM_H */ 61