huangcm
2025-07-03 571fede27a127398697e783a06a833e37b5b58c3
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 display 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 __DISP_VGA_H__
#define __DISP_VGA_H__
 
#include "disp_private.h"
#include "disp_display.h"
 
struct disp_vga_private_data {
   bool enabled;
   bool suspended;
 
   enum disp_tv_mode vga_mode;
   struct disp_tv_func tv_func;
   struct disp_video_timings *video_info;
 
   struct disp_clk_info lcd_clk;
   struct clk *clk;
   struct clk *clk_parent;
 
   s32 frame_per_sec;
   u32 usec_per_line;
   u32 judge_line;
 
   u32 irq_no;
   spinlock_t data_lock;
   struct mutex mlock;
};
 
s32 disp_init_vga(void);
 
 
extern void sync_event_proc(u32 disp, bool timeout);
#endif