oleavr-rgl-a500-mini-linux-.../drivers/video/sunxi/disp2/hdmi/dev_hdmi.h
Ole André Vadla Ravnås 169c65d57e Initial commit
2022-05-07 01:01:45 +02:00

47 lines
1.5 KiB
C
Executable file

/*
* linux-3.10/drivers/video/sunxi/disp2/hdmi/dev_hdmi.h
*
* Copyright (c) 2007-2017 Allwinnertech Co., Ltd.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __DEV_DISPLAY_H__
#define __DEV_DISPLAY_H__
#include "drv_hdmi_i.h"
int hdmi_open(struct inode *inode, struct file *file);
int hdmi_release(struct inode *inode, struct file *file);
ssize_t hdmi_read(struct file *file, char __user *buf, size_t count, loff_t *ppos);
ssize_t hdmi_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos);
int hdmi_mmap(struct file *file, struct vm_area_struct * vma);
long hdmi_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
extern s32 hdmi_init(struct platform_device *pdev);
extern s32 hdmi_exit(void);
extern s32 Fb_Init(u32 from);
s32 hdmi_hpd_state(u32 state);
s32 hdmi_hpd_event(void);
typedef struct
{
struct device *dev;
bool bopen;
enum disp_tv_mode mode;//vic
u32 base_hdmi;
struct work_struct hpd_work;
}hdmi_info_t;
extern hdmi_info_t ghdmi;
extern struct disp_video_timings video_timing[];
#endif