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

From: Glen Turner (glen.turner@aarnet.edu.au)
Date: Sun Oct 13 2002 - 19:53:23 EST


--- linux-2.4.20-pre8/include/linux/serialP.h Sat Aug 3 10:09:45 2002
+++ linux-2.4.20-pre8-gdt1/include/linux/serialP.h Fri Oct 11 13:48:33 2002
@@ -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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:48 EST