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  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
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: releng/6.0/sys/netatm/atm_sap.h 139823 2005-01-07 01:45:51Z imp $
   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: 0cda16ae6010908b3611372783f5eaae


[ 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.