aboutsummaryrefslogtreecommitdiff
path: root/sys/netatm/atm_sap.h
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1998-09-15 08:23:17 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1998-09-15 08:23:17 +0000
commit1820df7a2d615975e02b646f749fb05757e92f79 (patch)
treea7cd0079858aee749b0cbaadb313a655dee7765b /sys/netatm/atm_sap.h
parent06915ea69a48dd223d1612cefc20795c2d38d359 (diff)
downloadsrc-1820df7a2d615975e02b646f749fb05757e92f79.tar.gz
src-1820df7a2d615975e02b646f749fb05757e92f79.zip
Add new files for HARP3
Host ATM Research Platform (HARP), Network Computing Services, Inc. This software was developed with the support of the Defense Advanced Research Projects Agency (DARPA).
Notes
Notes: svn path=/head/; revision=39232
Diffstat (limited to 'sys/netatm/atm_sap.h')
-rw-r--r--sys/netatm/atm_sap.h81
1 files changed, 81 insertions, 0 deletions
diff --git a/sys/netatm/atm_sap.h b/sys/netatm/atm_sap.h
new file mode 100644
index 000000000000..1386516a95da
--- /dev/null
+++ b/sys/netatm/atm_sap.h
@@ -0,0 +1,81 @@
+/*
+ *
+ * ===================================
+ * HARP | Host ATM Research Platform
+ * ===================================
+ *
+ *
+ * This Host ATM Research Platform ("HARP") file (the "Software") is
+ * made available by Network Computing Services, Inc. ("NetworkCS")
+ * "AS IS". NetworkCS does not provide maintenance, improvements or
+ * support of any kind.
+ *
+ * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
+ * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
+ * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
+ * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
+ * In no event shall NetworkCS be responsible for any damages, including
+ * but not limited to consequential damages, arising from or relating to
+ * any use of the Software or related support.
+ *
+ * Copyright 1994-1998 Network Computing Services, Inc.
+ *
+ * Copies of this Software may be made, however, the above copyright
+ * notice must be reproduced on all copies.
+ *
+ * @(#) $Id: atm_sap.h,v 1.3 1998/02/19 19:59:38 mks Exp $
+ *
+ */
+
+/*
+ * Core ATM Services
+ * -----------------
+ *
+ * ATM Services definitions
+ *
+ */
+
+#ifndef _NETATM_ATM_SAP_H
+#define _NETATM_ATM_SAP_H
+
+/*
+ * Service Access Point (SAP)
+ *
+ * A SAP specifies the definition of an interface used between two adjacent
+ * layers. The SAP is named for the services the lower layer provides to
+ * the upper layer.
+ *
+ * The types of SAPs used are:
+ * Stack - defines the interfaces between stack service entities.
+ * These are further divided into:
+ *
+ * Stack class SAP - which identifies the type of interface
+ * used. All SAPs of a particular class will provide
+ * the same interface services to the higher layer.
+ * All stack command codes are constructed using class
+ * SAP values.
+ *
+ * Stack instance SAP - which identifies the specific identity
+ * of the layer providing the class interface.
+ */
+typedef u_short Sap_t;
+
+#define SAP_TYPE_MASK 0xc000
+#define SAP_TYPE_STACK 0x8000
+#define SAP_CLASS_MASK 0xff80
+
+#define SAP_STACK(c, i) (SAP_TYPE_STACK | ((c) << 7) | (i))
+
+/* Stack SAPs */
+#define SAP_ATM SAP_STACK(1, 0) /* ATM cell */
+#define SAP_SAR SAP_STACK(2, 0) /* AAL SAR */
+#define SAP_SAR_AAL3_4 SAP_STACK(2, 3) /* AAL3/4 SAR */
+#define SAP_SAR_AAL5 SAP_STACK(2, 5) /* AAL5 SAR */
+#define SAP_CPCS SAP_STACK(3, 0) /* AAL CPCS */
+#define SAP_CPCS_AAL3_4 SAP_STACK(3, 3) /* AAL3/4 CPCS */
+#define SAP_CPCS_AAL5 SAP_STACK(3, 5) /* AAL5 CPCS */
+#define SAP_SSCOP SAP_STACK(4, 0) /* ITU Q.2110 */
+#define SAP_SSCF_UNI SAP_STACK(5, 0) /* ITU Q.2130 */
+#define SAP_SSCF_NNI SAP_STACK(6, 0) /* ITU Q.2140 */
+
+#endif /* _NETATM_ATM_SAP_H */