Root/target/linux/ubicom32/files/arch/ubicom32/include/asm/ubicom32fb.h

1/*
2 * arch/ubicom32/include/asm/ubicom32fb.h
3 * Ubicom32 architecture video frame buffer definitions.
4 *
5 * (C) Copyright 2009, Ubicom, Inc.
6 *
7 * This file is part of the Ubicom32 Linux Kernel Port.
8 *
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.
13 *
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.
18 *
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/>.
22 */
23#ifndef _ASM_UBICOM32_UBICOM32FB_H
24#define _ASM_UBICOM32_UBICOM32FB_H
25
26#include <linux/ioctl.h>
27
28/*
29 * Set next frame
30 */
31#define UBICOM32FB_IOCTL_SET_NEXT_FRAME _IOW('r', 1, void *)
32#define UBICOM32FB_IOCTL_SET_NEXT_FRAME_SYNC _IOW('r', 2, void *)
33
34/*
35 * Set Mode
36 */
37#define UBICOM32FB_IOCTL_SET_MODE _IOW('r', 3, void *)
38struct ubicom32fb_mode {
39    unsigned long width;
40    unsigned long height;
41    unsigned long flags;
42    void *next_frame;
43};
44#define UBICOM32FB_IOCTL_SET_MODE_FLAG_YUV_SCAN_ORDER (1 << 8)
45
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)
50
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)
55
56#endif /* _ASM_UBICOM32_UBICOM32FB_H */
57

Archive Download this file



interactive