huangcm
2025-07-03 c26084b3642f262f858535ab4e46c1e9b520d3a1
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
/*
 * Allwinner SoCs hdmi driver.
 *
 * Copyright (C) 2016 Allwinner.
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 */
 
#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