patch-2.4.21 linux-2.4.21/drivers/usb/auerserv.h
Next file: linux-2.4.21/drivers/usb/auerswald.c
Previous file: linux-2.4.21/drivers/usb/auermain.h
Back to the patch index
Back to the overall index
- Lines: 48
- Date:
2003-06-13 07:51:36.000000000 -0700
- Orig file:
linux-2.4.20/drivers/usb/auerserv.h
- Orig date:
1969-12-31 16:00:00.000000000 -0800
diff -urN linux-2.4.20/drivers/usb/auerserv.h linux-2.4.21/drivers/usb/auerserv.h
@@ -0,0 +1,47 @@
+/*****************************************************************************/
+/*
+ * auerserv.h -- Auerswald PBX/System Telephone service request structure.
+ *
+ * Copyright (C) 2002 Wolfgang Mües (wolfgang@iksw-muees.de)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+ /*****************************************************************************/
+
+/* The auerswald ISDN devices have a logical channel concept. Many channels are
+ * realized via one control endpoint or INT endpoint. At the receiver side, these
+ * messages must be dispatched. Some data may be for an application which is
+ * connected through the char interface, other data may be D-channel information
+ * routed to ISDN4LINUX. The auerscon struct is used to dispatch the data.
+ */
+
+#ifndef AUERSERV_H
+#define AUERSERV_H
+
+#include "auerbuf.h"
+
+/* service context */
+struct auerscon;
+typedef void (*auer_dispatch_t) (struct auerscon *, struct auerbuf *);
+typedef void (*auer_disconn_t) (struct auerscon *);
+
+struct auerscon {
+ unsigned int id; /* protocol service id AUH_xxxx */
+ auer_dispatch_t dispatch; /* dispatch read buffer */
+ auer_disconn_t disconnect; /* disconnect from device, wake up all readers */
+};
+
+
+#endif /* AUERSERV_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)