hc
2023-10-16 def2367077573b56f9fc4f824e5c0377a3a4175a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/* SPDX-License-Identifier: GPL-2.0 */
/********************************************************************************
 *
 *  Copyright (C) 2017     NEXTCHIP Inc. All rights reserved.
 *  Module        : video_input.c
 *  Description    :
 *  Author        :
 *  Date         :
 *  Version        : Version 1.0
 *
 ********************************************************************************
 *  History      :
 *
 *
 ********************************************************************************/
#ifndef _JAGUAR1_VIDEO_
#define _JAGUAR1_VIDEO_
 
#include "jaguar1_common.h"
 
 
/* ===============================================
 * APP -> DRV
 * =============================================== */
typedef struct _video_input_init{
   unsigned char ch;
   unsigned char format;
   unsigned char dist;
   unsigned char input;
   unsigned char val;
   unsigned char interface;
}video_input_init;
 
typedef struct _video_init_all{
   video_input_init ch_param[4];
}video_init_all;
 
typedef struct _video_output_init{
   unsigned char format;
   unsigned char port;
   unsigned char out_ch;
   unsigned char interface;
}video_output_init;
 
typedef struct _video_video_loss_s{
   unsigned char devnum;
   unsigned char videoloss;
   unsigned char reserve2;
} video_video_loss_s;
 
extern unsigned int acp_mode_enable;
 
void vd_jaguar1_init_set( void *p_param);
void vd_jaguar1_vo_ch_seq_set( void *p_param);
void vd_jaguar1_eq_set( void *p_param );
void vd_jaguar1_sw_reset( void *p_param );
void vd_jaguar1_get_novideo( video_video_loss_s *vidloss );
 
void current_bank_set( unsigned char bank );
unsigned char current_bank_get( void );
void vd_register_set( int dev, unsigned char bank, unsigned char addr, unsigned char val, int pos, int size );
void reg_val_print_flag_set( int set );
 
void vd_vo_seq_set( unsigned char dev, unsigned char ch, void *p_param );
#endif
/********************************************************************
 *  End of file
 ********************************************************************/