patch-2.3.43 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

diff -u --recursive --new-file v2.3.42/linux/drivers/usb/ov511.h linux/drivers/usb/ov511.h
@@ -166,7 +166,9 @@
 
 /* Prototypes */
 int usb_ov511_reg_read(struct usb_device *dev, unsigned char reg);
-int usb_ov511_reg_write(struct usb_device *dev, unsigned char reg, unsigned char value);
+int usb_ov511_reg_write(struct usb_device *dev,
+                        unsigned char reg,
+                        unsigned char value);
 
 
 enum {
@@ -175,10 +177,6 @@
 	STATE_LINES,		/* Parsing lines */
 };
 
-struct ov511_frame_header {
-	// FIXME - nothing here yet
-};
-
 struct usb_device;
 
 struct ov511_sbuf {
@@ -194,17 +192,30 @@
 	FRAME_ERROR,		/* Something bad happened while processing */
 };
 
+struct ov511_regvals {
+	enum {
+	  OV511_DONE_BUS,
+	  OV511_REG_BUS,
+	  OV511_I2C_BUS,
+	} bus;
+	unsigned char reg;
+	unsigned char val;
+};
+
 struct ov511_frame {
 	char *data;		/* Frame buffer */
 
-	struct ov511_frame_header header;	/* Header from stream */
-
+	int depth;		/* Bytes per pixel */
 	int width;		/* Width application is expecting */
 	int height;		/* Height */
 
 	int hdrwidth;		/* Width the frame actually is */
 	int hdrheight;		/* Height */
 
+	int sub_flag;		/* Sub-capture mode for this frame? */
+	int format;		/* Format for this frame */
+	int segsize;		/* How big is each segment from the camera? */
+
 	volatile int grabstate;	/* State of grabbing */
 	int scanstate;		/* State of scanning */
 
@@ -241,6 +252,12 @@
 
 	char *fbuf;			/* Videodev buffer area */
 
+	int sub_flag;		/* Pix Array subcapture on flag */
+	int subx;		/* Pix Array subcapture x offset */
+	int suby;		/* Pix Array subcapture y offset */
+	int subw;		/* Pix Array subcapture width */
+	int subh;		/* Pix Array subcapture height */
+
 	int curframe;		/* Current receiving sbuf */
 	struct ov511_frame frame[OV511_NUMFRAMES];	
 
@@ -250,6 +267,8 @@
 	/* Scratch space from the Isochronous pipe */
 	unsigned char scratch[SCRATCH_BUF_SIZE];
 	int scratchlen;
+
+	wait_queue_head_t wq;	/* Processes waiting */
 };
 
 #endif

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