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/*
2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A#ifndef _FRURAW_H
2N/A#define _FRURAW_H
2N/A
2N/A#include <stdint.h>
2N/A#include <fru_access.h>
2N/A#include <libfruds.h>
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/A#define FRU_CONT_CONF_SPARC "/usr/platform/sun4u/lib/fru_container.conf"
2N/A#define FRU_CONT_CONF_X86 "/usr/lib/picl/plugins/fru_container.conf"
2N/A#define FRU_CONT_CONF_ENV_VAR "FRU_CONTAINER_CONF"
2N/A#define IGNORE_CHECK "IGNORE_CHECKSUM"
2N/A
2N/Atypedef struct segment_list {
2N/A segment_t *segment;
2N/A struct segment_list *next;
2N/A} segment_list_t;
2N/A
2N/A
2N/Atypedef struct raw_list {
2N/A uint8_t *raw;
2N/A size_t size;
2N/A char *cont_type;
2N/A
2N/A container_hdl_t cont;
2N/A segment_list_t *segs;
2N/A
2N/A fru_treehdl_t hdl;
2N/A} raw_list_t;
2N/A
2N/A
2N/A/* raw_access.c */
2N/Acontainer_hdl_t open_raw_data(raw_list_t *);
2N/Aint fru_close_container(container_hdl_t);
2N/Araw_list_t *seghdl_to_rawlist(segment_hdl_t node);
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _FRURAW_H */