/* 
 * Copyright 1998 by Sun Microsystems, Inc.,
 * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Sun Microsystems, Inc. ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Sun.
 */

#ifndef SUNIMMMAN_H
#define SUNIMMMAN_H

#ifndef _MIN
#define _MIN(a,b) (((a) < (b)) ? (a) : (b))
#endif
#ifndef _MAX
#define _MAX(a,b) (((a) > (b)) ? (a) : (b))
#endif

#ifdef  USE_XSUNIM_ADAPTER

typedef enum 
{
    RELEASE_SLOT = 0 ,
    ALLOC_SLOT = 1 
} slot_op_t;

typedef enum { FREE, BUSY } busy_;

typedef struct _iml_inst_slot {
    struct _iml_inst_slot *next ;
    busy_ busy ; 
    int size ;
    char *ptr ;
} iml_inst_slot_t;

#define IML_MAX_SLOT_SIZE 65535
#define IML_MIN_SLOT_SIZE 128

#endif /* USE_XSUNIM_ADAPTER */

#endif  /* SUNIMMMAN_H */
