Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: omapfb.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* File: include/linux/omapfb.h
[2] Fix | Delete
*
[3] Fix | Delete
* Framebuffer driver for TI OMAP boards
[4] Fix | Delete
*
[5] Fix | Delete
* Copyright (C) 2004 Nokia Corporation
[6] Fix | Delete
* Author: Imre Deak <imre.deak@nokia.com>
[7] Fix | Delete
*
[8] Fix | Delete
* This program is free software; you can redistribute it and/or modify it
[9] Fix | Delete
* under the terms of the GNU General Public License as published by the
[10] Fix | Delete
* Free Software Foundation; either version 2 of the License, or (at your
[11] Fix | Delete
* option) any later version.
[12] Fix | Delete
*
[13] Fix | Delete
* This program is distributed in the hope that it will be useful, but
[14] Fix | Delete
* WITHOUT ANY WARRANTY; without even the implied warranty of
[15] Fix | Delete
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[16] Fix | Delete
* General Public License for more details.
[17] Fix | Delete
*
[18] Fix | Delete
* You should have received a copy of the GNU General Public License along
[19] Fix | Delete
* with this program; if not, write to the Free Software Foundation, Inc.,
[20] Fix | Delete
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
[21] Fix | Delete
*/
[22] Fix | Delete
[23] Fix | Delete
#ifndef __LINUX_OMAPFB_H__
[24] Fix | Delete
#define __LINUX_OMAPFB_H__
[25] Fix | Delete
[26] Fix | Delete
#include <linux/fb.h>
[27] Fix | Delete
#include <linux/ioctl.h>
[28] Fix | Delete
#include <linux/types.h>
[29] Fix | Delete
[30] Fix | Delete
/* IOCTL commands. */
[31] Fix | Delete
[32] Fix | Delete
#define OMAP_IOW(num, dtype) _IOW('O', num, dtype)
[33] Fix | Delete
#define OMAP_IOR(num, dtype) _IOR('O', num, dtype)
[34] Fix | Delete
#define OMAP_IOWR(num, dtype) _IOWR('O', num, dtype)
[35] Fix | Delete
#define OMAP_IO(num) _IO('O', num)
[36] Fix | Delete
[37] Fix | Delete
#define OMAPFB_MIRROR OMAP_IOW(31, int)
[38] Fix | Delete
#define OMAPFB_SYNC_GFX OMAP_IO(37)
[39] Fix | Delete
#define OMAPFB_VSYNC OMAP_IO(38)
[40] Fix | Delete
#define OMAPFB_SET_UPDATE_MODE OMAP_IOW(40, int)
[41] Fix | Delete
#define OMAPFB_GET_CAPS OMAP_IOR(42, struct omapfb_caps)
[42] Fix | Delete
#define OMAPFB_GET_UPDATE_MODE OMAP_IOW(43, int)
[43] Fix | Delete
#define OMAPFB_LCD_TEST OMAP_IOW(45, int)
[44] Fix | Delete
#define OMAPFB_CTRL_TEST OMAP_IOW(46, int)
[45] Fix | Delete
#define OMAPFB_UPDATE_WINDOW_OLD OMAP_IOW(47, struct omapfb_update_window_old)
[46] Fix | Delete
#define OMAPFB_SET_COLOR_KEY OMAP_IOW(50, struct omapfb_color_key)
[47] Fix | Delete
#define OMAPFB_GET_COLOR_KEY OMAP_IOW(51, struct omapfb_color_key)
[48] Fix | Delete
#define OMAPFB_SETUP_PLANE OMAP_IOW(52, struct omapfb_plane_info)
[49] Fix | Delete
#define OMAPFB_QUERY_PLANE OMAP_IOW(53, struct omapfb_plane_info)
[50] Fix | Delete
#define OMAPFB_UPDATE_WINDOW OMAP_IOW(54, struct omapfb_update_window)
[51] Fix | Delete
#define OMAPFB_SETUP_MEM OMAP_IOW(55, struct omapfb_mem_info)
[52] Fix | Delete
#define OMAPFB_QUERY_MEM OMAP_IOW(56, struct omapfb_mem_info)
[53] Fix | Delete
#define OMAPFB_WAITFORVSYNC OMAP_IO(57)
[54] Fix | Delete
#define OMAPFB_MEMORY_READ OMAP_IOR(58, struct omapfb_memory_read)
[55] Fix | Delete
#define OMAPFB_GET_OVERLAY_COLORMODE OMAP_IOR(59, struct omapfb_ovl_colormode)
[56] Fix | Delete
#define OMAPFB_WAITFORGO OMAP_IO(60)
[57] Fix | Delete
#define OMAPFB_GET_VRAM_INFO OMAP_IOR(61, struct omapfb_vram_info)
[58] Fix | Delete
#define OMAPFB_SET_TEARSYNC OMAP_IOW(62, struct omapfb_tearsync_info)
[59] Fix | Delete
#define OMAPFB_GET_DISPLAY_INFO OMAP_IOR(63, struct omapfb_display_info)
[60] Fix | Delete
[61] Fix | Delete
#define OMAPFB_CAPS_GENERIC_MASK 0x00000fff
[62] Fix | Delete
#define OMAPFB_CAPS_LCDC_MASK 0x00fff000
[63] Fix | Delete
#define OMAPFB_CAPS_PANEL_MASK 0xff000000
[64] Fix | Delete
[65] Fix | Delete
#define OMAPFB_CAPS_MANUAL_UPDATE 0x00001000
[66] Fix | Delete
#define OMAPFB_CAPS_TEARSYNC 0x00002000
[67] Fix | Delete
#define OMAPFB_CAPS_PLANE_RELOCATE_MEM 0x00004000
[68] Fix | Delete
#define OMAPFB_CAPS_PLANE_SCALE 0x00008000
[69] Fix | Delete
#define OMAPFB_CAPS_WINDOW_PIXEL_DOUBLE 0x00010000
[70] Fix | Delete
#define OMAPFB_CAPS_WINDOW_SCALE 0x00020000
[71] Fix | Delete
#define OMAPFB_CAPS_WINDOW_OVERLAY 0x00040000
[72] Fix | Delete
#define OMAPFB_CAPS_WINDOW_ROTATE 0x00080000
[73] Fix | Delete
#define OMAPFB_CAPS_SET_BACKLIGHT 0x01000000
[74] Fix | Delete
[75] Fix | Delete
/* Values from DSP must map to lower 16-bits */
[76] Fix | Delete
#define OMAPFB_FORMAT_MASK 0x00ff
[77] Fix | Delete
#define OMAPFB_FORMAT_FLAG_DOUBLE 0x0100
[78] Fix | Delete
#define OMAPFB_FORMAT_FLAG_TEARSYNC 0x0200
[79] Fix | Delete
#define OMAPFB_FORMAT_FLAG_FORCE_VSYNC 0x0400
[80] Fix | Delete
#define OMAPFB_FORMAT_FLAG_ENABLE_OVERLAY 0x0800
[81] Fix | Delete
#define OMAPFB_FORMAT_FLAG_DISABLE_OVERLAY 0x1000
[82] Fix | Delete
[83] Fix | Delete
#define OMAPFB_MEMTYPE_SDRAM 0
[84] Fix | Delete
#define OMAPFB_MEMTYPE_SRAM 1
[85] Fix | Delete
#define OMAPFB_MEMTYPE_MAX 1
[86] Fix | Delete
[87] Fix | Delete
#define OMAPFB_MEM_IDX_ENABLED 0x80
[88] Fix | Delete
#define OMAPFB_MEM_IDX_MASK 0x7f
[89] Fix | Delete
[90] Fix | Delete
enum omapfb_color_format {
[91] Fix | Delete
OMAPFB_COLOR_RGB565 = 0,
[92] Fix | Delete
OMAPFB_COLOR_YUV422,
[93] Fix | Delete
OMAPFB_COLOR_YUV420,
[94] Fix | Delete
OMAPFB_COLOR_CLUT_8BPP,
[95] Fix | Delete
OMAPFB_COLOR_CLUT_4BPP,
[96] Fix | Delete
OMAPFB_COLOR_CLUT_2BPP,
[97] Fix | Delete
OMAPFB_COLOR_CLUT_1BPP,
[98] Fix | Delete
OMAPFB_COLOR_RGB444,
[99] Fix | Delete
OMAPFB_COLOR_YUY422,
[100] Fix | Delete
[101] Fix | Delete
OMAPFB_COLOR_ARGB16,
[102] Fix | Delete
OMAPFB_COLOR_RGB24U, /* RGB24, 32-bit container */
[103] Fix | Delete
OMAPFB_COLOR_RGB24P, /* RGB24, 24-bit container */
[104] Fix | Delete
OMAPFB_COLOR_ARGB32,
[105] Fix | Delete
OMAPFB_COLOR_RGBA32,
[106] Fix | Delete
OMAPFB_COLOR_RGBX32,
[107] Fix | Delete
};
[108] Fix | Delete
[109] Fix | Delete
struct omapfb_update_window {
[110] Fix | Delete
__u32 x, y;
[111] Fix | Delete
__u32 width, height;
[112] Fix | Delete
__u32 format;
[113] Fix | Delete
__u32 out_x, out_y;
[114] Fix | Delete
__u32 out_width, out_height;
[115] Fix | Delete
__u32 reserved[8];
[116] Fix | Delete
};
[117] Fix | Delete
[118] Fix | Delete
struct omapfb_update_window_old {
[119] Fix | Delete
__u32 x, y;
[120] Fix | Delete
__u32 width, height;
[121] Fix | Delete
__u32 format;
[122] Fix | Delete
};
[123] Fix | Delete
[124] Fix | Delete
enum omapfb_plane {
[125] Fix | Delete
OMAPFB_PLANE_GFX = 0,
[126] Fix | Delete
OMAPFB_PLANE_VID1,
[127] Fix | Delete
OMAPFB_PLANE_VID2,
[128] Fix | Delete
};
[129] Fix | Delete
[130] Fix | Delete
enum omapfb_channel_out {
[131] Fix | Delete
OMAPFB_CHANNEL_OUT_LCD = 0,
[132] Fix | Delete
OMAPFB_CHANNEL_OUT_DIGIT,
[133] Fix | Delete
};
[134] Fix | Delete
[135] Fix | Delete
struct omapfb_plane_info {
[136] Fix | Delete
__u32 pos_x;
[137] Fix | Delete
__u32 pos_y;
[138] Fix | Delete
__u8 enabled;
[139] Fix | Delete
__u8 channel_out;
[140] Fix | Delete
__u8 mirror;
[141] Fix | Delete
__u8 mem_idx;
[142] Fix | Delete
__u32 out_width;
[143] Fix | Delete
__u32 out_height;
[144] Fix | Delete
__u32 reserved2[12];
[145] Fix | Delete
};
[146] Fix | Delete
[147] Fix | Delete
struct omapfb_mem_info {
[148] Fix | Delete
__u32 size;
[149] Fix | Delete
__u8 type;
[150] Fix | Delete
__u8 reserved[3];
[151] Fix | Delete
};
[152] Fix | Delete
[153] Fix | Delete
struct omapfb_caps {
[154] Fix | Delete
__u32 ctrl;
[155] Fix | Delete
__u32 plane_color;
[156] Fix | Delete
__u32 wnd_color;
[157] Fix | Delete
};
[158] Fix | Delete
[159] Fix | Delete
enum omapfb_color_key_type {
[160] Fix | Delete
OMAPFB_COLOR_KEY_DISABLED = 0,
[161] Fix | Delete
OMAPFB_COLOR_KEY_GFX_DST,
[162] Fix | Delete
OMAPFB_COLOR_KEY_VID_SRC,
[163] Fix | Delete
};
[164] Fix | Delete
[165] Fix | Delete
struct omapfb_color_key {
[166] Fix | Delete
__u8 channel_out;
[167] Fix | Delete
__u32 background;
[168] Fix | Delete
__u32 trans_key;
[169] Fix | Delete
__u8 key_type;
[170] Fix | Delete
};
[171] Fix | Delete
[172] Fix | Delete
enum omapfb_update_mode {
[173] Fix | Delete
OMAPFB_UPDATE_DISABLED = 0,
[174] Fix | Delete
OMAPFB_AUTO_UPDATE,
[175] Fix | Delete
OMAPFB_MANUAL_UPDATE
[176] Fix | Delete
};
[177] Fix | Delete
[178] Fix | Delete
struct omapfb_memory_read {
[179] Fix | Delete
__u16 x;
[180] Fix | Delete
__u16 y;
[181] Fix | Delete
__u16 w;
[182] Fix | Delete
__u16 h;
[183] Fix | Delete
size_t buffer_size;
[184] Fix | Delete
void *buffer;
[185] Fix | Delete
};
[186] Fix | Delete
[187] Fix | Delete
struct omapfb_ovl_colormode {
[188] Fix | Delete
__u8 overlay_idx;
[189] Fix | Delete
__u8 mode_idx;
[190] Fix | Delete
__u32 bits_per_pixel;
[191] Fix | Delete
__u32 nonstd;
[192] Fix | Delete
struct fb_bitfield red;
[193] Fix | Delete
struct fb_bitfield green;
[194] Fix | Delete
struct fb_bitfield blue;
[195] Fix | Delete
struct fb_bitfield transp;
[196] Fix | Delete
};
[197] Fix | Delete
[198] Fix | Delete
struct omapfb_vram_info {
[199] Fix | Delete
__u32 total;
[200] Fix | Delete
__u32 free;
[201] Fix | Delete
__u32 largest_free_block;
[202] Fix | Delete
__u32 reserved[5];
[203] Fix | Delete
};
[204] Fix | Delete
[205] Fix | Delete
struct omapfb_tearsync_info {
[206] Fix | Delete
__u8 enabled;
[207] Fix | Delete
__u8 reserved1[3];
[208] Fix | Delete
__u16 line;
[209] Fix | Delete
__u16 reserved2;
[210] Fix | Delete
};
[211] Fix | Delete
[212] Fix | Delete
struct omapfb_display_info {
[213] Fix | Delete
__u16 xres;
[214] Fix | Delete
__u16 yres;
[215] Fix | Delete
__u32 width; /* phys width of the display in micrometers */
[216] Fix | Delete
__u32 height; /* phys height of the display in micrometers */
[217] Fix | Delete
__u32 reserved[5];
[218] Fix | Delete
};
[219] Fix | Delete
[220] Fix | Delete
[221] Fix | Delete
#endif /* __LINUX_OMAPFB_H__ */
[222] Fix | Delete
[223] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function