Skip to contentSkip to conversation

2/3 Fix serial console flow control, serialP.h

PATCH New Glen Turner 1 participant 1 message Oct 14, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 2/3 Fix serial console flow control, serialP.h

include/linux/serialP.h Fri Oct 11 13:48:33 2002 renamed from include/linux/serialP.h Sat Aug 3 10:09:45 2002 +31 -0
@@ -138,6 +138,37 @@
 #endif
 
 /*
+ * Serial console counters.
+ */
+struct serial_console_counters_t {
+        /* If flow control used: count of characters not printed as
+         * UART transmitter buffer didn't empty after waiting.
+         * If flow control not used: count of characters printed
+         * regardless that the UART transmitter buffer didn't empty
+         * after waiting.
+         */
+        int timeouts_tx;
+        /* Count of characters not printed as flow control used and
+         * DSR or DCD not asserted.
+         */
+        int timeouts_dsr;
+        int timeouts_dcd;
+        /* Count of characters not printed as flow control used and
+         * CTS not asserted after waiting.
+         */
+        int timeouts_cts;
+        /* Count of messages truncated or not printed as flow control
+         * configured and one of the timeout_* conditions occurred.
+         */
+        int  messages_dropped;
+        /* Count of messages offered for printing. Number of
+         * successfully printed messages is (messages -
+         * messages_dropped).
+         */
+        int messages_total;
+};
+
+/*
  * Structures and definitions for PCI support
  */
 struct pci_dev;