2 * @author Olivier LORIN, tiré du pilote Syntek par Nicolas VIVIEN
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include <linux/version.h>
24 #define MODULE_NAME "gspca_gl860"
25 #define DRIVER_VERSION "0.9d10"
27 #define ctrl_in gl860_RTx
28 #define ctrl_out gl860_RTx
36 #define _MI1320_ (((struct sd *) gspca_dev)->sensor == ID_MI1320)
37 #define _MI2020_ (((struct sd *) gspca_dev)->sensor == ID_MI2020)
38 #define _MI2020b_ (((struct sd *) gspca_dev)->sensor == ID_MI2020b)
40 #define _OV2640_ (((struct sd *) gspca_dev)->sensor == ID_OV2640)
41 #define _OV9655_ (((struct sd *) gspca_dev)->sensor == ID_OV9655)
62 /* Specific webcam descriptor */
64 struct gspca_dev gspca_dev
; /* !! must be the first item */
70 int (*dev_configure_alt
) (struct gspca_dev
*);
71 int (*dev_init_at_startup
)(struct gspca_dev
*);
72 int (*dev_init_pre_alt
) (struct gspca_dev
*);
73 void (*dev_post_unset_alt
) (struct gspca_dev
*);
74 int (*dev_camera_settings
)(struct gspca_dev
*);
94 int fetch_validx(struct gspca_dev
*gspca_dev
, struct validx
*tbl
, int len
);
95 int keep_on_fetching_validx(struct gspca_dev
*gspca_dev
, struct validx
*tbl
,
97 void fetch_idxdata(struct gspca_dev
*gspca_dev
, struct idxdata
*tbl
, int len
);
99 int gl860_RTx(struct gspca_dev
*gspca_dev
,
100 unsigned char pref
, u32 req
, u16 val
, u16 index
,
101 s32 len
, void *pdata
);
103 void mi1320_init_settings(struct gspca_dev
*);
104 void ov2640_init_settings(struct gspca_dev
*);
105 void ov9655_init_settings(struct gspca_dev
*);
106 void mi2020_init_settings(struct gspca_dev
*);