xref: /linux/drivers/media/usb/pwc/pwc-kiara.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*1a59d1b8SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */
20c0d06caSMauro Carvalho Chehab /* Linux driver for Philips webcam
30c0d06caSMauro Carvalho Chehab    (C) 2004-2006 Luc Saillard (luc@saillard.org)
40c0d06caSMauro Carvalho Chehab 
50c0d06caSMauro Carvalho Chehab    NOTE: this version of pwc is an unofficial (modified) release of pwc & pcwx
60c0d06caSMauro Carvalho Chehab    driver and thus may have bugs that are not present in the original version.
70c0d06caSMauro Carvalho Chehab    Please send bug reports and support requests to <luc@saillard.org>.
80c0d06caSMauro Carvalho Chehab    The decompression routines have been implemented by reverse-engineering the
90c0d06caSMauro Carvalho Chehab    Nemosoft binary pwcx module. Caveat emptor.
100c0d06caSMauro Carvalho Chehab 
110c0d06caSMauro Carvalho Chehab */
120c0d06caSMauro Carvalho Chehab 
130c0d06caSMauro Carvalho Chehab /* Entries for the Kiara (730/740/750) camera */
140c0d06caSMauro Carvalho Chehab 
150c0d06caSMauro Carvalho Chehab #ifndef PWC_KIARA_H
160c0d06caSMauro Carvalho Chehab #define PWC_KIARA_H
170c0d06caSMauro Carvalho Chehab 
180c0d06caSMauro Carvalho Chehab #include "pwc.h"
190c0d06caSMauro Carvalho Chehab 
200c0d06caSMauro Carvalho Chehab #define PWC_FPS_MAX_KIARA 6
210c0d06caSMauro Carvalho Chehab 
220c0d06caSMauro Carvalho Chehab struct Kiara_table_entry
230c0d06caSMauro Carvalho Chehab {
240c0d06caSMauro Carvalho Chehab 	char alternate;			/* USB alternate interface */
250c0d06caSMauro Carvalho Chehab 	unsigned short packetsize;	/* Normal packet size */
260c0d06caSMauro Carvalho Chehab 	unsigned short bandlength;	/* Bandlength when decompressing */
270c0d06caSMauro Carvalho Chehab 	unsigned char mode[12];		/* precomputed mode settings for cam */
280c0d06caSMauro Carvalho Chehab };
290c0d06caSMauro Carvalho Chehab 
300c0d06caSMauro Carvalho Chehab extern const struct Kiara_table_entry Kiara_table[PSZ_MAX][PWC_FPS_MAX_KIARA][4];
310c0d06caSMauro Carvalho Chehab extern const unsigned int KiaraRomTable[8][2][16][8];
320c0d06caSMauro Carvalho Chehab extern const unsigned int Kiara_fps_vector[PWC_FPS_MAX_KIARA];
330c0d06caSMauro Carvalho Chehab 
340c0d06caSMauro Carvalho Chehab #endif
350c0d06caSMauro Carvalho Chehab 
360c0d06caSMauro Carvalho Chehab 
37