patch-2.3.29 linux/include/linux/serialP.h

Next file: linux/include/linux/sysctl.h
Previous file: linux/include/linux/serial.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/include/linux/serialP.h linux/include/linux/serialP.h
@@ -45,6 +45,7 @@
 	struct async_icount	icount;	
 	struct termios		normal_termios;
 	struct termios		callout_termios;
+	int	io_type;
 	struct async_struct *info;
 };
 
@@ -80,6 +81,7 @@
 	int			xmit_cnt;
 	u8			*iomem_base;
 	u16			iomem_reg_shift;
+	int			io_type;
 	struct tq_struct	tqueue;
 #ifdef DECLARE_WAITQUEUE
 	wait_queue_head_t	open_wait;
@@ -99,6 +101,10 @@
 #define SERIAL_MAGIC 0x5301
 #define SSTATE_MAGIC 0x5302
 
+/*
+ * The size of the serial xmit buffer is 1 page, or 4096 bytes
+ */
+#define SERIAL_XMIT_SIZE 4096
 
 /*
  * Events are used to schedule things to happen at timer-interrupt
@@ -132,7 +138,6 @@
 #define ALPHA_KLUDGE_MCR 0
 #endif
 
-#ifdef CONFIG_PCI
 /*
  * Structures and definitions for PCI support
  */
@@ -147,8 +152,9 @@
 	int base_baud;
 	int uart_offset;
 	int reg_shift;
-	void (*init_fn)(struct pci_dev *dev, struct pci_board *board,
+	int (*init_fn)(struct pci_dev *dev, struct pci_board *board,
 			int enable);
+	int first_uart_offset;
 };
 
 struct pci_board_inst {
@@ -158,7 +164,6 @@
 
 #ifndef PCI_ANY_ID
 #define PCI_ANY_ID (~0)
-#endif
 #endif
 
 #define SPCI_FL_BASE_MASK	0x0007

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)