Blame sunatmpos.h

Packit 209cc3
/*
Packit 209cc3
 * Copyright (c) 1997 Yen Yen Lim and North Dakota State University
Packit 209cc3
 * All rights reserved.
Packit 209cc3
 *
Packit 209cc3
 * Redistribution and use in source and binary forms, with or without
Packit 209cc3
 * modification, are permitted provided that the following conditions
Packit 209cc3
 * are met:
Packit 209cc3
 * 1. Redistributions of source code must retain the above copyright
Packit 209cc3
 *    notice, this list of conditions and the following disclaimer.
Packit 209cc3
 * 2. Redistributions in binary form must reproduce the above copyright
Packit 209cc3
 *    notice, this list of conditions and the following disclaimer in the
Packit 209cc3
 *    documentation and/or other materials provided with the distribution.
Packit 209cc3
 * 3. All advertising materials mentioning features or use of this software
Packit 209cc3
 *    must display the following acknowledgement:
Packit 209cc3
 *      This product includes software developed by Yen Yen Lim and
Packit 209cc3
        North Dakota State University
Packit 209cc3
 * 4. The name of the author may not be used to endorse or promote products
Packit 209cc3
 *    derived from this software without specific prior written permission.
Packit 209cc3
 *
Packit 209cc3
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
Packit 209cc3
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
Packit 209cc3
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
Packit 209cc3
 * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
Packit 209cc3
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
Packit 209cc3
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
Packit 209cc3
 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Packit 209cc3
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
Packit 209cc3
 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
Packit 209cc3
 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
Packit 209cc3
 * POSSIBILITY OF SUCH DAMAGE.
Packit 209cc3
 */
Packit 209cc3
Packit 209cc3
/* SunATM header for ATM packet */
Packit 209cc3
#define SUNATM_DIR_POS		0
Packit 209cc3
#define SUNATM_VPI_POS		1
Packit 209cc3
#define SUNATM_VCI_POS		2
Packit 209cc3
#define SUNATM_PKT_BEGIN_POS	4	/* Start of ATM packet */
Packit 209cc3
Packit 209cc3
/* Protocol type values in the bottom for bits of the byte at SUNATM_DIR_POS. */
Packit 209cc3
#define PT_LANE		0x01	/* LANE */
Packit 209cc3
#define PT_LLC		0x02	/* LLC encapsulation */
Packit 209cc3
#define PT_ILMI		0x05	/* ILMI */
Packit 209cc3
#define PT_QSAAL	0x06	/* Q.SAAL */