blob: 98c18fedd6924600e40a9b9317c8d37a76c212db (
plain) (
blame)
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
43
44
45
46
47
|
/*
* tegrafb.h: tegra fb interface.
*
* Copyright (C) 2010 Google, Inc.
* Author: Erik Gilling <konkers@android.com>
*
* Copyright (c) 2014-2018 NVIDIA CORPORATION. All rights reserved.
*
* 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 __UAPI_LINUX_TEGRAFB_H_
#define __UAPI_LINUX_TEGRAFB_H_
#include <linux/fb.h>
#include <linux/types.h>
#include <linux/ioctl.h>
#if defined(__KERNEL__)
#include <linux/compat.h>
#endif
struct tegra_fb_modedb {
struct fb_var_screeninfo *modedb;
__u32 modedb_len;
};
#ifdef CONFIG_COMPAT
struct tegra_fb_modedb_compat {
__u32 modedb;
__u32 modedb_len;
};
#define FBIO_TEGRA_GET_MODEDB_COMPAT \
_IOWR('F', 0x42, struct tegra_fb_modedb_compat)
#endif
#define FBIO_TEGRA_GET_MODEDB _IOWR('F', 0x42, struct tegra_fb_modedb)
#endif
|