patch-2.3.11 linux/include/linux/cyclades.h
Next file: linux/include/linux/file.h
Previous file: linux/include/linux/bios32.h
Back to the patch index
Back to the overall index
- Lines: 73
- Date:
Fri Jul 16 14:57:41 1999
- Orig file:
v2.3.10/linux/include/linux/cyclades.h
- Orig date:
Thu Jul 8 15:42:21 1999
diff -u --recursive --new-file v2.3.10/linux/include/linux/cyclades.h linux/include/linux/cyclades.h
@@ -490,7 +490,26 @@
/****************** ****************** *******************/
#endif
+/* Per card data structure */
+struct cyclades_card {
+ long base_addr;
+ long ctl_addr;
+ int irq;
+ int num_chips; /* 0 if card absent, -1 if Z/PCI, else Y */
+ int first_line; /* minor number of first channel on card */
+ int bus_index; /* address shift - 0 for ISA, 1 for PCI */
+ int intr_enabled; /* FW Interrupt flag - 0 disabled, 1 enabled */
+#ifdef __KERNEL__
+ spinlock_t card_lock;
+#else
+ uclong filler;
+#endif
+};
+
+struct cyclades_chip {
+ int filler;
+};
#ifdef __KERNEL__
@@ -508,22 +527,6 @@
#define cy_readw(port) readw(port)
#define cy_readl(port) readl(port)
-/* Per card data structure */
-
-struct cyclades_card {
- long base_addr;
- long ctl_addr;
- int irq;
- int num_chips; /* 0 if card absent, -1 if Z/PCI, else Y */
- int first_line; /* minor number of first channel on card */
- int bus_index; /* address shift - 0 for ISA, 1 for PCI */
- int intr_enabled; /* FW Interrupt flag - 0 disabled, 1 enabled */
-};
-
-struct cyclades_chip {
- int filler;
-};
-
/*
* This is our internal structure for each serial port's state.
*
@@ -568,16 +571,16 @@
int xmit_cnt;
int default_threshold;
int default_timeout;
- struct tq_struct tqueue;
+ unsigned long jiffies[3];
+ unsigned long rflush_count;
struct termios normal_termios;
struct termios callout_termios;
- wait_queue_head_t open_wait;
- wait_queue_head_t close_wait;
- wait_queue_head_t shutdown_wait;
struct cyclades_monitor mon;
- unsigned long jiffies[3];
- unsigned long rflush_count;
struct cyclades_idle_stats idle_stats;
+ struct tq_struct tqueue;
+ wait_queue_head_t open_wait;
+ wait_queue_head_t close_wait;
+ wait_queue_head_t shutdown_wait;
};
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)