xref: /OK3568_Linux_fs/kernel/drivers/media/usb/pwc/pwc-kiara.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-or-later */
2*4882a593Smuzhiyun /* Linux driver for Philips webcam
3*4882a593Smuzhiyun    (C) 2004-2006 Luc Saillard (luc@saillard.org)
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun    NOTE: this version of pwc is an unofficial (modified) release of pwc & pcwx
6*4882a593Smuzhiyun    driver and thus may have bugs that are not present in the original version.
7*4882a593Smuzhiyun    Please send bug reports and support requests to <luc@saillard.org>.
8*4882a593Smuzhiyun    The decompression routines have been implemented by reverse-engineering the
9*4882a593Smuzhiyun    Nemosoft binary pwcx module. Caveat emptor.
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun */
12*4882a593Smuzhiyun 
13*4882a593Smuzhiyun /* Entries for the Kiara (730/740/750) camera */
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #ifndef PWC_KIARA_H
16*4882a593Smuzhiyun #define PWC_KIARA_H
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #include "pwc.h"
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun #define PWC_FPS_MAX_KIARA 6
21*4882a593Smuzhiyun 
22*4882a593Smuzhiyun struct Kiara_table_entry
23*4882a593Smuzhiyun {
24*4882a593Smuzhiyun 	char alternate;			/* USB alternate interface */
25*4882a593Smuzhiyun 	unsigned short packetsize;	/* Normal packet size */
26*4882a593Smuzhiyun 	unsigned short bandlength;	/* Bandlength when decompressing */
27*4882a593Smuzhiyun 	unsigned char mode[12];		/* precomputed mode settings for cam */
28*4882a593Smuzhiyun };
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun extern const struct Kiara_table_entry Kiara_table[PSZ_MAX][PWC_FPS_MAX_KIARA][4];
31*4882a593Smuzhiyun extern const unsigned int KiaraRomTable[8][2][16][8];
32*4882a593Smuzhiyun extern const unsigned int Kiara_fps_vector[PWC_FPS_MAX_KIARA];
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun #endif
35*4882a593Smuzhiyun 
36*4882a593Smuzhiyun 
37