The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/netatm/atm_sap.h

Version: -  FREEBSD  -  FREEBSD11  -  FREEBSD10  -  FREEBSD9  -  FREEBSD92  -  FREEBSD91  -  FREEBSD90  -  FREEBSD8  -  FREEBSD82  -  FREEBSD81  -  FREEBSD80  -  FREEBSD7  -  FREEBSD74  -  FREEBSD73  -  FREEBSD72  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  *
    3  * ===================================
    4  * HARP  |  Host ATM Research Platform
    5  * ===================================
    6  *
    7  *
    8  * This Host ATM Research Platform ("HARP") file (the "Software") is
    9  * made available by Network Computing Services, Inc. ("NetworkCS")
   10  * "AS IS".  NetworkCS does not provide maintenance, improvements or
   11  * support of any kind.
   12  *
   13  * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
   14  * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
   15  * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
   16  * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
   17  * In no event shall NetworkCS be responsible for any damages, including
   18  * but not limited to consequential damages, arising from or relating to
   19  * any use of the Software or related support.
   20  *
   21  * Copyright 1994-1998 Network Computing Services, Inc.
   22  *
   23  * Copies of this Software may be made, however, the above copyright
   24  * notice must be reproduced on all copies.
   25  *
   26  *      @(#) $FreeBSD: src/sys/netatm/atm_sap.h,v 1.3 2005/01/07 01:45:36 imp Exp $
   27  *
   28  */
   29 
   30 /*
   31  * Core ATM Services
   32  * -----------------
   33  *
   34  * ATM Services definitions
   35  *
   36  */
   37 
   38 #ifndef _NETATM_ATM_SAP_H
   39 #define _NETATM_ATM_SAP_H
   40 
   41 /*
   42  * Service Access Point (SAP)
   43  *
   44  * A SAP specifies the definition of an interface used between two adjacent
   45  * layers.  The SAP is named for the services the lower layer provides to 
   46  * the upper layer.
   47  *
   48  * The types of SAPs used are:
   49  *      Stack - defines the interfaces between stack service entities.
   50  *              These are further divided into:
   51  *
   52  *              Stack class SAP - which identifies the type of interface
   53  *                      used.  All SAPs of a particular class will provide
   54  *                      the same interface services to the higher layer.
   55  *                      All stack command codes are constructed using class
   56  *                      SAP values.
   57  *
   58  *              Stack instance SAP - which identifies the specific identity
   59  *                      of the layer providing the class interface.
   60  */
   61 typedef u_short Sap_t;
   62 
   63 #define SAP_TYPE_MASK   0xc000
   64 #define SAP_TYPE_STACK  0x8000
   65 #define SAP_CLASS_MASK  0xff80
   66 
   67 #define SAP_STACK(c, i)         (SAP_TYPE_STACK | ((c) << 7) | (i))
   68 
   69 /* Stack SAPs */
   70 #define SAP_ATM                 SAP_STACK(1, 0)         /* ATM cell */
   71 #define SAP_SAR                 SAP_STACK(2, 0)         /* AAL SAR */
   72 #define SAP_SAR_AAL3_4          SAP_STACK(2, 3)         /* AAL3/4 SAR */
   73 #define SAP_SAR_AAL5            SAP_STACK(2, 5)         /* AAL5 SAR */
   74 #define SAP_CPCS                SAP_STACK(3, 0)         /* AAL CPCS */
   75 #define SAP_CPCS_AAL3_4         SAP_STACK(3, 3)         /* AAL3/4 CPCS */
   76 #define SAP_CPCS_AAL5           SAP_STACK(3, 5)         /* AAL5 CPCS */
   77 #define SAP_SSCOP               SAP_STACK(4, 0)         /* ITU Q.2110 */
   78 #define SAP_SSCF_UNI            SAP_STACK(5, 0)         /* ITU Q.2130 */
   79 #define SAP_SSCF_NNI            SAP_STACK(6, 0)         /* ITU Q.2140 */
   80 
   81 #endif  /* _NETATM_ATM_SAP_H */

Cache object: 38499094b1e43996801228eec1b07b92


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.