summaryrefslogtreecommitdiffstats
path: root/sys/i4b/include
diff options
context:
space:
mode:
authorhm <hm@FreeBSD.org>1999-08-06 14:05:10 +0000
committerhm <hm@FreeBSD.org>1999-08-06 14:05:10 +0000
commitc318ffb377724b7eab997d3ddd7f16e229f18e4d (patch)
tree4dd20754e94db3bc400654765c985e981925a884 /sys/i4b/include
parent29c67703e3751c283a1bdfe7764effe015c13b83 (diff)
downloadFreeBSD-src-c318ffb377724b7eab997d3ddd7f16e229f18e4d.zip
FreeBSD-src-c318ffb377724b7eab997d3ddd7f16e229f18e4d.tar.gz
updating isdn4bsd to beta version 0.83
Diffstat (limited to 'sys/i4b/include')
-rw-r--r--sys/i4b/include/i4b_debug.h54
-rw-r--r--sys/i4b/include/i4b_ioctl.h19
-rw-r--r--sys/i4b/include/i4b_rbch_ioctl.h53
-rw-r--r--sys/i4b/include/i4b_tel_ioctl.h10
4 files changed, 124 insertions, 12 deletions
diff --git a/sys/i4b/include/i4b_debug.h b/sys/i4b/include/i4b_debug.h
index 628a65e..980bb0a 100644
--- a/sys/i4b/include/i4b_debug.h
+++ b/sys/i4b/include/i4b_debug.h
@@ -27,9 +27,9 @@
* i4b_debug.h - i4b debug header file
* -----------------------------------
*
- * $Id: i4b_debug.h,v 1.18 1999/04/28 14:50:55 hm Exp $
+ * $Id: i4b_debug.h,v 1.19 1999/05/28 15:03:32 hm Exp $
*
- * last edit-date: [Wed Apr 28 16:50:36 1999]
+ * last edit-date: [Fri May 28 16:27:07 1999]
*
*---------------------------------------------------------------------------*/
@@ -221,4 +221,54 @@ typedef struct {
#define I4B_CTL_CLR_HSCXSTAT _IOW('C', 3, hscxstat_t)
+/*---------------------------------------------------------------------------*
+ * get LAPD/Q.921 statistics
+ *---------------------------------------------------------------------------*/
+typedef struct {
+ /* transmit */
+
+ u_long tx_i; /* I */
+ u_long tx_rr; /* RR */
+ u_long tx_rnr; /* RNR */
+ u_long tx_rej; /* REJ */
+ u_long tx_sabme; /* SABME*/
+ u_long tx_dm; /* DM */
+ u_long tx_disc; /* DISC */
+ u_long tx_ua; /* UA */
+ u_long tx_frmr; /* FRMR */
+ u_long tx_tei; /* TEI */
+
+ /* receive */
+
+ u_long rx_i; /* I */
+ u_long rx_rr; /* RR */
+ u_long rx_rnr; /* RNR */
+ u_long rx_rej; /* REJ */
+ u_long rx_sabme; /* SABME*/
+ u_long rx_tei; /* TEI */
+ u_long rx_ui; /* UI */
+ u_long rx_disc; /* DISC */
+ u_long rx_xid; /* XID */
+ u_long rx_dm; /* DM */
+ u_long rx_ua; /* UA */
+ u_long rx_frmr; /* FRMR */
+
+ /* errors */
+
+ u_long err_rx_len; /* incorrect length */
+ u_long err_rx_badf; /* bad frame type */
+ u_long err_rx_bads; /* bad s frame */
+ u_long err_rx_badu; /* bad u frame */
+ u_long err_rx_badui; /* bad ui frame */
+} lapdstat_t;
+
+typedef struct {
+ int unit;
+ lapdstat_t lapdstat;
+} l2stat_t;
+
+#define I4B_CTL_GET_LAPDSTAT _IOWR('C', 4, l2stat_t)
+
+#define I4B_CTL_CLR_LAPDSTAT _IOW('C', 5, int)
+
/* EOF */
diff --git a/sys/i4b/include/i4b_ioctl.h b/sys/i4b/include/i4b_ioctl.h
index b7289a8..2f6c753 100644
--- a/sys/i4b/include/i4b_ioctl.h
+++ b/sys/i4b/include/i4b_ioctl.h
@@ -27,9 +27,9 @@
* i4b_ioctl.h - messages kernel <--> userland
* -------------------------------------------
*
- * $Id: i4b_ioctl.h,v 1.106 1999/05/19 08:51:14 hm Exp $
+ * $Id: i4b_ioctl.h,v 1.125 1999/07/30 07:02:11 hm Exp $
*
- * last edit-date: [Wed May 19 10:56:56 1999]
+ * last edit-date: [Fri Jul 30 08:53:47 1999]
*
*---------------------------------------------------------------------------*/
@@ -46,7 +46,7 @@
* version and release number for isdn4bsd package
*---------------------------------------------------------------------------*/
#define VERSION 0 /* version number */
-#define REL 81 /* release number */
+#define REL 83 /* release number */
#define STEP 0 /* release step */
/*---------------------------------------------------------------------------*
@@ -103,7 +103,9 @@
#define CARD_TYPEP_ITKIX1 18 /* ITK ix1 micro */
#define CARD_TYPEP_AVMA1PCI 19 /* AVM FRITZ!CARD PCI */
#define CARD_TYPEP_PCC16 20 /* ELSA PCC-16 */
-
+#define CARD_TYPEP_AVM_PNP 21 /* AVM FRITZ!CARD PnP */
+#define CARD_TYPEP_SIE_ISURF2 22 /* Siemens I-Surf 2 PnP */
+#define CARD_TYPEP_ASUSCOMIPAC 23 /* Asuscom ISDNlink 128 K PnP */
/*
* in case you add support for more cards, please update:
*
@@ -113,7 +115,7 @@
* and adjust CARD_TYPEP_MAX below.
*/
-#define CARD_TYPEP_MAX 20 /* max type */
+#define CARD_TYPEP_MAX 23 /* max type */
/*---------------------------------------------------------------------------*
* card types for CTRL_DAIC
@@ -175,7 +177,7 @@ typedef unsigned int cause_t; /* 32 bit unsigned int */
*---------------------------------------------------------------------------*/
#define SHA_FIXU 0 /* timeout algorithm for fix unit charging */
#define SHA_VARU 1 /* timeout algorithm for variable unit charging */
-
+
/*---------------------------------------------------------------------------*
* The shorthold data struct
*---------------------------------------------------------------------------*/
@@ -593,14 +595,15 @@ typedef struct {
/*---------------------------------------------------------------------------*
* request version and release info from kernel part
+ * (msg_vr_req_t is also used by tel & rbch drivers)
*---------------------------------------------------------------------------*/
typedef struct {
int version; /* version number */
int release; /* release number */
int step; /* release step number */
} msg_vr_req_t;
-
-#define I4B_VR_REQ _IOR('4', 9, msg_vr_req_t)
+
+#define I4B_VR_REQ _IOR('4', 9, msg_vr_req_t)
/*---------------------------------------------------------------------------*
* Protocol download to active cards
diff --git a/sys/i4b/include/i4b_rbch_ioctl.h b/sys/i4b/include/i4b_rbch_ioctl.h
new file mode 100644
index 0000000..97bdb90
--- /dev/null
+++ b/sys/i4b/include/i4b_rbch_ioctl.h
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 1999 Hellmuth Michaelis. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ *---------------------------------------------------------------------------
+ *
+ * i4b_rbch_ioctl.h raw B-channel driver interface ioctls
+ * ------------------------------------------------------
+ *
+ * $Id: i4b_rbch_ioctl.h,v 1.1 1999/07/09 06:44:00 hm Exp $
+ *
+ * last edit-date: [Fri Jul 9 08:35:07 1999]
+ *
+ *---------------------------------------------------------------------------*/
+
+#ifndef _I4B_RBCH_IOCTL_H_
+#define _I4B_RBCH_IOCTL_H_
+
+/*---------------------------------------------------------------------------*
+ * instruct the rbch device to dial the given number
+ *---------------------------------------------------------------------------*/
+
+typedef char telno_t[TELNO_MAX];
+
+#define I4B_RBCH_DIALOUT _IOW('R', 1, telno_t)
+
+/*---------------------------------------------------------------------------*
+ * request version and release info from kernel part
+ *---------------------------------------------------------------------------*/
+
+#define I4B_RBCH_VR_REQ _IOR('R', 2, msg_vr_req_t)
+
+#endif /* _I4B_RBCH_IOCTL_H_ */
diff --git a/sys/i4b/include/i4b_tel_ioctl.h b/sys/i4b/include/i4b_tel_ioctl.h
index 3df673b..07fcde8 100644
--- a/sys/i4b/include/i4b_tel_ioctl.h
+++ b/sys/i4b/include/i4b_tel_ioctl.h
@@ -27,9 +27,9 @@
* i4b_tel_ioctl.h telephony interface ioctls
* ------------------------------------------
*
- * $Id: i4b_tel_ioctl.h,v 1.9 1999/04/21 10:06:32 hm Exp $
+ * $Id: i4b_tel_ioctl.h,v 1.10 1999/07/09 06:44:00 hm Exp $
*
- * last edit-date: [Wed Apr 21 11:00:02 1999]
+ * last edit-date: [Fri Jul 9 08:34:28 1999]
*
*---------------------------------------------------------------------------*/
@@ -54,6 +54,12 @@
#define I4B_TEL_SETAUDIOFMT _IOW('A', 1, int)
#define I4B_TEL_EMPTYINPUTQUEUE _IOW('A', 2, int)
+/*---------------------------------------------------------------------------*
+ * request version and release info from kernel part
+ *---------------------------------------------------------------------------*/
+
+#define I4B_TEL_VR_REQ _IOR('A', 3, msg_vr_req_t)
+
/*===========================================================================*
* /dev/i4bteld<n> devices (dialer interface)
*===========================================================================*/
OpenPOWER on IntegriCloud