2 * arch/ubicom32/include/asm/ubicom32fb.h
3 * Ubicom32 architecture video frame buffer definitions.
5 * (C) Copyright 2009, Ubicom, Inc.
7 * This file is part of the Ubicom32 Linux Kernel Port.
9 * The Ubicom32 Linux Kernel Port is free software: you can redistribute
10 * it and/or modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation, either version 2 of the
12 * License, or (at your option) any later version.
14 * The Ubicom32 Linux Kernel Port is distributed in the hope that it
15 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
16 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
17 * the GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with the Ubicom32 Linux Kernel Port. If not,
21 * see <http://www.gnu.org/licenses/>.
23 #ifndef _ASM_UBICOM32_UBICOM32FB_H
24 #define _ASM_UBICOM32_UBICOM32FB_H
26 #include <linux/ioctl.h>
31 #define UBICOM32FB_IOCTL_SET_NEXT_FRAME _IOW('r', 1, void *)
32 #define UBICOM32FB_IOCTL_SET_NEXT_FRAME_SYNC _IOW('r', 2, void *)
37 #define UBICOM32FB_IOCTL_SET_MODE _IOW('r', 3, void *)
38 struct ubicom32fb_mode
{
44 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_YUV_SCAN_ORDER (1 << 8)
46 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_YUV_BLOCK_ORDER (1 << 7)
47 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_YUV (1 << 6)
48 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_VSUB (1 << 5)
49 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_VRANGE_16_255 (1 << 4)
51 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_VRANGE_0_255 (1 << 3)
52 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_HSUB_2_1 (1 << 2)
53 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_HSUB_1_1 (1 << 1)
54 #define UBICOM32FB_IOCTL_SET_MODE_FLAG_SCALE_ENABLE (1 << 0)
56 #endif /* _ASM_UBICOM32_UBICOM32FB_H */