patch-2.4.20 linux-2.4.20/drivers/ieee1394/ieee1394_core.h

Next file: linux-2.4.20/drivers/ieee1394/nodemgr.c
Previous file: linux-2.4.20/drivers/ieee1394/ieee1394_core.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/drivers/ieee1394/ieee1394_core.h linux-2.4.20/drivers/ieee1394/ieee1394_core.h
@@ -16,7 +16,7 @@
         struct list_head list;
 
         /* This can be used for host driver internal linking. */
-        struct hpsb_packet *xnext;
+	struct list_head driver_list;
 
         nodeid_t node_id;
 
@@ -69,7 +69,7 @@
         /* Very core internal, don't care. */
         struct semaphore state_change;
 
-        task_queue complete_tq;
+	struct list_head complete_tq;
 
         /* Store jiffies for implementing bus timeouts. */
         unsigned long sendtime;
@@ -77,6 +77,13 @@
         quadlet_t embedded_header[5];
 };
 
+/* add a new task for when a packet completes */
+void hpsb_add_packet_complete_task(struct hpsb_packet *packet, struct tq_struct *tq);
+
+static inline struct hpsb_packet *driver_packet(struct list_head *l)
+{
+	return list_entry(l, struct hpsb_packet, driver_list);
+}
 
 void abort_timedouts(struct hpsb_host *host);
 void abort_requests(struct hpsb_host *host);

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