add tegrafb.h
authorErik Gilling <konkers@android.com>
Wed, 8 Sep 2010 00:46:59 +0000 (17:46 -0700)
committerColin Cross <ccross@android.com>
Wed, 6 Oct 2010 23:50:32 +0000 (16:50 -0700)
Change-Id: If86b82253915196c2962e04286b9ac7ea400c193

include/video/tegrafb.h [new file with mode: 0644]

diff --git a/include/video/tegrafb.h b/include/video/tegrafb.h
new file mode 100644 (file)
index 0000000..cb040ae
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * include/video/tegrafb.h
+ *
+ * Copyright (C) 2010 Google, Inc.
+ * Author: Erik Gilling <konkers@android.com>
+ *
+ * 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 _LINUX_TEGRAFB_H_
+#define _LINUX_TEGRAFB_H_
+
+#include <linux/types.h>
+#include <asm/ioctl.h>
+
+struct tegra_fb_flip_args {
+       __u32   buff_id;
+       __u32   pre_syncpt_id;
+       __u32   pre_syncpt_val;
+       __u32   post_syncpt_id;
+       __u32   post_syncpt_val;
+};
+
+#define FBIO_TEGRA_SET_NVMAP_FD        _IOW('F', 0x40, __u32)
+#define FBIO_TEGRA_FLIP                _IOW('F', 0x41, struct tegra_fb_flip_args)
+
+#endif