patch-1.3.42 linux/include/linux/cyclades.h
Next file: linux/include/linux/etherdevice.h
Previous file: linux/include/linux/bios32.h
Back to the patch index
Back to the overall index
- Lines: 96
- Date:
Tue Nov 14 07:43:33 1995
- Orig file:
v1.3.41/linux/include/linux/cyclades.h
- Orig date:
Mon Oct 23 18:02:18 1995
diff -u --recursive --new-file v1.3.41/linux/include/linux/cyclades.h linux/include/linux/cyclades.h
@@ -5,8 +5,17 @@
* Randolph Bentson <bentson@grieg.seaslug.org>.
*
* This file contains the general definitions for the cyclades.c driver
+ *$Log: cyclades.h,v $
+ * Revision 1.5 1995/11/13 21:13:31 bentson
+ * changes suggested by Michael Chastain <mec@duracef.shout.net>
+ * to support use of this file in non-kernel applications
+ *
+ *
*/
+#ifndef _LINUX_CYCLADES_H
+#define _LINUX_CYCLADES_H
+
/* PCI vendor and device ID's */
#ifndef PCI_VENDOR_ID_CYCLADES
@@ -17,6 +26,27 @@
#define PCI_DEVICE_ID_CYCLOMY 0x0100
#endif
+struct cyclades_monitor {
+ unsigned long int_count;
+ unsigned long char_count;
+ unsigned long char_max;
+ unsigned long char_last;
+};
+
+#define CYCLADES_MAGIC 0x4359
+
+#define CYGETMON 0x435901
+#define CYGETTHRESH 0x435902
+#define CYSETTHRESH 0x435903
+#define CYGETDEFTHRESH 0x435904
+#define CYSETDEFTHRESH 0x435905
+#define CYGETTIMEOUT 0x435906
+#define CYSETTIMEOUT 0x435907
+#define CYGETDEFTIMEOUT 0x435908
+#define CYSETDEFTIMEOUT 0x435909
+
+#ifdef __KERNEL__
+
/* Per card data structure */
struct cyclades_card {
@@ -31,13 +61,6 @@
int filler;
};
-struct cyclades_monitor {
- unsigned long int_count;
- unsigned long char_count;
- unsigned long char_max;
- unsigned long char_last;
-};
-
/*
* This is our internal structure for each serial port's state.
*
@@ -47,9 +70,6 @@
* For definitions of the flags field, see tty.h
*/
-#include <linux/termios.h>
-#include <linux/tqueue.h>
-
struct cyclades_port {
int magic;
int type;
@@ -87,18 +107,6 @@
struct cyclades_monitor mon;
};
-#define CYCLADES_MAGIC 0x4359
-
-#define CYGETMON 0x435901
-#define CYGETTHRESH 0x435902
-#define CYSETTHRESH 0x435903
-#define CYGETDEFTHRESH 0x435904
-#define CYSETDEFTHRESH 0x435905
-#define CYGETTIMEOUT 0x435906
-#define CYSETTIMEOUT 0x435907
-#define CYGETDEFTIMEOUT 0x435908
-#define CYSETDEFTIMEOUT 0x435909
-
/*
* Events are used to schedule things to happen at timer-interrupt
* time, instead of at cy interrupt time.
@@ -281,3 +289,6 @@
#define CyMAX_CHAR_FIFO 12
/***************************************************************************/
+
+#endif /* __KERNEL__ */
+#endif /* _LINUX_CYCLADES_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this