• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * A V4L2 driver for nvp6324 cameras and AHD Coax protocol.
3  *
4  * Copyright (c) 2017 by Allwinnertech Co., Ltd.  http://www.allwinnertech.com
5  *
6  * Authors:  Li Huiyu <lihuiyu@allwinnertech.com>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as
10  * published by the Free Software Foundation.
11  */
12 
13 #ifndef _JAGUAR1_VIDEO_
14 #define _JAGUAR1_VIDEO_
15 
16 #include "jaguar1_common.h"
17 
18 
19 #define USE_1080P   1
20 #define USE_720P    2
21 
22 /* ===============================================
23  * APP -> DRV
24  * =============================================== */
25 typedef struct _video_input_init {
26 	unsigned char ch;
27 	unsigned char format;
28 	unsigned char dist;
29 	unsigned char input;
30 	unsigned char val;
31 	unsigned char interface;
32 } video_input_init;
33 
34 typedef struct _video_init_all {
35 	video_input_init ch_param[4];
36 } video_init_all;
37 
38 typedef struct _video_output_init {
39 	unsigned char format;
40 	unsigned char port;
41 	unsigned char out_ch;
42 	unsigned char interface;
43 } video_output_init;
44 
45 typedef struct _video_video_loss_s {
46 	unsigned char devnum;
47 	unsigned char videoloss;
48 	unsigned char reserve2;
49 } video_video_loss_s;
50 
51 void vd_jaguar1_init_set(void *p_param);
52 void vd_jaguar1_vo_ch_seq_set(void *p_param);
53 void vd_jaguar1_eq_set(void *p_param);
54 void vd_jaguar1_sw_reset(void *p_param);
55 void vd_jaguar1_get_novideo(video_video_loss_s *vidloss);
56 
57 void current_bank_set(unsigned char bank);
58 unsigned char current_bank_get(void);
59 void vd_register_set(int dev, unsigned char bank, unsigned char addr, unsigned char val, int pos, int size);
60 void reg_val_print_flag_set(int set);
61 #endif
62 /********************************************************************
63  *  End of file
64  ********************************************************************/
65