1 // SPDX-License-Identifier: GPL-2.0 2 /******************************************************************************** 3 * 4 * Copyright (C) 2017 NEXTCHIP Inc. All rights reserved. 5 * Module : Nvp6158 Device Driver 6 * Description : BT1120 7 * Author : 8 * Date : 9 * Version : Version 1.0 10 * 11 ******************************************************************************** 12 * History : 13 * 14 * 15 ********************************************************************************/ 16 #ifndef _NVP6158_DRV_ 17 #define _NVP6158_DRV_ 18 19 #include "nvp6158_video.h" 20 21 extern void nvp6158_datareverse(unsigned char chip, unsigned char port); 22 23 int nvp6158_open(struct inode * inode, struct file * file); 24 int nvp6158_close(struct inode * inode, struct file * file); 25 long nvp6158_native_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 26 void nvp6158_i2c_client_exit(void); 27 28 void nvp6158_set_mclk(unsigned int mclk); 29 void nvp6158_start(video_init_all *video_init, bool dual_edge); 30 void nvp6158_stop(void); 31 int nvp6158_init(int i2c_bus); 32 void nvp6158_exit(void); 33 34 #endif 35