• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
17  */
18 
19 #ifndef __MIPI_TX_HAL_H__
20 #define __MIPI_TX_HAL_H__
21 
22 #include "hi_mipi_tx.h"
23 
24 typedef struct {
25     unsigned int vall_det;
26     unsigned int vact_det;
27     unsigned int hall_det;
28     unsigned int hact_det;
29     unsigned int hbp_det;
30     unsigned int hsa_det;
31     unsigned int vsa_det;
32 } mipi_tx_dev_phy_t;
33 
34 void mipi_tx_drv_set_phy_cfg(const combo_dev_cfg_t *dev_cfg);
35 void mipi_tx_drv_get_dev_status(mipi_tx_dev_phy_t *mipi_tx_phy_ctx);
36 void mipi_tx_drv_set_controller_cfg(const combo_dev_cfg_t *dev_cfg);
37 int mipi_tx_drv_set_cmd_info(const cmd_info_t *cmd_info);
38 int mipi_tx_drv_get_cmd_info(get_cmd_info_t *get_cmd_info);
39 void mipi_tx_drv_enable_input(const output_mode_t output_mode);
40 void mipi_tx_drv_disable_input(void);
41 
42 int mipi_tx_drv_init(int smooth);
43 void mipi_tx_drv_exit(void);
44 
45 #endif
46