patch-2.3.49 linux/drivers/usb/ibmcam.h
Next file: linux/drivers/usb/inode.c
Previous file: linux/drivers/usb/ibmcam.c
Back to the patch index
Back to the overall index
- Lines: 34
- Date:
Mon Feb 28 14:21:15 2000
- Orig file:
v2.3.48/linux/drivers/usb/ibmcam.h
- Orig date:
Thu Feb 10 17:11:15 2000
diff -u --recursive --new-file v2.3.48/linux/drivers/usb/ibmcam.h linux/drivers/usb/ibmcam.h
@@ -153,6 +153,7 @@
struct ibmcam_frame {
char *data; /* Frame buffer */
int order_uv; /* True=UV False=VU */
+ int order_yc; /* True=Yc False=cY ('c'=either U or V) */
unsigned char hdr_sig; /* "00 FF 00 ??" where 'hdr_sig' is '??' */
int width; /* Width application is expecting */
@@ -172,6 +173,9 @@
wait_queue_head_t wq; /* Processes waiting */
};
+#define IBMCAM_MODEL_1 1 /* XVP-501, 3 interfaces, rev. 0.02 */
+#define IBMCAM_MODEL_2 2 /* KSX-X9903, 2 interfaces, rev. 3.0a */
+
struct usb_ibmcam {
struct video_device vdev;
@@ -186,6 +190,7 @@
int ibmcam_used; /* Is this structure in use? */
int initialized; /* Had we already sent init sequence? */
+ int camera_model; /* What type of IBM camera we got? */
int streaming; /* Are we streaming Isochronous? */
int grabbing; /* Are we grabbing? */
int last_error; /* What calamity struck us? */
@@ -201,7 +206,6 @@
int cursbuf; /* Current receiving sbuf */
struct ibmcam_sbuf sbuf[IBMCAM_NUMSBUF]; /* Double buffering */
volatile int remove_pending; /* If set then about to exit */
- wait_queue_head_t remove_ok; /* Wait here until removal is safe */
/*
* Scratch space from the Isochronous pipe.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)