/*
 *                          Copyright (C) 1993
 *                Interphase Corporation, Dallas, TX 75234
 *                          All Rights Reserved
 *
 * This code contains confidential information and  trade  secrets  of
 * Interphase Corporation which shall not be reproduced or transferred
 * to other programs or disclosed to others or used for  manufacturing
 * or any other purpose without prior written permission of Interphase
 * Corporation.  Use of copyright notice is precautionary and does not
 * imply publication or intent thereof.
 */

/*H
 * FILE: ia_cs.h
 *
 * DESCRIPTION:
 *   This file contains structures for Convergence Sublayer header
 *   and trailer.
 *
 * FUNCTIONS:
 * EXPORTED:
 *
 * STATIC:
 *
 * GLOBAL DATA:
 *
 */

#ifndef _IA_CS_H
#define _IA_CS_H

typedef struct {
   uchar_t   cs_type;
   uchar_t   be_tag;
   ushort_t  ba_size;
} CS_HEADER;

typedef struct {
   uchar_t   prot_con;
   uchar_t   be_tag;
   ushort_t  length;
} CS_TRAILER;

#define CS_OVRHEAD   (sizeof( CS_HEADER ) + sizeof( CS_TRAILER ))

typedef struct {
   ushort_t  control;
   ushort_t  length;
   uint_t  crc32;
} CS5_TRAILER;

#endif   /* _IA_CS_H */
