tegrakernel/kernel/nvidia/include/uapi/video/tegrafb.h

48 lines
1.2 KiB
C
Raw Normal View History

2022-02-16 09:13:02 -06:00
/*
* 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