md_convert.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 2001, 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS__MD_CONVERT_H
#define _SYS__MD_CONVERT_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
extern void dump_mdc_unit(mdc_unit_t *);
extern void dump_mdc_unit32_od(mdc_unit32_od_t *);
extern void dump_mm_unit(mm_unit_t *);
extern void dump_mm_unit32_od(mm_unit32_od_t *);
extern void dump_ms_unit(ms_unit_t *);
extern void dump_ms_unit32_od(ms_unit32_od_t *);
extern void dump_mr_unit(mr_unit_t *);
extern void dump_mr_unit32_od(mr_unit32_od_t *);
/*
* Nice debug printing macro:
* eg: HBDBG(stripe_convert, 0x%llx, msp->c.un_revision);
*/
/* Compacting a timeval64 to a timeval32 */
{ \
}
/* Expanding a timeval32 to a timeval64 */
{ \
}
#define COMPLETE_STRUCTURE 0
#define FIRST_COMP_OFFSET 1
#define SMALL_2_BIG 1
#define BIG_2_SMALL 2
/* Used by different types */
/* mdc_unit -> mdc_unit32_od */
/* md_m_shared -> md_m_shared32_od */
small_mdms->xms_mx[0] = 0; \
/* mdc_unit32_od -> mdc_unit */
/* md_m_shared32_od -> md_m_shared */
/* Used by Stripes */
/* ms_comp -> ms_comp32_od */
/* ms_comp32_od -> ms_comp */
/* ms_row -> ms_row32_od */
/* ms_row -> ms_row32_od */
/* Used by Mirrors */
/* mm_submirror -> mm_submirror32_od */
/* mm_submirror32_od -> mm_submirror */
/* Used by Raid */
/* mr_column -> mr_column32_od */
/* mr_column32_od -> mr_column */
/* mr_unit -> mr_unit32_od */
/* mr_unit32_od -> mr_unit */
/* Used by Softpartitions */
/* mp_unit -> mp_unit32_od */
} \
}
/* mp_unit32_od -> mp_unit */
} \
}
/* Used by Hotspares */
/* hot_spare -> hot_spare32_od */
small->xx_hs_next = 0; \
/* hot_spare -> hot_spare32_od */
/* hot_spare_pool_ond -> hot_spare_pool_ond32 */
int __i; \
}
/* hot_spare_pool_ond32 -> hot_spare_pool_ond */
int __i; \
}
#ifdef __cplusplus
}
#endif
#endif /* _SYS__MD_CONVERT_H */