patch-2.4.0-test4 linux/drivers/usb/ov511.h
Next file: linux/drivers/usb/printer.c
Previous file: linux/drivers/usb/ov511.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Tue Jul 11 10:46:38 2000
- Orig file:
v2.4.0-test3/linux/drivers/usb/ov511.h
- Orig date:
Fri Jun 23 21:55:10 2000
diff -u --recursive --new-file v2.4.0-test3/linux/drivers/usb/ov511.h linux/drivers/usb/ov511.h
@@ -171,9 +171,7 @@
#define OV7610_REG_COM_K 0x38 /* misc registers */
-#define STREAM_BUF_SIZE (PAGE_SIZE * 4)
-
-#define SCRATCH_BUF_SIZE 384
+#define SCRATCH_BUF_SIZE 512
#define FRAMES_PER_DESC 10 /* FIXME - What should this be? */
#define FRAME_SIZE_PER_DESC 993 /* FIXME - Deprecated */
@@ -213,6 +211,13 @@
STATE_LINES, /* Parsing lines */
};
+/* Buffer states */
+enum {
+ BUF_NOT_ALLOCATED,
+ BUF_ALLOCATED,
+ BUF_PEND_DEALLOC, /* ov511->buf_timer is set */
+};
+
struct usb_device;
struct ov511_sbuf {
@@ -324,6 +329,11 @@
/* proc interface */
struct semaphore param_lock; /* params lock for this camera */
struct proc_dir_entry *proc_entry; /* /proc/ov511/videoX */
+
+ /* Framebuffer/sbuf management */
+ int buf_state;
+ struct semaphore buf_lock;
+ struct timer_list buf_timer;
};
struct cam_list {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)