summaryrefslogtreecommitdiffstats
path: root/sys/i4b
diff options
context:
space:
mode:
authorhm <hm@FreeBSD.org>1999-03-07 16:09:45 +0000
committerhm <hm@FreeBSD.org>1999-03-07 16:09:45 +0000
commit8f0bddf02a0d3e576260df9a004eb7a4a7352565 (patch)
tree69ca89f67897f0f70d9455d9c4a21dfafdc2d344 /sys/i4b
parent7e46cf5dd7cad6e069e50c85ee9a31ca260848fb (diff)
downloadFreeBSD-src-8f0bddf02a0d3e576260df9a004eb7a4a7352565.zip
FreeBSD-src-8f0bddf02a0d3e576260df9a004eb7a4a7352565.tar.gz
update the i4b include files to i4b release 0.71.00
Diffstat (limited to 'sys/i4b')
-rw-r--r--sys/i4b/include/i4b_cause.h6
-rw-r--r--sys/i4b/include/i4b_debug.h6
-rw-r--r--sys/i4b/include/i4b_ioctl.h41
-rw-r--r--sys/i4b/include/i4b_tel_ioctl.h7
-rw-r--r--sys/i4b/include/i4b_trace.h6
5 files changed, 41 insertions, 25 deletions
diff --git a/sys/i4b/include/i4b_cause.h b/sys/i4b/include/i4b_cause.h
index 439db4e..3edf3ad 100644
--- a/sys/i4b/include/i4b_cause.h
+++ b/sys/i4b/include/i4b_cause.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 1998 Hellmuth Michaelis. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -27,9 +27,9 @@
* i4b_cause.h - causes and cause handling for i4b
* -----------------------------------------------
*
- * $Id: i4b_cause.h,v 1.8 1998/12/05 18:05:55 hm Exp $
+ * $Id: i4b_cause.h,v 1.9 1999/02/14 09:45:02 hm Exp $
*
- * last edit-date: [Sat Dec 5 18:36:30 1998]
+ * last edit-date: [Sun Feb 14 10:37:46 1999]
*
*---------------------------------------------------------------------------*/
diff --git a/sys/i4b/include/i4b_debug.h b/sys/i4b/include/i4b_debug.h
index 33e6315..ad6cccf 100644
--- a/sys/i4b/include/i4b_debug.h
+++ b/sys/i4b/include/i4b_debug.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 1998 Hellmuth Michaelis. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -27,9 +27,9 @@
* i4b_debug.h - i4b debug header file
* -----------------------------------
*
- * $Id: i4b_debug.h,v 1.14 1998/12/05 18:05:57 hm Exp $
+ * $Id: i4b_debug.h,v 1.15 1999/02/14 09:45:02 hm Exp $
*
- * last edit-date: [Sat Dec 5 18:36:47 1998]
+ * last edit-date: [Sun Feb 14 10:37:58 1999]
*
*---------------------------------------------------------------------------*/
diff --git a/sys/i4b/include/i4b_ioctl.h b/sys/i4b/include/i4b_ioctl.h
index 17e945f..21560a8 100644
--- a/sys/i4b/include/i4b_ioctl.h
+++ b/sys/i4b/include/i4b_ioctl.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 1998 Hellmuth Michaelis. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -27,9 +27,9 @@
* i4b_ioctl.h - messages kernel <--> userland
* -------------------------------------------
*
- * $Id: i4b_ioctl.h,v 1.58 1998/12/22 19:48:24 hm Exp $
+ * $Id: i4b_ioctl.h,v 1.69 1999/03/01 09:04:15 hm Exp $
*
- * last edit-date: [Tue Dec 22 20:33:46 1998]
+ * last edit-date: [Mon Mar 1 10:01:15 1999]
*
*---------------------------------------------------------------------------*/
@@ -46,8 +46,8 @@
* version and release number for isdn4bsd package
*---------------------------------------------------------------------------*/
#define VERSION 0 /* version number */
-#define REL 70 /* release number */
-#define STEP 00 /* release step */
+#define REL 71 /* release number */
+#define STEP 0 /* release step */
/*---------------------------------------------------------------------------*
* date/time format in i4b log messages
@@ -99,6 +99,7 @@
#define CARD_TYPEP_ELSAMLIMC 16 /* ELSA MicroLink ISDN/MC */
#define CARD_TYPEP_ELSAMLMCALL 17 /* ELSA MicroLink MCall */
#define CARD_TYPEP_ITKIX1 18 /* ITK ix1 micro */
+#define CARD_TYPEP_AVMA1PCI 19 /* AVM FRITZ!CARD PCI */
/*
* in case you add support for more cards, please update:
@@ -109,7 +110,7 @@
* and adjust CARD_TYPEP_MAX below.
*/
-#define CARD_TYPEP_MAX 18 /* max type */
+#define CARD_TYPEP_MAX 19 /* max type */
/*---------------------------------------------------------------------------*
* card types for CTRL_DAIC
@@ -147,6 +148,7 @@
#define BDRV_TEL 1 /* telephone (speech) interface driver */
#define BDRV_IPR 2 /* IP over raw HDLC interface driver */
#define BDRV_ISPPP 3 /* sync Kernel PPP interface driver */
+#define BDRV_IBC 4 /* BSD/OS point to point driver */
/*---------------------------------------------------------------------------*
* B channel protocol
@@ -165,7 +167,25 @@ typedef unsigned int cause_t; /* 32 bit unsigned int */
#define CDID_UNUSED 0 /* cdid is invalid and unused */
#define CDID_MAX 99999 /* highest valid cdid, wraparound to 1 */
+/*---------------------------------------------------------------------------*
+ * The shorthold algorithm to use
+ *---------------------------------------------------------------------------*/
+typedef enum msg_shorthold_algorithm {
+ msg_alg__fix_unit_size, /* timeout algorithm for fix unit charging */
+ msg_alg__var_unit_size /* timeout algorithm for variable unit charging */
+} msg_shorthold_algorithm_t;
+/*---------------------------------------------------------------------------*
+ * The shorthold data struct
+ *---------------------------------------------------------------------------*/
+typedef struct {
+ msg_shorthold_algorithm_t shorthold_algorithm; /* shorthold algorithm to use */
+ int unitlen_time; /* length of a charging unit */
+ int idle_time; /* time without activity on b ch */
+ int earlyhup_time; /* safety area at end of unit */
+} msg_shorthold_t;
+
+
/****************************************************************************
outgoing call:
@@ -432,7 +452,6 @@ typedef struct {
* "ioctl" messages from userland -> kernel
*===========================================================================*
*===========================================================================*/
-
/*---------------------------------------------------------------------------*
* request a unique cdid (to setup an outgoing call)
@@ -455,9 +474,7 @@ typedef struct {
int bprot; /* b channel protocol */
int driver; /* driver to route b channel data to */
int driver_unit; /* unit number for above driver */
- int unitlen_time; /* length of a charging unit */
- int idle_time; /* time without activity on b ch */
- int earlyhup_time; /* safety area at end of unit */
+ msg_shorthold_t shorthold_data; /* the shorthold data */
int unitlen_method; /* how to calculate the unitlength */
#define ULEN_METHOD_STATIC 0 /* use unitlen_time value (see above) */
#define ULEN_METHOD_DYNAMIC 1 /* use AOCD */
@@ -533,9 +550,7 @@ typedef struct {
*---------------------------------------------------------------------------*/
typedef struct {
int cdid; /* call descriptor id */
- int unitlen_time; /* length of a charging unit */
- int idle_time; /* time without activity on b ch */
- int earlyhup_time; /* safety area at end of unit */
+ msg_shorthold_t shorthold_data;
} msg_timeout_upd_t;
#define I4B_TIMEOUT_UPD _IOW('4', 6, msg_timeout_upd_t)
diff --git a/sys/i4b/include/i4b_tel_ioctl.h b/sys/i4b/include/i4b_tel_ioctl.h
index b7f0f73..52f08cc 100644
--- a/sys/i4b/include/i4b_tel_ioctl.h
+++ b/sys/i4b/include/i4b_tel_ioctl.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 1998 Hellmuth Michaelis. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -27,9 +27,9 @@
* i4b_tel_ioctl.h telephony interface ioctls
* ------------------------------------------
*
- * $Id: i4b_tel_ioctl.h,v 1.5 1998/12/14 10:31:58 hm Exp $
+ * $Id: i4b_tel_ioctl.h,v 1.7 1999/02/16 10:40:18 hm Exp $
*
- * last edit-date: [Sat Dec 5 18:37:36 1998]
+ * last edit-date: [Sun Feb 14 10:39:19 1999]
*
*---------------------------------------------------------------------------*/
@@ -40,6 +40,7 @@
#define CVT_NONE 0 /* no format conversion */
#define CVT_ALAW2ULAW 1 /* kernel A-law, userland mu-law */
+#define CVT_ALAW_CANON 2 /* kernel A-law, userland canonical A-law */
/*---------------------------------------------------------------------------*
* get / set audio format
diff --git a/sys/i4b/include/i4b_trace.h b/sys/i4b/include/i4b_trace.h
index 07e08da..5b9a730 100644
--- a/sys/i4b/include/i4b_trace.h
+++ b/sys/i4b/include/i4b_trace.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 1998 Hellmuth Michaelis. All rights reserved.
+ * Copyright (c) 1997, 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
@@ -27,9 +27,9 @@
* i4b_trace.h - header file for trace data read device
* ----------------------------------------------------
*
- * $Id: i4b_trace.h,v 1.5 1998/12/05 18:06:01 hm Exp $
+ * $Id: i4b_trace.h,v 1.6 1999/02/14 09:45:02 hm Exp $
*
- * last edit-date: [Sat Dec 5 18:37:49 1998]
+ * last edit-date: [Sun Feb 14 10:39:26 1999]
*
*---------------------------------------------------------------------------*/
OpenPOWER on IntegriCloud