patch-2.3.24 linux/include/net/irda/irtty.h

Next file: linux/include/net/irda/pc87108.h
Previous file: linux/include/net/irda/irttp.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.23/linux/include/net/irda/irtty.h linux/include/net/irda/irtty.h
@@ -6,7 +6,7 @@
  * Status:        Experimental.
  * Author:        Dag Brattli <dagb@cs.uit.no>
  * Created at:    Tue Dec  9 21:13:12 1997
- * Modified at:   Thu Jul  1 10:13:02 1999
+ * Modified at:   Mon Oct 18 23:24:31 1999
  * Modified by:   Dag Brattli <dagb@cs.uit.no>
  *  
  *     Copyright (c) 1997, 1999 Dag Brattli, All Rights Reserved.
@@ -28,29 +28,46 @@
 #include <linux/if.h>
 #include <linux/skbuff.h>
 #include <linux/termios.h>
+#include <linux/netdevice.h>
 
 #include <net/irda/irda.h>
 #include <net/irda/irqueue.h>
 #include <net/irda/irda_device.h>
 
+/* Used by ioctl */
+struct irtty_info {
+	char name[6];
+};
+
 #define IRTTY_IOC_MAGIC 'e'
 #define IRTTY_IOCTDONGLE  _IO(IRTTY_IOC_MAGIC, 1)
-#define IRTTY_IOC_MAXNR   1
-
-#ifndef N_IRDA
-#define N_IRDA         11   /* This one should go in </asm/termio.h> */
-#endif
+#define IRTTY_IOCGET     _IOR(IRTTY_IOC_MAGIC, 2, struct irtty_info)
+#define IRTTY_IOC_MAXNR   2
 
 struct irtty_cb {
-	QUEUE   q;     /* Must be first */
+	queue_t q;     /* Must be first */
 	magic_t magic;
-	
-	struct  tty_struct  *tty;
-	struct  irda_device idev;
+
+	struct net_device *netdev; /* Yes! we are some kind of netdevice */
+	struct net_device_stats stats;
+
+	struct tty_struct  *tty;
+	struct irlap_cb    *irlap; /* The link layer we are binded to */
+
+	struct chipio_t io;        /* IrDA controller information */
+	struct iobuff_t tx_buff;   /* Transmit buffer */
+	struct iobuff_t rx_buff;   /* Receive buffer */
+
+	struct qos_info qos;       /* QoS capabilities for this device */
+	dongle_t *dongle;          /* Dongle driver */
+
+ 	__u32 flags;               /* Interface flags */
+
+	INFRARED_MODE mode;
 };
  
-int irtty_register_dongle(struct dongle *dongle);
-void irtty_unregister_dongle(struct dongle *dongle);
+int irtty_register_dongle(struct dongle_reg *dongle);
+void irtty_unregister_dongle(struct dongle_reg *dongle);
 
 #endif
 

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