1*11015SSundeep.Panicker@Sun.COM /* 2*11015SSundeep.Panicker@Sun.COM * CDDL HEADER START 3*11015SSundeep.Panicker@Sun.COM * 4*11015SSundeep.Panicker@Sun.COM * The contents of this file are subject to the terms of the 5*11015SSundeep.Panicker@Sun.COM * Common Development and Distribution License (the "License"). 6*11015SSundeep.Panicker@Sun.COM * You may not use this file except in compliance with the License. 7*11015SSundeep.Panicker@Sun.COM * 8*11015SSundeep.Panicker@Sun.COM * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*11015SSundeep.Panicker@Sun.COM * or http://www.opensolaris.org/os/licensing. 10*11015SSundeep.Panicker@Sun.COM * See the License for the specific language governing permissions 11*11015SSundeep.Panicker@Sun.COM * and limitations under the License. 12*11015SSundeep.Panicker@Sun.COM * 13*11015SSundeep.Panicker@Sun.COM * When distributing Covered Code, include this CDDL HEADER in each 14*11015SSundeep.Panicker@Sun.COM * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*11015SSundeep.Panicker@Sun.COM * If applicable, add the following below this CDDL HEADER, with the 16*11015SSundeep.Panicker@Sun.COM * fields enclosed by brackets "[]" replaced with your own identifying 17*11015SSundeep.Panicker@Sun.COM * information: Portions Copyright [yyyy] [name of copyright owner] 18*11015SSundeep.Panicker@Sun.COM * 19*11015SSundeep.Panicker@Sun.COM * CDDL HEADER END 20*11015SSundeep.Panicker@Sun.COM */ 21*11015SSundeep.Panicker@Sun.COM 22*11015SSundeep.Panicker@Sun.COM /* 23*11015SSundeep.Panicker@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24*11015SSundeep.Panicker@Sun.COM * Use is subject to license terms. 25*11015SSundeep.Panicker@Sun.COM */ 26*11015SSundeep.Panicker@Sun.COM 27*11015SSundeep.Panicker@Sun.COM #ifndef _FRURAW_H 28*11015SSundeep.Panicker@Sun.COM #define _FRURAW_H 29*11015SSundeep.Panicker@Sun.COM 30*11015SSundeep.Panicker@Sun.COM #include <stdint.h> 31*11015SSundeep.Panicker@Sun.COM #include <fru_access.h> 32*11015SSundeep.Panicker@Sun.COM #include <libfruds.h> 33*11015SSundeep.Panicker@Sun.COM 34*11015SSundeep.Panicker@Sun.COM #ifdef __cplusplus 35*11015SSundeep.Panicker@Sun.COM extern "C" { 36*11015SSundeep.Panicker@Sun.COM #endif 37*11015SSundeep.Panicker@Sun.COM 38*11015SSundeep.Panicker@Sun.COM #define FRU_CONT_CONF_SPARC "/usr/platform/sun4u/lib/fru_container.conf" 39*11015SSundeep.Panicker@Sun.COM #define FRU_CONT_CONF_X86 "/usr/lib/picl/plugins/fru_container.conf" 40*11015SSundeep.Panicker@Sun.COM #define FRU_CONT_CONF_ENV_VAR "FRU_CONTAINER_CONF" 41*11015SSundeep.Panicker@Sun.COM #define IGNORE_CHECK "IGNORE_CHECKSUM" 42*11015SSundeep.Panicker@Sun.COM 43*11015SSundeep.Panicker@Sun.COM typedef struct segment_list { 44*11015SSundeep.Panicker@Sun.COM segment_t *segment; 45*11015SSundeep.Panicker@Sun.COM struct segment_list *next; 46*11015SSundeep.Panicker@Sun.COM } segment_list_t; 47*11015SSundeep.Panicker@Sun.COM 48*11015SSundeep.Panicker@Sun.COM 49*11015SSundeep.Panicker@Sun.COM typedef struct raw_list { 50*11015SSundeep.Panicker@Sun.COM uint8_t *raw; 51*11015SSundeep.Panicker@Sun.COM size_t size; 52*11015SSundeep.Panicker@Sun.COM char *cont_type; 53*11015SSundeep.Panicker@Sun.COM 54*11015SSundeep.Panicker@Sun.COM container_hdl_t cont; 55*11015SSundeep.Panicker@Sun.COM segment_list_t *segs; 56*11015SSundeep.Panicker@Sun.COM 57*11015SSundeep.Panicker@Sun.COM fru_treehdl_t hdl; 58*11015SSundeep.Panicker@Sun.COM } raw_list_t; 59*11015SSundeep.Panicker@Sun.COM 60*11015SSundeep.Panicker@Sun.COM 61*11015SSundeep.Panicker@Sun.COM /* raw_access.c */ 62*11015SSundeep.Panicker@Sun.COM container_hdl_t open_raw_data(raw_list_t *); 63*11015SSundeep.Panicker@Sun.COM int fru_close_container(container_hdl_t); 64*11015SSundeep.Panicker@Sun.COM raw_list_t *seghdl_to_rawlist(segment_hdl_t node); 65*11015SSundeep.Panicker@Sun.COM 66*11015SSundeep.Panicker@Sun.COM #ifdef __cplusplus 67*11015SSundeep.Panicker@Sun.COM } 68*11015SSundeep.Panicker@Sun.COM #endif 69*11015SSundeep.Panicker@Sun.COM 70*11015SSundeep.Panicker@Sun.COM #endif /* _FRURAW_H */ 71