patch-2.3.99-pre1 linux/drivers/usb/ov511.h

Next file: linux/drivers/usb/pegasus.c
Previous file: linux/drivers/usb/ov511.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.51/linux/drivers/usb/ov511.h linux/drivers/usb/ov511.h
@@ -6,9 +6,10 @@
 #define OV511_DEBUG	/* Turn on debug messages */
 
 #ifdef OV511_DEBUG
-#  define PDEBUG(fmt, args...) printk("ov511: " fmt "\n" , ## args)
+#  define PDEBUG(level, fmt, args...) \
+if (debug >= level) printk("ov511: " fmt "\n" , ## args)
 #else
-#  define PDEBUG(fmt, args...) do {} while(0)
+#  define PDEBUG(level, fmt, args...) do {} while(0)
 #endif
 
 /* Camera interface register numbers */
@@ -227,6 +228,8 @@
 	long bytes_read;	/* amount of scanlength that has been read from *data */
 
 	wait_queue_head_t wq;	/* Processes waiting */
+
+	int snapshot;			/* True if frame was a snapshot */
 };
 
 #define OV511_NUMFRAMES	2
@@ -269,6 +272,8 @@
 	int scratchlen;
 
 	wait_queue_head_t wq;	/* Processes waiting */
+
+	int snap_enabled;   /* Snapshot mode enabled */
 };
 
 #endif

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