/*
* 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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_IB_MGT_IB_MAD_H
#define _SYS_IB_MGT_IB_MAD_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _ib_mad_hdr_t {
/* perform based on mgmtclass */
} ib_mad_hdr_t;
/* Defines and Masks that go with MAD header */
/* ClassPortInfo: table 104 */
#if defined(_BIT_FIELDS_HTOL)
typedef struct ib_mad_classportinfo_s {
/* (lower 5 bit field, upper */
/* 27 bits are reserved) */
#elif defined(_BIT_FIELDS_LTOH)
typedef struct ib_mad_classportinfo_s {
/* (lower 5 bit field, upper */
/* 27 bits are reserved) */
#else
#endif /* _BIT_FIELDS_HTOL */
/*
*/
#if defined(_BIT_FIELDS_HTOL)
typedef struct ib_mad_notice_s {
/* if generic, indicates type of event's producer, else vendor id */
#elif defined(_BIT_FIELDS_LTOH)
typedef struct ib_mad_notice_s {
/* if generic, indicates type of event's producer, else vendor id */
#else
#endif /* _BIT_FIELDS_HTOL */
/* InformInfo: Table 106 */
#if defined(_BIT_FIELDS_HTOL)
typedef struct ib_mad_informinfo_s {
#elif defined(_BIT_FIELDS_LTOH)
typedef struct ib_mad_informinfo_s {
#else
#endif /* _BIT_FIELDS_HTOL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_IB_MGT_IB_MAD_H */