XenevaOS
Loading...
Searching...
No Matches
videomode.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Copyright 2012 Steffen Trumtrar <s.trumtrar@pengutronix.de>
4 *
5 * generic videomode description
6 */
7
8#ifndef __LINUX_VIDEOMODE_H
9#define __LINUX_VIDEOMODE_H
10
11#include <linux/types.h>
13
14/*
15 * Subsystem independent description of a videomode.
16 * Can be generated from struct display_timing.
17 */
18struct videomode {
19 unsigned long pixelclock; /* pixelclock in Hz */
20
25
30
31 enum display_flags flags; /* display flags */
32};
33
43 struct videomode *vm);
44
55 struct videomode *vm, unsigned int index);
56
57#endif
#define index(str, chr)
Definition string.h:66
display_flags
Definition display_timing.h:14
uint32_t u32
Definition kernel.h:16
Definition display_timing.h:63
Definition display_timing.h:85
Definition videomode.h:18
u32 vfront_porch
Definition videomode.h:27
u32 hactive
Definition videomode.h:21
u32 vback_porch
Definition videomode.h:28
u32 vsync_len
Definition videomode.h:29
unsigned long pixelclock
Definition videomode.h:19
u32 hfront_porch
Definition videomode.h:22
u32 hsync_len
Definition videomode.h:24
u32 vactive
Definition videomode.h:26
enum display_flags flags
Definition videomode.h:31
u32 hback_porch
Definition videomode.h:23
void videomode_from_timing(const struct display_timing *dt, struct videomode *vm)
int videomode_from_timings(const struct display_timings *disp, struct videomode *vm, unsigned int index)