From 86666cc6ef99fa0a2761dc0c56e30df7cbb8e52c Mon Sep 17 00:00:00 2001 From: Ziyan Date: Sat, 11 Apr 2015 23:15:11 +0200 Subject: Remove common omap4 modules domx: remove for move to omap4-next edid/hwc: remove for move to omap4-next include / kernel-headers: remove for move to omap4-next libcorkscrew: remove for move to omap4-next libion_ti: remove for move to omap4-next libtiutils: remove for move to omap4-next pvr-source / pvrsrvinit: remove for move to omap4-next remove gralloc symlink for move to omap4-next Change-Id: I1ade011fd5e0adedbcb19cbf941fdde5ef4f96b6 symlinks: remove for move to omap4-next --- kernel-headers/linux/bltsville.h | 525 ---------------- kernel-headers/linux/bvblend.h | 210 ------- kernel-headers/linux/bvbuffdesc.h | 56 -- kernel-headers/linux/bvcache.h | 41 -- kernel-headers/linux/bventry.h | 39 -- kernel-headers/linux/bverror.h | 336 ----------- kernel-headers/linux/bvfilter.h | 34 -- kernel-headers/linux/bvinternal.h | 29 - kernel-headers/linux/bvsurfgeom.h | 34 -- kernel-headers/linux/fb.h | 1206 ------------------------------------- kernel-headers/linux/ocd.h | 624 ------------------- kernel-headers/linux/omap_ion.h | 66 -- kernel-headers/linux/omapfb.h | 231 ------- kernel-headers/linux/rpmsg_omx.h | 51 -- kernel-headers/video/dsscomp.h | 414 ------------- kernel-headers/video/omap_hwc.h | 48 -- 16 files changed, 3944 deletions(-) delete mode 100755 kernel-headers/linux/bltsville.h delete mode 100755 kernel-headers/linux/bvblend.h delete mode 100755 kernel-headers/linux/bvbuffdesc.h delete mode 100755 kernel-headers/linux/bvcache.h delete mode 100755 kernel-headers/linux/bventry.h delete mode 100755 kernel-headers/linux/bverror.h delete mode 100755 kernel-headers/linux/bvfilter.h delete mode 100755 kernel-headers/linux/bvinternal.h delete mode 100755 kernel-headers/linux/bvsurfgeom.h delete mode 100644 kernel-headers/linux/fb.h delete mode 100755 kernel-headers/linux/ocd.h delete mode 100755 kernel-headers/linux/omap_ion.h delete mode 100755 kernel-headers/linux/omapfb.h delete mode 100755 kernel-headers/linux/rpmsg_omx.h delete mode 100755 kernel-headers/video/dsscomp.h delete mode 100755 kernel-headers/video/omap_hwc.h (limited to 'kernel-headers') diff --git a/kernel-headers/linux/bltsville.h b/kernel-headers/linux/bltsville.h deleted file mode 100755 index e5703e8..0000000 --- a/kernel-headers/linux/bltsville.h +++ /dev/null @@ -1,525 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BLTSVILLE_H -#define BLTSVILLE_H -#include "ocd.h" -#include "bverror.h" -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#include "bvblend.h" -#include "bvfilter.h" -#include "bvbuffdesc.h" -#include "bvcache.h" -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#include "bventry.h" -#include "bvsurfgeom.h" -struct bvrect { - int left; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - int top; - unsigned int width; - unsigned int height; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVFLAG_OP_SHIFT 0 -#define BVFLAG_OP_MASK (0xF << BVFLAG_OP_SHIFT) -#define BVFLAG_ROP (0x1 << BVFLAG_OP_SHIFT) -#define BVFLAG_BLEND (0x2 << BVFLAG_OP_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVFLAG_FILTER (0x4 << BVFLAG_OP_SHIFT) -#define BVFLAG_KEY_SRC 0x00000010 -#define BVFLAG_KEY_DST 0x00000020 -#define BVFLAG_CLIP 0x00000040 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVFLAG_SRCMASK 0x00000080 -#define BVFLAG_ASYNC 0x00000100 -#define BVFLAG_TILE_SRC1 0x00000200 -#define BVFLAG_TILE_SRC2 0x00000400 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVFLAG_TILE_MASK 0x00000800 -#define BVFLAG_BATCH_SHIFT 12 -#define BVFLAG_BATCH_MASK (3 << BVFLAG_BATCH_SHIFT) -#define BVFLAG_BATCH_NONE (0 << BVFLAG_BATCH_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVFLAG_BATCH_BEGIN (1 << BVFLAG_BATCH_SHIFT) -#define BVFLAG_BATCH_CONTINUE (2 << BVFLAG_BATCH_SHIFT) -#define BVFLAG_BATCH_END (3 << BVFLAG_BATCH_SHIFT) -#define BVFLAG_HORZ_FLIP_SRC1 0x00004000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVFLAG_VERT_FLIP_SRC1 0x00008000 -#define BVFLAG_HORZ_FLIP_SRC2 0x00010000 -#define BVFLAG_VERT_FLIP_SRC2 0x00020000 -#define BVFLAG_HORZ_FLIP_MASK 0x00040000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVFLAG_VERT_FLIP_MASK 0x00080000 -#define BVFLAG_SCALE_RETURN 0x00100000 -#define BVFLAG_DITHER_RETURN 0x00200000 -#define BVFLAG_SRC2_AUXDSTRECT 0x00400000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVFLAG_MASK_AUXDSTRECT 0x00800000 -#define BVIMPL_ANY 0 -#define BVIMPL_FIRST_HW (1 << 31) -#define BVIMPL_FIRST_CPU (1 << 0) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_VENDOR_SHIFT 24 -#define BVSCALEDEF_VENDOR_MASK (0xFF << BVSCALEDEF_VENDOR_SHIFT) -#define BVSCALEDEF_VENDOR_ALL (0 << BVSCALEDEF_VENDOR_SHIFT) -#define BVSCALEDEF_VENDOR_TI (1 << BVSCALEDEF_VENDOR_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_VENDOR_GENERIC (0xFF << BVSCALEDEF_VENDOR_SHIFT) -#define BVSCALEDEF_CLASS_SHIFT 22 -#define BVSCALEDEF_IMPLICIT (0 << BVSCALEDEF_CLASS_SHIFT) -#define BVSCALEDEF_EXPLICIT (1 << BVSCALEDEF_CLASS_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_CLASS_MASK (3 << BVSCALEDEF_CLASS_SHIFT) -#define BVSCALEDEF_QUALITY_SHIFT 16 -#define BVSCALEDEF_FASTEST (0x00 << BVSCALEDEF_QUALITY_SHIFT) -#define BVSCALEDEF_GOOD (0x15 << BVSCALEDEF_QUALITY_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_BETTER (0x2A << BVSCALEDEF_QUALITY_SHIFT) -#define BVSCALEDEF_BEST (0x3F << BVSCALEDEF_QUALITY_SHIFT) -#define BVSCALEDEF_QUALITY_MASK (0x3F << BVSCALEDEF_QUALITY_SHIFT) -#define BVSCALEDEF_TECHNIQUE_SHIFT 8 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_DONT_CARE (0x0 << BVSCALEDEF_TECHNIQUE_SHIFT) -#define BVSCALEDEF_NOT_NEAREST_NEIGHBOR (0x1 << BVSCALEDEF_TECHNIQUE_SHIFT) -#define BVSCALEDEF_POINT_SAMPLE (0x2 << BVSCALEDEF_TECHNIQUE_SHIFT) -#define BVSCALEDEF_INTERPOLATED (0x3 << BVSCALEDEF_TECHNIQUE_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_TECHNIQUE_MASK (0xF << BVSCALEDEF_TECHNIQUE_SHIFT) -#define BVSCALEDEF_TYPE_SHIFT 0 -#define BVSCALEDEF_PHOTO (1 << BVSCALEDEF_TYPE_SHIFT) -#define BVSCALEDEF_DRAWING (2 << BVSCALEDEF_TYPE_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_TYPE_MASK (3 << BVSCALEDEF_TYPE_SHIFT) -#define BVSCALEDEF_HORZ_SHIFT 8 -#define BVSCALEDEF_HORZ_MASK (0xFF << BVSCALEDEF_HORZ_SHIFT) -#define BVSCALEDEF_VERT_SHIFT 0 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_VERT_MASK (0xFF << BVSCALEDEF_VERT_SHIFT) -#define BVSCALEDEF_NEAREST_NEIGHBOR 0x00 -#define BVSCALEDEF_LINEAR 0x01 -#define BVSCALEDEF_CUBIC 0x02 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVSCALEDEF_3_TAP 0x03 -#define BVSCALEDEF_5_TAP 0x05 -#define BVSCALEDEF_7_TAP 0x07 -#define BVSCALEDEF_9_TAP 0x09 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -enum bvscalemode { - BVSCALE_FASTEST = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_FASTEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_DONT_CARE, - BVSCALE_FASTEST_NOT_NEAREST_NEIGHBOR = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_FASTEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_NOT_NEAREST_NEIGHBOR, - BVSCALE_FASTEST_POINT_SAMPLE = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_FASTEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_POINT_SAMPLE, - BVSCALE_FASTEST_INTERPOLATED = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_FASTEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_INTERPOLATED, - BVSCALE_FASTEST_PHOTO = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_FASTEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_PHOTO, - BVSCALE_FASTEST_DRAWING = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_FASTEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_DRAWING, - BVSCALE_GOOD = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_GOOD | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_DONT_CARE, - BVSCALE_GOOD_POINT_SAMPLE = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_GOOD | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_POINT_SAMPLE, - BVSCALE_GOOD_INTERPOLATED = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_GOOD | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_INTERPOLATED, - BVSCALE_GOOD_PHOTO = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_GOOD | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_PHOTO, - BVSCALE_GOOD_DRAWING = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_GOOD | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_DRAWING, - BVSCALE_BETTER = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BETTER | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_DONT_CARE, - BVSCALE_BETTER_POINT_SAMPLE = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BETTER | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_POINT_SAMPLE, - BVSCALE_BETTER_INTERPOLATED = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BETTER | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_INTERPOLATED, - BVSCALE_BETTER_PHOTO = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BETTER | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_PHOTO, - BVSCALE_BETTER_DRAWING = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BETTER | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_DRAWING, - BVSCALE_BEST = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_DONT_CARE, - BVSCALE_BEST_POINT_SAMPLE = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_POINT_SAMPLE, - BVSCALE_BEST_INTERPOLATED = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_INTERPOLATED, - BVSCALE_BEST_PHOTO = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_PHOTO, - BVSCALE_BEST_DRAWING = BVSCALEDEF_VENDOR_ALL | - BVSCALEDEF_IMPLICIT | - BVSCALEDEF_BEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVSCALEDEF_DRAWING, - BVSCALE_NEAREST_NEIGHBOR = BVSCALEDEF_VENDOR_GENERIC | - BVSCALEDEF_EXPLICIT | - (BVSCALEDEF_NEAREST_NEIGHBOR << BVSCALEDEF_HORZ_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVSCALEDEF_NEAREST_NEIGHBOR << BVSCALEDEF_VERT_SHIFT), - BVSCALE_BILINEAR = BVSCALEDEF_VENDOR_GENERIC | - BVSCALEDEF_EXPLICIT | - (BVSCALEDEF_LINEAR << BVSCALEDEF_HORZ_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVSCALEDEF_LINEAR << BVSCALEDEF_VERT_SHIFT), - BVSCALE_BICUBIC = BVSCALEDEF_VENDOR_GENERIC | - BVSCALEDEF_EXPLICIT | - (BVSCALEDEF_CUBIC << BVSCALEDEF_HORZ_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVSCALEDEF_CUBIC << BVSCALEDEF_VERT_SHIFT), - BVSCALE_3x3_TAP = BVSCALEDEF_VENDOR_GENERIC | - BVSCALEDEF_EXPLICIT | - (BVSCALEDEF_3_TAP << BVSCALEDEF_HORZ_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVSCALEDEF_3_TAP << BVSCALEDEF_VERT_SHIFT), - BVSCALE_5x5_TAP = BVSCALEDEF_VENDOR_GENERIC | - BVSCALEDEF_EXPLICIT | - (BVSCALEDEF_5_TAP << BVSCALEDEF_HORZ_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVSCALEDEF_5_TAP << BVSCALEDEF_VERT_SHIFT), - BVSCALE_7x7_TAP = BVSCALEDEF_VENDOR_GENERIC | - BVSCALEDEF_EXPLICIT | - (BVSCALEDEF_7_TAP << BVSCALEDEF_HORZ_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVSCALEDEF_7_TAP << BVSCALEDEF_VERT_SHIFT), - BVSCALE_9x9_TAP = BVSCALEDEF_VENDOR_GENERIC | - BVSCALEDEF_EXPLICIT | - (BVSCALEDEF_9_TAP << BVSCALEDEF_HORZ_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVSCALEDEF_9_TAP << BVSCALEDEF_VERT_SHIFT), -#ifdef BVSCALE_EXTERNAL_INCLUDE -#include BVSCALE_EXTERNAL_INCLUDE -#endif -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -#define BVDITHERDEF_VENDOR_SHIFT 24 -#define BVDITHERDEF_VENDOR_MASK (0xFF << BVDITHERDEF_VENDOR_SHIFT) -#define BVDITHERDEF_VENDOR_ALL (0 << BVDITHERDEF_VENDOR_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVDITHERDEF_VENDOR_TI (1 << BVDITHERDEF_VENDOR_SHIFT) -#define BVDITHERDEF_VENDOR_GENERIC (0xFF << BVDITHERDEF_VENDOR_SHIFT) -#define BVDITHERDEF_TYPE_SHIFT 16 -#define BVDITHERDEF_PHOTO (0x01 << BVDITHERDEF_TYPE_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVDITHERDEF_DRAWING (0x02 << BVDITHERDEF_TYPE_SHIFT) -#define BVDITHERDEF_TECHNIQUE_SHIFT 8 -#define BVDITHERDEF_DONT_CARE (0x00 << BVDITHERDEF_TECHNIQUE_SHIFT) -#define BVDITHERDEF_RANDOM (0x01 << BVDITHERDEF_TECHNIQUE_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVDITHERDEF_ORDERED (0x02 << BVDITHERDEF_TECHNIQUE_SHIFT) -#define BVDITHERDEF_DIFFUSED (0x04 << BVDITHERDEF_TECHNIQUE_SHIFT) -#define BVDITHERDEF_ON (0xFF << BVDITHERDEF_TECHNIQUE_SHIFT) -#define BVDITHERDEF_QUALITY_SHIFT 0 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVDITHERDEF_FASTEST (0x00 << BVDITHERDEF_QUALITY_SHIFT) -#define BVDITHERDEF_GOOD (0x55 << BVDITHERDEF_QUALITY_SHIFT) -#define BVDITHERDEF_BETTER (0xAA << BVDITHERDEF_QUALITY_SHIFT) -#define BVDITHERDEF_BEST (0xFF << BVDITHERDEF_QUALITY_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -enum bvdithermode { - BVDITHER_FASTEST = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_FASTEST | - BVDITHERDEF_DONT_CARE, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHER_FASTEST_ON = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_FASTEST | - BVDITHERDEF_ON, - BVDITHER_FASTEST_RANDOM = BVDITHERDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_FASTEST | - BVDITHERDEF_RANDOM, - BVDITHER_FASTEST_ORDERED = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_FASTEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_ORDERED, - BVDITHER_FASTEST_DIFFUSED = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_FASTEST | - BVDITHERDEF_DIFFUSED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHER_FASTEST_PHOTO = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_FASTEST | - BVDITHERDEF_PHOTO, - BVDITHER_FASTEST_DRAWING = BVDITHERDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_FASTEST | - BVDITHERDEF_DRAWING, - BVDITHER_GOOD = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_GOOD | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_DONT_CARE, - BVDITHER_GOOD_ON = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_GOOD | - BVDITHERDEF_ON, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHER_GOOD_RANDOM = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_GOOD | - BVDITHERDEF_RANDOM, - BVDITHER_GOOD_ORDERED = BVDITHERDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_GOOD | - BVDITHERDEF_ORDERED, - BVDITHER_GOOD_DIFFUSED = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_GOOD | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_DIFFUSED, - BVDITHER_GOOD_PHOTO = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_GOOD | - BVDITHERDEF_PHOTO, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHER_GOOD_DRAWING = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_GOOD | - BVDITHERDEF_DRAWING, - BVDITHER_BETTER = BVDITHERDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_BETTER | - BVDITHERDEF_DONT_CARE, - BVDITHER_BETTER_ON = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BETTER | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_ON, - BVDITHER_BETTER_RANDOM = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BETTER | - BVDITHERDEF_RANDOM, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHER_BETTER_ORDERED = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BETTER | - BVDITHERDEF_ORDERED, - BVDITHER_BETTER_DIFFUSED = BVDITHERDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_BETTER | - BVDITHERDEF_DIFFUSED, - BVDITHER_BETTER_PHOTO = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BETTER | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_PHOTO, - BVDITHER_BETTER_DRAWING = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BETTER | - BVDITHERDEF_DRAWING, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHER_BEST = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BEST | - BVDITHERDEF_DONT_CARE, - BVDITHER_BEST_ON = BVDITHERDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_BEST | - BVDITHERDEF_ON, - BVDITHER_BEST_RANDOM = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_RANDOM, - BVDITHER_BEST_ORDERED = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BEST | - BVDITHERDEF_ORDERED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHER_BEST_DIFFUSED = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BEST | - BVDITHERDEF_DIFFUSED, - BVDITHER_BEST_PHOTO = BVDITHERDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_BEST | - BVDITHERDEF_PHOTO, - BVDITHER_BEST_DRAWING = BVDITHERDEF_VENDOR_ALL | - BVDITHERDEF_BEST | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHERDEF_DRAWING, - BVDITHER_NONE = BVDITHERDEF_VENDOR_GENERIC + 0, - BVDITHER_ORDERED_2x2 = BVDITHERDEF_VENDOR_GENERIC + 4, - BVDITHER_ORDERED_4x4 = BVDITHERDEF_VENDOR_GENERIC + 16, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVDITHER_ORDERED_2x2_4x4 = BVDITHERDEF_VENDOR_GENERIC + 4 + 16, -#ifdef BVDITHER_EXTERNAL_INCLUDE -#include BVDITHER_EXTERNAL_INCLUDE -#endif -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -#define BVTILE_LEFT_SHIFT 0 -#define BVTILE_TOP_SHIFT (BVTILE_LEFT_SHIFT + 2) -#define BVTILE_RIGHT_SHIFT (BVTILE_TOP_SHIFT + 2) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVTILE_BOTTOM_SHIFT (BVTILE_RIGHT_SHIFT + 2) -#define BVTILE_LEFT_REPEAT (0 << BVTILE_LEFT_SHIFT) -#define BVTILE_TOP_REPEAT (0 << BVTILE_TOP_SHIFT) -#define BVTILE_RIGHT_REPEAT (0 << BVTILE_RIGHT_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVTILE_BOTTOM_REPEAT (0 << BVTILE_BOTTOM_SHIFT) -#define BVTILE_LEFT_MIRROR (1 << BVTILE_LEFT_SHIFT) -#define BVTILE_TOP_MIRROR (1 << BVTILE_TOP_SHIFT) -#define BVTILE_RIGHT_MIRROR (1 << BVTILE_RIGHT_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVTILE_BOTTOM_MIRROR (1 << BVTILE_BOTTOM_SHIFT) -struct bvtileparams { - unsigned int structsize; - unsigned long flags; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - void *virtaddr; - int dstleft; - int dsttop; - unsigned int srcwidth; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned int srcheight; -}; -#define BVBATCH_OP 0x00000001 -#define BVBATCH_KEY 0x00000002 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBATCH_MISCFLAGS 0x00000004 -#define BVBATCH_ALPHA 0x00000008 -#define BVBATCH_DITHER 0x00000010 -#define BVBATCH_SCALE 0x00000020 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBATCH_DST 0x00000100 -#define BVBATCH_SRC1 0x00000200 -#define BVBATCH_SRC2 0x00000400 -#define BVBATCH_MASK 0x00000800 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBATCH_DSTRECT_ORIGIN 0x00001000 -#define BVBATCH_DSTRECT_SIZE 0x00002000 -#define BVBATCH_SRC1RECT_ORIGIN 0x00004000 -#define BVBATCH_SRC1RECT_SIZE 0x00008000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBATCH_SRC2RECT_ORIGIN 0x00010000 -#define BVBATCH_SRC2RECT_SIZE 0x00020000 -#define BVBATCH_MASKRECT_ORIGIN 0x00040000 -#define BVBATCH_MASKRECT_SIZE 0x00080000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBATCH_CLIPRECT_ORIGIN 0x00100000 -#define BVBATCH_CLIPRECT_SIZE 0x00200000 -#define BVBATCH_CLIPRECT (BVBATCH_CLIPRECT_ORIGIN | BVBATCH_CLIPRECT_SIZE) -#define BVBATCH_TILE_SRC1 0x00400000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBATCH_TILE_SRC2 0x00800000 -#define BVBATCH_TILE_MASK 0x00100000 -#define BVBATCH_ENDNOP 0x80000000 -struct bvcallbackerror { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned int structsize; - enum bverror error; - char *errdesc; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct bvbatch; -union bvinbuff { - struct bvbuffdesc *desc; - struct bvtileparams *tileparams; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -union bvop { - unsigned short rop; - enum bvblend blend; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct bvfilter *filter; -}; -struct bvbltparams { - unsigned int structsize; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - char *errdesc; - unsigned long implementation; - unsigned long flags; - union bvop op; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - void *colorkey; - union bvalpha globalalpha; - enum bvscalemode scalemode; - enum bvdithermode dithermode; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct bvbuffdesc *dstdesc; - struct bvsurfgeom *dstgeom; - struct bvrect dstrect; - union bvinbuff src1; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct bvsurfgeom *src1geom; - struct bvrect src1rect; - union bvinbuff src2; - struct bvsurfgeom *src2geom; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct bvrect src2rect; - union bvinbuff mask; - struct bvsurfgeom *maskgeom; - struct bvrect maskrect; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct bvrect cliprect; - unsigned long batchflags; - struct bvbatch *batch; - void (*callbackfn)(struct bvcallbackerror *err, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned long callbackdata); - unsigned long callbackdata; - struct bvrect src2auxdstrect; - struct bvrect maskauxdstrect; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -#endif diff --git a/kernel-headers/linux/bvblend.h b/kernel-headers/linux/bvblend.h deleted file mode 100755 index 4e3d6d1..0000000 --- a/kernel-headers/linux/bvblend.h +++ /dev/null @@ -1,210 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BVBLEND_H -#define BVBLEND_H -#define BVBLENDDEF_FORMAT_SHIFT 28 -#define BVBLENDDEF_FORMAT_MASK (0xF << BVBLENDDEF_FORMAT_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_FORMAT_CLASSIC (0x0 << BVBLENDDEF_FORMAT_SHIFT) -#define BVBLENDDEF_FORMAT_ESSENTIAL (0x1 << BVBLENDDEF_FORMAT_SHIFT) -#define BVBLENDDEF_MODE_SHIFT 4 -#define BVBLENDDEF_INV_SHIFT 2 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_NORM_SHIFT 0 -#define BVBLENDDEF_ONLY_A (0 << BVBLENDDEF_MODE_SHIFT) -#define BVBLENDDEF_MIN (1 << BVBLENDDEF_MODE_SHIFT) -#define BVBLENDDEF_MAX (2 << BVBLENDDEF_MODE_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_ONLY_C (3 << BVBLENDDEF_MODE_SHIFT) -#define BVBLENDDEF_MODE_MASK (3 << BVBLENDDEF_MODE_SHIFT) -#define BVBLENDDEF_NORM_C1 (0 << BVBLENDDEF_NORM_SHIFT) -#define BVBLENDDEF_NORM_A1 (1 << BVBLENDDEF_NORM_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_NORM_C2 (2 << BVBLENDDEF_NORM_SHIFT) -#define BVBLENDDEF_NORM_A2 (3 << BVBLENDDEF_NORM_SHIFT) -#define BVBLENDDEF_NORM_MASK (3 << BVBLENDDEF_NORM_SHIFT) -#define BVBLENDDEF_INV_C1 (0 << BVBLENDDEF_INV_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_INV_A1 (1 << BVBLENDDEF_INV_SHIFT) -#define BVBLENDDEF_INV_C2 (2 << BVBLENDDEF_INV_SHIFT) -#define BVBLENDDEF_INV_A2 (3 << BVBLENDDEF_INV_SHIFT) -#define BVBLENDDEF_INV_MASK (3 << BVBLENDDEF_INV_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_ONLY_A_NORM_xx BVBLENDDEF_NORM_C1 -#define BVBLENDDEF_ONLY_A_INV_xx BVBLENDDEF_INV_C1 -#define BVBLENDDEF_ONLY_C_NORM_xx BVBLENDDEF_NORM_A2 -#define BVBLENDDEF_ONLY_C_INV_xx BVBLENDDEF_INV_A2 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_ZERO (BVBLENDDEF_ONLY_A | BVBLENDDEF_ONLY_A_NORM_xx | BVBLENDDEF_ONLY_A_INV_xx) -#define BVBLENDDEF_C1 (BVBLENDDEF_ONLY_C | BVBLENDDEF_NORM_C1 | BVBLENDDEF_ONLY_C_INV_xx) -#define BVBLENDDEF_A1 (BVBLENDDEF_ONLY_A | BVBLENDDEF_NORM_A1 | BVBLENDDEF_ONLY_A_INV_xx) -#define BVBLENDDEF_C2 (BVBLENDDEF_ONLY_C | BVBLENDDEF_NORM_C2 | BVBLENDDEF_ONLY_C_INV_xx) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_A2 (BVBLENDDEF_ONLY_A | BVBLENDDEF_NORM_A2 | BVBLENDDEF_ONLY_A_INV_xx) -#define BVBLENDDEF_ONE_MINUS_C1 (BVBLENDDEF_ONLY_C | BVBLENDDEF_ONLY_C_NORM_xx | BVBLENDDEF_INV_C1) -#define BVBLENDDEF_ONE_MINUS_A1 (BVBLENDDEF_ONLY_A | BVBLENDDEF_ONLY_A_NORM_xx | BVBLENDDEF_INV_A1) -#define BVBLENDDEF_ONE_MINUS_C2 (BVBLENDDEF_ONLY_C | BVBLENDDEF_ONLY_C_NORM_xx | BVBLENDDEF_INV_C2) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_ONE_MINUS_A2 (BVBLENDDEF_ONLY_A | BVBLENDDEF_ONLY_A_NORM_xx | BVBLENDDEF_INV_A2) -#define BVBLENDDEF_ONE (BVBLENDDEF_ONLY_C | BVBLENDDEF_ONLY_C_NORM_xx | BVBLENDDEF_ONLY_C_INV_xx) -#define BVBLENDDEF_K_MASK (BVBLENDDEF_MODE_MASK | BVBLENDDEF_INV_MASK | BVBLENDDEF_NORM_MASK) -#define BVBLENDDEF_K1_SHIFT 18 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_K2_SHIFT 12 -#define BVBLENDDEF_K3_SHIFT 6 -#define BVBLENDDEF_K4_SHIFT 0 -#define BVBLENDDEF_K1_MASK (BVBLENDDEF_K_MASK << BVBLENDDEF_K1_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_K2_MASK (BVBLENDDEF_K_MASK << BVBLENDDEF_K2_SHIFT) -#define BVBLENDDEF_K3_MASK (BVBLENDDEF_K_MASK << BVBLENDDEF_K3_SHIFT) -#define BVBLENDDEF_K4_MASK (BVBLENDDEF_K_MASK << BVBLENDDEF_K4_SHIFT) -#define BVBLENDDEF_CLASSIC_EQUATION_MASK 0x00FFFFFF -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_REMOTE 0x08000000 -#define BVBLENDDEF_GLOBAL_SHIFT 24 -#define BVBLENDDEF_GLOBAL_MASK (3 << BVBLENDDEF_GLOBAL_SHIFT) -#define BVBLENDDEF_GLOBAL_NONE (0 << BVBLENDDEF_GLOBAL_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVBLENDDEF_GLOBAL_UCHAR (1 << BVBLENDDEF_GLOBAL_SHIFT) -#define BVBLENDDEF_GLOBAL_FLOAT (3 << BVBLENDDEF_GLOBAL_SHIFT) -union bvalpha { - unsigned char size8; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - float fp; -}; -enum bvblend { - BVBLEND_CLEAR = BVBLENDDEF_FORMAT_CLASSIC | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ZERO << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_ZERO << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_ZERO << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_ZERO << BVBLENDDEF_K4_SHIFT), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_SRC1 = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_ONE << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_ZERO << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K3_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ZERO << BVBLENDDEF_K4_SHIFT), - BVBLEND_SRC2 = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_ZERO << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K2_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ZERO << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K4_SHIFT), - BVBLEND_SRC1OVER = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_ONE << BVBLENDDEF_K1_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ONE_MINUS_A1 << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_ONE_MINUS_A1 << BVBLENDDEF_K4_SHIFT), - BVBLEND_SRC2OVER = BVBLENDDEF_FORMAT_CLASSIC | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ONE_MINUS_A2 << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_ONE_MINUS_A2 << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K4_SHIFT), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_SRC1IN = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_A2 << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_ZERO << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_A2 << BVBLENDDEF_K3_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ZERO << BVBLENDDEF_K4_SHIFT), - BVBLEND_SRC2IN = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_ZERO << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_A1 << BVBLENDDEF_K2_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ZERO << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_A1 << BVBLENDDEF_K4_SHIFT), - BVBLEND_SRC1OUT = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_ONE_MINUS_A2 << BVBLENDDEF_K1_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ZERO << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_ONE_MINUS_A2 << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_ZERO << BVBLENDDEF_K4_SHIFT), - BVBLEND_SRC2OUT = BVBLENDDEF_FORMAT_CLASSIC | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ZERO << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_ONE_MINUS_A1 << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_ZERO << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_ONE_MINUS_A1 << BVBLENDDEF_K4_SHIFT), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_SRC1ATOP = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_A2 << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_ONE_MINUS_A1 << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_A2 << BVBLENDDEF_K3_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ONE_MINUS_A1 << BVBLENDDEF_K4_SHIFT), - BVBLEND_SRC2ATOP = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_ONE_MINUS_A2 << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_A1 << BVBLENDDEF_K2_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ONE_MINUS_A2 << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_A1 << BVBLENDDEF_K4_SHIFT), - BVBLEND_XOR = BVBLENDDEF_FORMAT_CLASSIC | - (BVBLENDDEF_ONE_MINUS_A2 << BVBLENDDEF_K1_SHIFT) | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ONE_MINUS_A1 << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_ONE_MINUS_A2 << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_ONE_MINUS_A1 << BVBLENDDEF_K4_SHIFT), - BVBLEND_PLUS = BVBLENDDEF_FORMAT_CLASSIC | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (BVBLENDDEF_ONE << BVBLENDDEF_K1_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K2_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K3_SHIFT) | - (BVBLENDDEF_ONE << BVBLENDDEF_K4_SHIFT), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_NORMAL = BVBLENDDEF_FORMAT_ESSENTIAL + 0, - BVBLEND_LIGHTEN = BVBLENDDEF_FORMAT_ESSENTIAL + 1, - BVBLEND_DARKEN = BVBLENDDEF_FORMAT_ESSENTIAL + 2, - BVBLEND_MULTIPLY = BVBLENDDEF_FORMAT_ESSENTIAL + 3, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_AVERAGE = BVBLENDDEF_FORMAT_ESSENTIAL + 4, - BVBLEND_ADD = BVBLENDDEF_FORMAT_ESSENTIAL + 5, - BVBLEND_LINEAR_DODGE = BVBLEND_ADD, - BVBLEND_SUBTRACT = BVBLENDDEF_FORMAT_ESSENTIAL + 6, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_LINEAR_BURN = BVBLEND_SUBTRACT, - BVBLEND_DIFFERENCE = BVBLENDDEF_FORMAT_ESSENTIAL + 7, - BVBLEND_NEGATE = BVBLENDDEF_FORMAT_ESSENTIAL + 8, - BVBLEND_SCREEN = BVBLENDDEF_FORMAT_ESSENTIAL + 9, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_EXCLUSION = BVBLENDDEF_FORMAT_ESSENTIAL + 10, - BVBLEND_OVERLAY = BVBLENDDEF_FORMAT_ESSENTIAL + 11, - BVBLEND_SOFT_LIGHT = BVBLENDDEF_FORMAT_ESSENTIAL + 12, - BVBLEND_HARD_LIGHT = BVBLENDDEF_FORMAT_ESSENTIAL + 13, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_COLOR_DODGE = BVBLENDDEF_FORMAT_ESSENTIAL + 14, - BVBLEND_COLOR_BURN = BVBLENDDEF_FORMAT_ESSENTIAL + 15, - BVBLEND_LINEAR_LIGHT = BVBLENDDEF_FORMAT_ESSENTIAL + 16, - BVBLEND_VIVID_LIGHT = BVBLENDDEF_FORMAT_ESSENTIAL + 17, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_PIN_LIGHT = BVBLENDDEF_FORMAT_ESSENTIAL + 18, - BVBLEND_HARD_MIX = BVBLENDDEF_FORMAT_ESSENTIAL + 19, - BVBLEND_REFLECT = BVBLENDDEF_FORMAT_ESSENTIAL + 20, - BVBLEND_GLOW = BVBLENDDEF_FORMAT_ESSENTIAL + 21, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVBLEND_PHOENIX = BVBLENDDEF_FORMAT_ESSENTIAL + 22, -#ifdef BVBLEND_EXTERNAL_INCLUDE -#define BVBLEND_EXTERNAL_INCLUDE -#endif -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -#endif diff --git a/kernel-headers/linux/bvbuffdesc.h b/kernel-headers/linux/bvbuffdesc.h deleted file mode 100755 index 397d937..0000000 --- a/kernel-headers/linux/bvbuffdesc.h +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BVBUFFDESC_H -#define BVBUFFDESC_H -struct bvbuffmap; -#define BVATDEF_VENDOR_SHIFT 24 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVATDEF_VENDOR_MASK (0xFF << BVATDEF_VENDOR_SHIFT) -#define BVATDEF_VENDOR_ALL (0x00 << BVATDEF_VENDOR_SHIFT) -#define BVATDEF_VENDOR_TI (0x01 << BVATDEF_VENDOR_SHIFT) -enum bvauxtype { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVAT_NONE = 0, - BVAT_PHYSDESC = - BVATDEF_VENDOR_ALL + 1, -#ifdef BVAT_EXTERNAL_INCLUDE -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#include BVAT_EXTERNAL_INCLUDE -#endif -}; -struct bvphysdesc { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned int structsize; - unsigned long pagesize; - unsigned long *pagearray; - unsigned int pagecount; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned long pageoffset; -}; -struct bvbuffdesc { - unsigned int structsize; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - void *virtaddr; - unsigned long length; - struct bvbuffmap *map; - enum bvauxtype auxtype; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - void *auxptr; -}; -#endif diff --git a/kernel-headers/linux/bvcache.h b/kernel-headers/linux/bvcache.h deleted file mode 100755 index c65d0aa..0000000 --- a/kernel-headers/linux/bvcache.h +++ /dev/null @@ -1,41 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BVCACHE_H_ -#define BVCACHE_H_ -struct bvbuffdesc; -struct bvsurfgeom; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct bvrect; -enum bvcacheop { - BVCACHE_BIDIRECTIONAL = 0, - BVCACHE_CPU_TO_DEVICE = 1, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVCACHE_CPU_FROM_DEVICE = 2, - BVCACHE_RESERVED3 = 3, -}; -struct bvcopparams { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - unsigned int structsize; - struct bvbuffdesc *desc; - struct bvsurfgeom *geom; - struct bvrect *rect; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum bvcacheop cacheop; -}; -#endif diff --git a/kernel-headers/linux/bventry.h b/kernel-headers/linux/bventry.h deleted file mode 100755 index f7f2230..0000000 --- a/kernel-headers/linux/bventry.h +++ /dev/null @@ -1,39 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BVENTRY_H -#define BVENTRY_H -struct bvbuffdesc; -struct bvbltparams; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct bvcopparams; -typedef enum bverror (*BVFN_MAP) (struct bvbuffdesc *buffdesc); -typedef enum bverror (*BVFN_UNMAP) (struct bvbuffdesc *buffdesc); -typedef enum bverror (*BVFN_BLT) (struct bvbltparams *bltparams); -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -typedef enum bverror (*BVFN_CACHE)(struct bvcopparams *copparams); -struct bventry { - unsigned int structsize; - BVFN_MAP bv_map; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVFN_UNMAP bv_unmap; - BVFN_BLT bv_blt; - BVFN_CACHE bv_cache; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#endif diff --git a/kernel-headers/linux/bverror.h b/kernel-headers/linux/bverror.h deleted file mode 100755 index 8d51542..0000000 --- a/kernel-headers/linux/bverror.h +++ /dev/null @@ -1,336 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BVERROR_H -#define BVERROR_H -#define BVERRDEF_VENDOR_SHIFT 24 -#define BVERRDEF_VENDOR_MASK (0xFF << BVERRDEF_VENDOR_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define BVERRDEF_VENDOR_ALL (0x00 << BVERRDEF_VENDOR_SHIFT) -#define BVERRDEF_VENDOR_TI (0x01 << BVERRDEF_VENDOR_SHIFT) -enum bverror { - BVERR_NONE = 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_UNK = - BVERRDEF_VENDOR_ALL + 1, - BVERR_OOM = - BVERRDEF_VENDOR_ALL + 2, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_RSRC = - BVERRDEF_VENDOR_ALL + 3, - BVERR_VIRTADDR = - BVERRDEF_VENDOR_ALL + 1000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_VIRTPTR = - BVERR_VIRTADDR, - BVERR_BUFFERDESC = - BVERRDEF_VENDOR_ALL + 10000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_BUFFERDESC_VERS = - BVERRDEF_VENDOR_ALL + 11000, - BVERR_BUFFERDESC_VIRTADDR = - BVERRDEF_VENDOR_ALL + 12000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_BUFFERDESC_LEN = - BVERRDEF_VENDOR_ALL + 13000, - BVERR_BUFFERDESC_ALIGNMENT = - BVERRDEF_VENDOR_ALL + 14000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_BLTPARAMS_VERS = - BVERRDEF_VENDOR_ALL + 20000, - BVERR_IMPLEMENTATION = - BVERRDEF_VENDOR_ALL + 21000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_FLAGS = - BVERRDEF_VENDOR_ALL + 22000, - BVERR_OP = - BVERRDEF_VENDOR_ALL + 22100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_KEY = - BVERRDEF_VENDOR_ALL + 22200, - BVERR_SRC1_TILE = - BVERRDEF_VENDOR_ALL + 22300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2_TILE = - BVERRDEF_VENDOR_ALL + 22310, - BVERR_MASK_TILE = - BVERRDEF_VENDOR_ALL + 22320, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_FLIP = - BVERRDEF_VENDOR_ALL + 22400, - BVERR_ROP = - BVERRDEF_VENDOR_ALL + 23000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_BLEND = - BVERRDEF_VENDOR_ALL + 23100, - BVERR_GLOBAL_ALPHA = - BVERRDEF_VENDOR_ALL + 23110, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_FILTER = - BVERRDEF_VENDOR_ALL + 23200, - BVERR_FILTER_PARAMS_VERS = - BVERRDEF_VENDOR_ALL + 23210, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_FILTER_PARAMS = - BVERRDEF_VENDOR_ALL + 23220, - BVERR_SCALE_MODE = - BVERRDEF_VENDOR_ALL + 24000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_DITHER_MODE = - BVERRDEF_VENDOR_ALL + 25000, - BVERR_DSTDESC = - BVERRDEF_VENDOR_ALL + 26000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_DSTDESC_VERS = - BVERRDEF_VENDOR_ALL + 26100, - BVERR_DSTDESC_VIRTADDR = - BVERRDEF_VENDOR_ALL + 26200, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_DSTDESC_LEN = - BVERRDEF_VENDOR_ALL + 26300, - BVERR_DST_ALIGNMENT = - BVERRDEF_VENDOR_ALL + 26400, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_DSTGEOM = - BVERRDEF_VENDOR_ALL + 27000, - BVERR_DSTGEOM_VERS = - BVERRDEF_VENDOR_ALL + 27100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_DSTGEOM_FORMAT = - BVERRDEF_VENDOR_ALL + 27200, - BVERR_DSTGEOM_STRIDE = - BVERRDEF_VENDOR_ALL + 27300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_DSTGEOM_PALETTE = - BVERRDEF_VENDOR_ALL + 27400, - BVERR_DSTRECT = - BVERRDEF_VENDOR_ALL + 28000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1DESC = - BVERRDEF_VENDOR_ALL + 29000, - BVERR_SRC1DESC_VERS = - BVERRDEF_VENDOR_ALL + 29100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1DESC_VIRTADDR = - BVERRDEF_VENDOR_ALL + 29200, - BVERR_SRC1DESC_LEN = - BVERRDEF_VENDOR_ALL + 29300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1DESC_ALIGNMENT = - BVERRDEF_VENDOR_ALL + 29400, - BVERR_SRC1GEOM = - BVERRDEF_VENDOR_ALL + 30000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1GEOM_VERS = - BVERRDEF_VENDOR_ALL + 30100, - BVERR_SRC1GEOM_FORMAT = - BVERRDEF_VENDOR_ALL + 30200, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1GEOM_STRIDE = - BVERRDEF_VENDOR_ALL + 30300, - BVERR_SRC1GEOM_PALETTE = - BVERRDEF_VENDOR_ALL + 30400, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1RECT = - BVERRDEF_VENDOR_ALL + 31000, - BVERR_SRC1_HORZSCALE = - BVERRDEF_VENDOR_ALL + 31100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1_VERTSCALE = - BVERRDEF_VENDOR_ALL + 31200, - BVERR_SRC1_ROT = - BVERRDEF_VENDOR_ALL + 31300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1_TILEPARAMS = - BVERR_SRC1DESC, - BVERR_SRC1_TILE_VERS = - BVERRDEF_VENDOR_ALL + 32000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1_TILEPARAMS_VERS = - BVERR_SRC1_TILE_VERS, - BVERR_SRC1_TILE_FLAGS = - BVERRDEF_VENDOR_ALL + 32100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1_TILEPARAMS_FLAGS = - BVERR_SRC1_TILE_FLAGS, - BVERR_SRC1_TILE_VIRTADDR = - BVERR_SRC1DESC_VIRTADDR, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1_TILEPARAMS_VIRTADDR = - BVERR_SRC1_TILE_VIRTADDR, - BVERR_SRC1_TILE_ORIGIN = - BVERRDEF_VENDOR_ALL + 32200, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1_TILEPARAMS_ORIGIN = - BVERR_SRC1_TILE_ORIGIN, - BVERR_SRC1_TILE_SIZE = - BVERRDEF_VENDOR_ALL + 32300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC1_TILEPARAMS_SIZE = - BVERR_SRC1_TILE_SIZE, - BVERR_SRC2DESC = - BVERRDEF_VENDOR_ALL + 33000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2DESC_VERS = - BVERRDEF_VENDOR_ALL + 33100, - BVERR_SRC2DESC_VIRTADDR = - BVERRDEF_VENDOR_ALL + 33200, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2DESC_LEN = - BVERRDEF_VENDOR_ALL + 33300, - BVERR_SRC2DESC_ALIGNMENT = - BVERRDEF_VENDOR_ALL + 33400, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2GEOM = - BVERRDEF_VENDOR_ALL + 34000, - BVERR_SRC2GEOM_VERS = - BVERRDEF_VENDOR_ALL + 34100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2GEOM_FORMAT = - BVERRDEF_VENDOR_ALL + 34200, - BVERR_SRC2GEOM_STRIDE = - BVERRDEF_VENDOR_ALL + 34300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2GEOM_PALETTE = - BVERRDEF_VENDOR_ALL + 34400, - BVERR_SRC2RECT = - BVERRDEF_VENDOR_ALL + 35000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2_HORZSCALE = - BVERRDEF_VENDOR_ALL + 35100, - BVERR_SRC2_VERTSCALE = - BVERRDEF_VENDOR_ALL + 35200, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2_ROT = - BVERRDEF_VENDOR_ALL + 35300, - BVERR_SRC2_TILEPARAMS = - BVERR_SRC2DESC, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2_TILE_VERS = - BVERRDEF_VENDOR_ALL + 36000, - BVERR_SRC2_TILEPARAMS_VERS = - BVERR_SRC2_TILE_VERS, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2_TILE_FLAGS = - BVERRDEF_VENDOR_ALL + 36100, - BVERR_SRC2_TILEPARAMS_FLAGS = - BVERR_SRC2_TILE_FLAGS, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2_TILE_VIRTADDR = - BVERR_SRC2DESC_VIRTADDR, - BVERR_SRC2_TILEPARAMS_VIRTADDR = - BVERR_SRC2_TILE_VIRTADDR, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2_TILE_ORIGIN = - BVERRDEF_VENDOR_ALL + 36200, - BVERR_SRC2_TILEPARAMS_ORIGIN = - BVERR_SRC2_TILE_ORIGIN, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_SRC2_TILE_SIZE = - BVERRDEF_VENDOR_ALL + 36300, - BVERR_SRC2_TILEPARAMS_SIZE = - BVERR_SRC2_TILE_SIZE, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASKDESC = - BVERRDEF_VENDOR_ALL + 37000, - BVERR_MASKDESC_VERS = - BVERRDEF_VENDOR_ALL + 37100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASKDESC_VIRTADDR = - BVERRDEF_VENDOR_ALL + 37200, - BVERR_MASKDESC_LEN = - BVERRDEF_VENDOR_ALL + 37300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASKDESC_ALIGNMENT = - BVERRDEF_VENDOR_ALL + 37400, - BVERR_MASKGEOM = - BVERRDEF_VENDOR_ALL + 38000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASKGEOM_VERS = - BVERRDEF_VENDOR_ALL + 38100, - BVERR_MASKGEOM_FORMAT = - BVERRDEF_VENDOR_ALL + 38200, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASKGEOM_STRIDE = - BVERRDEF_VENDOR_ALL + 38300, - BVERR_MASKGEOM_PALETTE = - BVERRDEF_VENDOR_ALL + 38400, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASKRECT = - BVERRDEF_VENDOR_ALL + 39000, - BVERR_MASK_HORZSCALE = - BVERRDEF_VENDOR_ALL + 39100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASK_VERTSCALE = - BVERRDEF_VENDOR_ALL + 39200, - BVERR_MASK_ROT = - BVERRDEF_VENDOR_ALL + 39300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASK_TILEPARAMS = - BVERR_MASKDESC, - BVERR_MASK_TILE_VERS = - BVERRDEF_VENDOR_ALL + 40000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASK_TILEPARAMS_VERS = - BVERR_MASK_TILE_VERS, - BVERR_MASK_TILE_FLAGS = - BVERRDEF_VENDOR_ALL + 40100, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASK_TILEPARAMS_FLAGS = - BVERR_MASK_TILE_FLAGS, - BVERR_MASK_TILE_VIRTADDR = - BVERR_MASKDESC_VIRTADDR, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASK_TILEPARAMS_VIRTADDR = - BVERR_MASK_TILE_VIRTADDR, - BVERR_MASK_TILE_ORIGIN = - BVERRDEF_VENDOR_ALL + 40200, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASK_TILEPARAMS_ORIGIN = - BVERR_MASK_TILE_ORIGIN, - BVERR_MASK_TILE_SIZE = - BVERRDEF_VENDOR_ALL + 40300, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MASK_TILEPARAMS_SIZE = - BVERR_MASK_TILE_SIZE, - BVERR_CLIP_RECT = - BVERRDEF_VENDOR_ALL + 41000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_BATCH_FLAGS = - BVERRDEF_VENDOR_ALL + 42000, - BVERR_BATCH = - BVERRDEF_VENDOR_ALL + 43000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_OP_FAILED = - BVERRDEF_VENDOR_ALL + 50000, - BVERR_OP_INCOMPLETE = - BVERRDEF_VENDOR_ALL + 50001, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_MEMORY_ERROR = - BVERRDEF_VENDOR_ALL + 51000, - BVERR_FORMAT = - BVERRDEF_VENDOR_ALL + 52000, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVERR_CACHEOP = - BVERRDEF_VENDOR_ALL + 60000, -#ifdef BVERR_EXTERNAL_INCLUDE -#include BVERR_EXTERNAL_INCLUDE -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#endif -}; -#endif diff --git a/kernel-headers/linux/bvfilter.h b/kernel-headers/linux/bvfilter.h deleted file mode 100755 index 237a7d4..0000000 --- a/kernel-headers/linux/bvfilter.h +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BVFILTER_H -#define BVFILTER_H -enum bvfiltertype { - BVFILTER_DUMMY -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#ifdef BVFILTER_EXTERNAL_INCLUDE -#include BVFILTER_EXTERNAL_INCLUDE -#endif -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct bvfilter { - enum bvfiltertype filter; - void *params; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#endif diff --git a/kernel-headers/linux/bvinternal.h b/kernel-headers/linux/bvinternal.h deleted file mode 100755 index a3f04d4..0000000 --- a/kernel-headers/linux/bvinternal.h +++ /dev/null @@ -1,29 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BVINTERNAL_H -#define BVINTENRAL_H -struct bvbuffmap { - unsigned int structsize; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - BVFN_UNMAP bv_unmap; - unsigned long handle; - struct bvbuffmap *nextmap; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#endif diff --git a/kernel-headers/linux/bvsurfgeom.h b/kernel-headers/linux/bvsurfgeom.h deleted file mode 100755 index fde6e7a..0000000 --- a/kernel-headers/linux/bvsurfgeom.h +++ /dev/null @@ -1,34 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef BVSURFGEOM_H -#define BVSURFGEOM_H -struct bvsurfgeom { - unsigned int structsize; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum ocdformat format; - unsigned int width; - unsigned int height; - int orientation; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - long virtstride; - enum ocdformat paletteformat; - void *palette; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#endif diff --git a/kernel-headers/linux/fb.h b/kernel-headers/linux/fb.h deleted file mode 100644 index e66fb76..0000000 --- a/kernel-headers/linux/fb.h +++ /dev/null @@ -1,1206 +0,0 @@ -#ifndef _LINUX_FB_H -#define _LINUX_FB_H - -#include -#include -#ifdef __KERNEL__ -#include -#endif /* __KERNEL__ */ - -/* Definitions of frame buffers */ - -#define FB_MAX 32 /* sufficient for now */ - -/* ioctls - 0x46 is 'F' */ -#define FBIOGET_VSCREENINFO 0x4600 -#define FBIOPUT_VSCREENINFO 0x4601 -#define FBIOGET_FSCREENINFO 0x4602 -#define FBIOGETCMAP 0x4604 -#define FBIOPUTCMAP 0x4605 -#define FBIOPAN_DISPLAY 0x4606 -#ifdef __KERNEL__ -#define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor_user) -#else -#define FBIO_CURSOR _IOWR('F', 0x08, struct fb_cursor) -#endif -/* 0x4607-0x460B are defined below */ -/* #define FBIOGET_MONITORSPEC 0x460C */ -/* #define FBIOPUT_MONITORSPEC 0x460D */ -/* #define FBIOSWITCH_MONIBIT 0x460E */ -#define FBIOGET_CON2FBMAP 0x460F -#define FBIOPUT_CON2FBMAP 0x4610 -#define FBIOBLANK 0x4611 /* arg: 0 or vesa level + 1 */ -#define FBIOGET_VBLANK _IOR('F', 0x12, struct fb_vblank) -#define FBIO_ALLOC 0x4613 -#define FBIO_FREE 0x4614 -#define FBIOGET_GLYPH 0x4615 -#define FBIOGET_HWCINFO 0x4616 -#define FBIOPUT_MODEINFO 0x4617 -#define FBIOGET_DISPINFO 0x4618 -#define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) - -#define FB_TYPE_PACKED_PIXELS 0 /* Packed Pixels */ -#define FB_TYPE_PLANES 1 /* Non interleaved planes */ -#define FB_TYPE_INTERLEAVED_PLANES 2 /* Interleaved planes */ -#define FB_TYPE_TEXT 3 /* Text/attributes */ -#define FB_TYPE_VGA_PLANES 4 /* EGA/VGA planes */ - -#define FB_AUX_TEXT_MDA 0 /* Monochrome text */ -#define FB_AUX_TEXT_CGA 1 /* CGA/EGA/VGA Color text */ -#define FB_AUX_TEXT_S3_MMIO 2 /* S3 MMIO fasttext */ -#define FB_AUX_TEXT_MGA_STEP16 3 /* MGA Millenium I: text, attr, 14 reserved bytes */ -#define FB_AUX_TEXT_MGA_STEP8 4 /* other MGAs: text, attr, 6 reserved bytes */ -#define FB_AUX_TEXT_SVGA_GROUP 8 /* 8-15: SVGA tileblit compatible modes */ -#define FB_AUX_TEXT_SVGA_MASK 7 /* lower three bits says step */ -#define FB_AUX_TEXT_SVGA_STEP2 8 /* SVGA text mode: text, attr */ -#define FB_AUX_TEXT_SVGA_STEP4 9 /* SVGA text mode: text, attr, 2 reserved bytes */ -#define FB_AUX_TEXT_SVGA_STEP8 10 /* SVGA text mode: text, attr, 6 reserved bytes */ -#define FB_AUX_TEXT_SVGA_STEP16 11 /* SVGA text mode: text, attr, 14 reserved bytes */ -#define FB_AUX_TEXT_SVGA_LAST 15 /* reserved up to 15 */ - -#define FB_AUX_VGA_PLANES_VGA4 0 /* 16 color planes (EGA/VGA) */ -#define FB_AUX_VGA_PLANES_CFB4 1 /* CFB4 in planes (VGA) */ -#define FB_AUX_VGA_PLANES_CFB8 2 /* CFB8 in planes (VGA) */ - -#define FB_VISUAL_MONO01 0 /* Monochr. 1=Black 0=White */ -#define FB_VISUAL_MONO10 1 /* Monochr. 1=White 0=Black */ -#define FB_VISUAL_TRUECOLOR 2 /* True color */ -#define FB_VISUAL_PSEUDOCOLOR 3 /* Pseudo color (like atari) */ -#define FB_VISUAL_DIRECTCOLOR 4 /* Direct color */ -#define FB_VISUAL_STATIC_PSEUDOCOLOR 5 /* Pseudo color readonly */ - -#define FB_ACCEL_NONE 0 /* no hardware accelerator */ -#define FB_ACCEL_ATARIBLITT 1 /* Atari Blitter */ -#define FB_ACCEL_AMIGABLITT 2 /* Amiga Blitter */ -#define FB_ACCEL_S3_TRIO64 3 /* Cybervision64 (S3 Trio64) */ -#define FB_ACCEL_NCR_77C32BLT 4 /* RetinaZ3 (NCR 77C32BLT) */ -#define FB_ACCEL_S3_VIRGE 5 /* Cybervision64/3D (S3 ViRGE) */ -#define FB_ACCEL_ATI_MACH64GX 6 /* ATI Mach 64GX family */ -#define FB_ACCEL_DEC_TGA 7 /* DEC 21030 TGA */ -#define FB_ACCEL_ATI_MACH64CT 8 /* ATI Mach 64CT family */ -#define FB_ACCEL_ATI_MACH64VT 9 /* ATI Mach 64CT family VT class */ -#define FB_ACCEL_ATI_MACH64GT 10 /* ATI Mach 64CT family GT class */ -#define FB_ACCEL_SUN_CREATOR 11 /* Sun Creator/Creator3D */ -#define FB_ACCEL_SUN_CGSIX 12 /* Sun cg6 */ -#define FB_ACCEL_SUN_LEO 13 /* Sun leo/zx */ -#define FB_ACCEL_IMS_TWINTURBO 14 /* IMS Twin Turbo */ -#define FB_ACCEL_3DLABS_PERMEDIA2 15 /* 3Dlabs Permedia 2 */ -#define FB_ACCEL_MATROX_MGA2064W 16 /* Matrox MGA2064W (Millenium) */ -#define FB_ACCEL_MATROX_MGA1064SG 17 /* Matrox MGA1064SG (Mystique) */ -#define FB_ACCEL_MATROX_MGA2164W 18 /* Matrox MGA2164W (Millenium II) */ -#define FB_ACCEL_MATROX_MGA2164W_AGP 19 /* Matrox MGA2164W (Millenium II) */ -#define FB_ACCEL_MATROX_MGAG100 20 /* Matrox G100 (Productiva G100) */ -#define FB_ACCEL_MATROX_MGAG200 21 /* Matrox G200 (Myst, Mill, ...) */ -#define FB_ACCEL_SUN_CG14 22 /* Sun cgfourteen */ -#define FB_ACCEL_SUN_BWTWO 23 /* Sun bwtwo */ -#define FB_ACCEL_SUN_CGTHREE 24 /* Sun cgthree */ -#define FB_ACCEL_SUN_TCX 25 /* Sun tcx */ -#define FB_ACCEL_MATROX_MGAG400 26 /* Matrox G400 */ -#define FB_ACCEL_NV3 27 /* nVidia RIVA 128 */ -#define FB_ACCEL_NV4 28 /* nVidia RIVA TNT */ -#define FB_ACCEL_NV5 29 /* nVidia RIVA TNT2 */ -#define FB_ACCEL_CT_6555x 30 /* C&T 6555x */ -#define FB_ACCEL_3DFX_BANSHEE 31 /* 3Dfx Banshee */ -#define FB_ACCEL_ATI_RAGE128 32 /* ATI Rage128 family */ -#define FB_ACCEL_IGS_CYBER2000 33 /* CyberPro 2000 */ -#define FB_ACCEL_IGS_CYBER2010 34 /* CyberPro 2010 */ -#define FB_ACCEL_IGS_CYBER5000 35 /* CyberPro 5000 */ -#define FB_ACCEL_SIS_GLAMOUR 36 /* SiS 300/630/540 */ -#define FB_ACCEL_3DLABS_PERMEDIA3 37 /* 3Dlabs Permedia 3 */ -#define FB_ACCEL_ATI_RADEON 38 /* ATI Radeon family */ -#define FB_ACCEL_I810 39 /* Intel 810/815 */ -#define FB_ACCEL_SIS_GLAMOUR_2 40 /* SiS 315, 650, 740 */ -#define FB_ACCEL_SIS_XABRE 41 /* SiS 330 ("Xabre") */ -#define FB_ACCEL_I830 42 /* Intel 830M/845G/85x/865G */ -#define FB_ACCEL_NV_10 43 /* nVidia Arch 10 */ -#define FB_ACCEL_NV_20 44 /* nVidia Arch 20 */ -#define FB_ACCEL_NV_30 45 /* nVidia Arch 30 */ -#define FB_ACCEL_NV_40 46 /* nVidia Arch 40 */ -#define FB_ACCEL_XGI_VOLARI_V 47 /* XGI Volari V3XT, V5, V8 */ -#define FB_ACCEL_XGI_VOLARI_Z 48 /* XGI Volari Z7 */ -#define FB_ACCEL_OMAP1610 49 /* TI OMAP16xx */ -#define FB_ACCEL_TRIDENT_TGUI 50 /* Trident TGUI */ -#define FB_ACCEL_TRIDENT_3DIMAGE 51 /* Trident 3DImage */ -#define FB_ACCEL_TRIDENT_BLADE3D 52 /* Trident Blade3D */ -#define FB_ACCEL_TRIDENT_BLADEXP 53 /* Trident BladeXP */ -#define FB_ACCEL_CIRRUS_ALPINE 53 /* Cirrus Logic 543x/544x/5480 */ -#define FB_ACCEL_NEOMAGIC_NM2070 90 /* NeoMagic NM2070 */ -#define FB_ACCEL_NEOMAGIC_NM2090 91 /* NeoMagic NM2090 */ -#define FB_ACCEL_NEOMAGIC_NM2093 92 /* NeoMagic NM2093 */ -#define FB_ACCEL_NEOMAGIC_NM2097 93 /* NeoMagic NM2097 */ -#define FB_ACCEL_NEOMAGIC_NM2160 94 /* NeoMagic NM2160 */ -#define FB_ACCEL_NEOMAGIC_NM2200 95 /* NeoMagic NM2200 */ -#define FB_ACCEL_NEOMAGIC_NM2230 96 /* NeoMagic NM2230 */ -#define FB_ACCEL_NEOMAGIC_NM2360 97 /* NeoMagic NM2360 */ -#define FB_ACCEL_NEOMAGIC_NM2380 98 /* NeoMagic NM2380 */ -#define FB_ACCEL_PXA3XX 99 /* PXA3xx */ - -#define FB_ACCEL_SAVAGE4 0x80 /* S3 Savage4 */ -#define FB_ACCEL_SAVAGE3D 0x81 /* S3 Savage3D */ -#define FB_ACCEL_SAVAGE3D_MV 0x82 /* S3 Savage3D-MV */ -#define FB_ACCEL_SAVAGE2000 0x83 /* S3 Savage2000 */ -#define FB_ACCEL_SAVAGE_MX_MV 0x84 /* S3 Savage/MX-MV */ -#define FB_ACCEL_SAVAGE_MX 0x85 /* S3 Savage/MX */ -#define FB_ACCEL_SAVAGE_IX_MV 0x86 /* S3 Savage/IX-MV */ -#define FB_ACCEL_SAVAGE_IX 0x87 /* S3 Savage/IX */ -#define FB_ACCEL_PROSAVAGE_PM 0x88 /* S3 ProSavage PM133 */ -#define FB_ACCEL_PROSAVAGE_KM 0x89 /* S3 ProSavage KM133 */ -#define FB_ACCEL_S3TWISTER_P 0x8a /* S3 Twister */ -#define FB_ACCEL_S3TWISTER_K 0x8b /* S3 TwisterK */ -#define FB_ACCEL_SUPERSAVAGE 0x8c /* S3 Supersavage */ -#define FB_ACCEL_PROSAVAGE_DDR 0x8d /* S3 ProSavage DDR */ -#define FB_ACCEL_PROSAVAGE_DDRK 0x8e /* S3 ProSavage DDR-K */ - -#define FB_ACCEL_PUV3_UNIGFX 0xa0 /* PKUnity-v3 Unigfx */ - -struct fb_fix_screeninfo { - char id[16]; /* identification string eg "TT Builtin" */ - unsigned long smem_start; /* Start of frame buffer mem */ - /* (physical address) */ - __u32 smem_len; /* Length of frame buffer mem */ - __u32 type; /* see FB_TYPE_* */ - __u32 type_aux; /* Interleave for interleaved Planes */ - __u32 visual; /* see FB_VISUAL_* */ - __u16 xpanstep; /* zero if no hardware panning */ - __u16 ypanstep; /* zero if no hardware panning */ - __u16 ywrapstep; /* zero if no hardware ywrap */ - __u32 line_length; /* length of a line in bytes */ - unsigned long mmio_start; /* Start of Memory Mapped I/O */ - /* (physical address) */ - __u32 mmio_len; /* Length of Memory Mapped I/O */ - __u32 accel; /* Indicate to driver which */ - /* specific chip/card we have */ - __u16 reserved[3]; /* Reserved for future compatibility */ -}; - -/* Interpretation of offset for color fields: All offsets are from the right, - * inside a "pixel" value, which is exactly 'bits_per_pixel' wide (means: you - * can use the offset as right argument to <<). A pixel afterwards is a bit - * stream and is written to video memory as that unmodified. - * - * For pseudocolor: offset and length should be the same for all color - * components. Offset specifies the position of the least significant bit - * of the pallette index in a pixel value. Length indicates the number - * of available palette entries (i.e. # of entries = 1 << length). - */ -struct fb_bitfield { - __u32 offset; /* beginning of bitfield */ - __u32 length; /* length of bitfield */ - __u32 msb_right; /* != 0 : Most significant bit is */ - /* right */ -}; - -#define FB_NONSTD_HAM 1 /* Hold-And-Modify (HAM) */ -#define FB_NONSTD_REV_PIX_IN_B 2 /* order of pixels in each byte is reversed */ - -#define FB_ACTIVATE_NOW 0 /* set values immediately (or vbl)*/ -#define FB_ACTIVATE_NXTOPEN 1 /* activate on next open */ -#define FB_ACTIVATE_TEST 2 /* don't set, round up impossible */ -#define FB_ACTIVATE_MASK 15 - /* values */ -#define FB_ACTIVATE_VBL 16 /* activate values on next vbl */ -#define FB_CHANGE_CMAP_VBL 32 /* change colormap on vbl */ -#define FB_ACTIVATE_ALL 64 /* change all VCs on this fb */ -#define FB_ACTIVATE_FORCE 128 /* force apply even when no change*/ -#define FB_ACTIVATE_INV_MODE 256 /* invalidate videomode */ - -#define FB_ACCELF_TEXT 1 /* (OBSOLETE) see fb_info.flags and vc_mode */ - -#define FB_SYNC_HOR_HIGH_ACT 1 /* horizontal sync high active */ -#define FB_SYNC_VERT_HIGH_ACT 2 /* vertical sync high active */ -#define FB_SYNC_EXT 4 /* external sync */ -#define FB_SYNC_COMP_HIGH_ACT 8 /* composite sync high active */ -#define FB_SYNC_BROADCAST 16 /* broadcast video timings */ - /* vtotal = 144d/288n/576i => PAL */ - /* vtotal = 121d/242n/484i => NTSC */ -#define FB_SYNC_ON_GREEN 32 /* sync on green */ - -#define FB_VMODE_NONINTERLACED 0 /* non interlaced */ -#define FB_VMODE_INTERLACED 1 /* interlaced */ -#define FB_VMODE_DOUBLE 2 /* double scan */ -#define FB_VMODE_ODD_FLD_FIRST 4 /* interlaced: top line first */ -#define FB_VMODE_MASK 255 - -#define FB_VMODE_YWRAP 256 /* ywrap instead of panning */ -#define FB_VMODE_SMOOTH_XPAN 512 /* smooth xpan possible (internally used) */ -#define FB_VMODE_CONUPDATE 512 /* don't update x/yoffset */ - -#define FB_FLAG_RATIO_4_3 64 -#define FB_FLAG_RATIO_16_9 128 -#define FB_FLAG_PIXEL_REPEAT 256 - -/* - * Display rotation support - */ -#define FB_ROTATE_UR 0 -#define FB_ROTATE_CW 1 -#define FB_ROTATE_UD 2 -#define FB_ROTATE_CCW 3 - -#define PICOS2KHZ(a) (1000000000UL/(a)) -#define KHZ2PICOS(a) (1000000000UL/(a)) - -struct fb_var_screeninfo { - __u32 xres; /* visible resolution */ - __u32 yres; - __u32 xres_virtual; /* virtual resolution */ - __u32 yres_virtual; - __u32 xoffset; /* offset from virtual to visible */ - __u32 yoffset; /* resolution */ - - __u32 bits_per_pixel; /* guess what */ - __u32 grayscale; /* != 0 Graylevels instead of colors */ - - struct fb_bitfield red; /* bitfield in fb mem if true color, */ - struct fb_bitfield green; /* else only length is significant */ - struct fb_bitfield blue; - struct fb_bitfield transp; /* transparency */ - - __u32 nonstd; /* != 0 Non standard pixel format */ - - __u32 activate; /* see FB_ACTIVATE_* */ - - __u32 height; /* height of picture in mm */ - __u32 width; /* width of picture in mm */ - - __u32 accel_flags; /* (OBSOLETE) see fb_info.flags */ - - /* Timing: All values in pixclocks, except pixclock (of course) */ - __u32 pixclock; /* pixel clock in ps (pico seconds) */ - __u32 left_margin; /* time from sync to picture */ - __u32 right_margin; /* time from picture to sync */ - __u32 upper_margin; /* time from sync to picture */ - __u32 lower_margin; - __u32 hsync_len; /* length of horizontal sync */ - __u32 vsync_len; /* length of vertical sync */ - __u32 sync; /* see FB_SYNC_* */ - __u32 vmode; /* see FB_VMODE_* */ - __u32 rotate; /* angle we rotate counter clockwise */ - __u32 reserved[5]; /* Reserved for future compatibility */ -}; - -struct fb_cmap { - __u32 start; /* First entry */ - __u32 len; /* Number of entries */ - __u16 *red; /* Red values */ - __u16 *green; - __u16 *blue; - __u16 *transp; /* transparency, can be NULL */ -}; - -struct fb_con2fbmap { - __u32 console; - __u32 framebuffer; -}; - -/* VESA Blanking Levels */ -#define VESA_NO_BLANKING 0 -#define VESA_VSYNC_SUSPEND 1 -#define VESA_HSYNC_SUSPEND 2 -#define VESA_POWERDOWN 3 - - -enum { - /* screen: unblanked, hsync: on, vsync: on */ - FB_BLANK_UNBLANK = VESA_NO_BLANKING, - - /* screen: blanked, hsync: on, vsync: on */ - FB_BLANK_NORMAL = VESA_NO_BLANKING + 1, - - /* screen: blanked, hsync: on, vsync: off */ - FB_BLANK_VSYNC_SUSPEND = VESA_VSYNC_SUSPEND + 1, - - /* screen: blanked, hsync: off, vsync: on */ - FB_BLANK_HSYNC_SUSPEND = VESA_HSYNC_SUSPEND + 1, - - /* screen: blanked, hsync: off, vsync: off */ - FB_BLANK_POWERDOWN = VESA_POWERDOWN + 1 -}; - -#define FB_VBLANK_VBLANKING 0x001 /* currently in a vertical blank */ -#define FB_VBLANK_HBLANKING 0x002 /* currently in a horizontal blank */ -#define FB_VBLANK_HAVE_VBLANK 0x004 /* vertical blanks can be detected */ -#define FB_VBLANK_HAVE_HBLANK 0x008 /* horizontal blanks can be detected */ -#define FB_VBLANK_HAVE_COUNT 0x010 /* global retrace counter is available */ -#define FB_VBLANK_HAVE_VCOUNT 0x020 /* the vcount field is valid */ -#define FB_VBLANK_HAVE_HCOUNT 0x040 /* the hcount field is valid */ -#define FB_VBLANK_VSYNCING 0x080 /* currently in a vsync */ -#define FB_VBLANK_HAVE_VSYNC 0x100 /* verical syncs can be detected */ - -struct fb_vblank { - __u32 flags; /* FB_VBLANK flags */ - __u32 count; /* counter of retraces since boot */ - __u32 vcount; /* current scanline position */ - __u32 hcount; /* current scandot position */ - __u32 reserved[4]; /* reserved for future compatibility */ -}; - -/* Internal HW accel */ -#define ROP_COPY 0 -#define ROP_XOR 1 - -struct fb_copyarea { - __u32 dx; - __u32 dy; - __u32 width; - __u32 height; - __u32 sx; - __u32 sy; -}; - -struct fb_fillrect { - __u32 dx; /* screen-relative */ - __u32 dy; - __u32 width; - __u32 height; - __u32 color; - __u32 rop; -}; - -struct fb_image { - __u32 dx; /* Where to place image */ - __u32 dy; - __u32 width; /* Size of image */ - __u32 height; - __u32 fg_color; /* Only used when a mono bitmap */ - __u32 bg_color; - __u8 depth; /* Depth of the image */ - const char *data; /* Pointer to image data */ - struct fb_cmap cmap; /* color map info */ -}; - -/* - * hardware cursor control - */ - -#define FB_CUR_SETIMAGE 0x01 -#define FB_CUR_SETPOS 0x02 -#define FB_CUR_SETHOT 0x04 -#define FB_CUR_SETCMAP 0x08 -#define FB_CUR_SETSHAPE 0x10 -#define FB_CUR_SETSIZE 0x20 -#define FB_CUR_SETALL 0xFF - -struct fbcurpos { - __u16 x, y; -}; - -struct fb_cursor { - __u16 set; /* what to set */ - __u16 enable; /* cursor on/off */ - __u16 rop; /* bitop operation */ - const char *mask; /* cursor mask bits */ - struct fbcurpos hot; /* cursor hot spot */ - struct fb_image image; /* Cursor image */ -}; - -#ifdef CONFIG_FB_BACKLIGHT -/* Settings for the generic backlight code */ -#define FB_BACKLIGHT_LEVELS 128 -#define FB_BACKLIGHT_MAX 0xFF -#endif - -#ifdef __KERNEL__ - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -struct vm_area_struct; -struct fb_info; -struct device; -struct file; - -/* Definitions below are used in the parsed monitor specs */ -#define FB_DPMS_ACTIVE_OFF 1 -#define FB_DPMS_SUSPEND 2 -#define FB_DPMS_STANDBY 4 - -#define FB_DISP_DDI 1 -#define FB_DISP_ANA_700_300 2 -#define FB_DISP_ANA_714_286 4 -#define FB_DISP_ANA_1000_400 8 -#define FB_DISP_ANA_700_000 16 - -#define FB_DISP_MONO 32 -#define FB_DISP_RGB 64 -#define FB_DISP_MULTI 128 -#define FB_DISP_UNKNOWN 256 - -#define FB_SIGNAL_NONE 0 -#define FB_SIGNAL_BLANK_BLANK 1 -#define FB_SIGNAL_SEPARATE 2 -#define FB_SIGNAL_COMPOSITE 4 -#define FB_SIGNAL_SYNC_ON_GREEN 8 -#define FB_SIGNAL_SERRATION_ON 16 - -#define FB_MISC_PRIM_COLOR 1 -#define FB_MISC_1ST_DETAIL 2 /* First Detailed Timing is preferred */ -#define FB_MISC_HDMI 4 /* display supports HDMI signaling */ - -struct fb_chroma { - __u32 redx; /* in fraction of 1024 */ - __u32 greenx; - __u32 bluex; - __u32 whitex; - __u32 redy; - __u32 greeny; - __u32 bluey; - __u32 whitey; -}; - -struct fb_monspecs { - struct fb_chroma chroma; - struct fb_videomode *modedb; /* mode database */ - __u8 manufacturer[4]; /* Manufacturer */ - __u8 monitor[14]; /* Monitor String */ - __u8 serial_no[14]; /* Serial Number */ - __u8 ascii[14]; /* ? */ - __u32 modedb_len; /* mode database length */ - __u32 model; /* Monitor Model */ - __u32 serial; /* Serial Number - Integer */ - __u32 year; /* Year manufactured */ - __u32 week; /* Week Manufactured */ - __u32 hfmin; /* hfreq lower limit (Hz) */ - __u32 hfmax; /* hfreq upper limit (Hz) */ - __u32 dclkmin; /* pixelclock lower limit (Hz) */ - __u32 dclkmax; /* pixelclock upper limit (Hz) */ - __u16 input; /* display type - see FB_DISP_* */ - __u16 dpms; /* DPMS support - see FB_DPMS_ */ - __u16 signal; /* Signal Type - see FB_SIGNAL_* */ - __u16 vfmin; /* vfreq lower limit (Hz) */ - __u16 vfmax; /* vfreq upper limit (Hz) */ - __u16 gamma; /* Gamma - in fractions of 100 */ - __u16 gtf : 1; /* supports GTF */ - __u16 misc; /* Misc flags - see FB_MISC_* */ - __u8 version; /* EDID version... */ - __u8 revision; /* ...and revision */ - __u8 max_x; /* Maximum horizontal size (cm) */ - __u8 max_y; /* Maximum vertical size (cm) */ - struct fb_audio *audiodb; /* audio database */ - __u32 audiodb_len; /* audio database length */ -}; - -struct fb_cmap_user { - __u32 start; /* First entry */ - __u32 len; /* Number of entries */ - __u16 __user *red; /* Red values */ - __u16 __user *green; - __u16 __user *blue; - __u16 __user *transp; /* transparency, can be NULL */ -}; - -struct fb_image_user { - __u32 dx; /* Where to place image */ - __u32 dy; - __u32 width; /* Size of image */ - __u32 height; - __u32 fg_color; /* Only used when a mono bitmap */ - __u32 bg_color; - __u8 depth; /* Depth of the image */ - const char __user *data; /* Pointer to image data */ - struct fb_cmap_user cmap; /* color map info */ -}; - -struct fb_cursor_user { - __u16 set; /* what to set */ - __u16 enable; /* cursor on/off */ - __u16 rop; /* bitop operation */ - const char __user *mask; /* cursor mask bits */ - struct fbcurpos hot; /* cursor hot spot */ - struct fb_image_user image; /* Cursor image */ -}; - -/* - * Register/unregister for framebuffer events - */ - -/* The resolution of the passed in fb_info about to change */ -#define FB_EVENT_MODE_CHANGE 0x01 -/* The display on this fb_info is beeing suspended, no access to the - * framebuffer is allowed any more after that call returns - */ -#define FB_EVENT_SUSPEND 0x02 -/* The display on this fb_info was resumed, you can restore the display - * if you own it - */ -#define FB_EVENT_RESUME 0x03 -/* An entry from the modelist was removed */ -#define FB_EVENT_MODE_DELETE 0x04 -/* A driver registered itself */ -#define FB_EVENT_FB_REGISTERED 0x05 -/* A driver unregistered itself */ -#define FB_EVENT_FB_UNREGISTERED 0x06 -/* CONSOLE-SPECIFIC: get console to framebuffer mapping */ -#define FB_EVENT_GET_CONSOLE_MAP 0x07 -/* CONSOLE-SPECIFIC: set console to framebuffer mapping */ -#define FB_EVENT_SET_CONSOLE_MAP 0x08 -/* A hardware display blank change occurred */ -#define FB_EVENT_BLANK 0x09 -/* Private modelist is to be replaced */ -#define FB_EVENT_NEW_MODELIST 0x0A -/* The resolution of the passed in fb_info about to change and - all vc's should be changed */ -#define FB_EVENT_MODE_CHANGE_ALL 0x0B -/* A software display blank change occurred */ -#define FB_EVENT_CONBLANK 0x0C -/* Get drawing requirements */ -#define FB_EVENT_GET_REQ 0x0D -/* Unbind from the console if possible */ -#define FB_EVENT_FB_UNBIND 0x0E -/* CONSOLE-SPECIFIC: remap all consoles to new fb - for vga switcheroo */ -#define FB_EVENT_REMAP_ALL_CONSOLE 0x0F - -struct fb_event { - struct fb_info *info; - void *data; -}; - -struct fb_blit_caps { - u32 x; - u32 y; - u32 len; - u32 flags; -}; - -extern int fb_register_client(struct notifier_block *nb); -extern int fb_unregister_client(struct notifier_block *nb); -extern int fb_notifier_call_chain(unsigned long val, void *v); -/* - * Pixmap structure definition - * - * The purpose of this structure is to translate data - * from the hardware independent format of fbdev to what - * format the hardware needs. - */ - -#define FB_PIXMAP_DEFAULT 1 /* used internally by fbcon */ -#define FB_PIXMAP_SYSTEM 2 /* memory is in system RAM */ -#define FB_PIXMAP_IO 4 /* memory is iomapped */ -#define FB_PIXMAP_SYNC 256 /* set if GPU can DMA */ - -struct fb_pixmap { - u8 *addr; /* pointer to memory */ - u32 size; /* size of buffer in bytes */ - u32 offset; /* current offset to buffer */ - u32 buf_align; /* byte alignment of each bitmap */ - u32 scan_align; /* alignment per scanline */ - u32 access_align; /* alignment per read/write (bits) */ - u32 flags; /* see FB_PIXMAP_* */ - u32 blit_x; /* supported bit block dimensions (1-32)*/ - u32 blit_y; /* Format: blit_x = 1 << (width - 1) */ - /* blit_y = 1 << (height - 1) */ - /* if 0, will be set to 0xffffffff (all)*/ - /* access methods */ - void (*writeio)(struct fb_info *info, void __iomem *dst, void *src, unsigned int size); - void (*readio) (struct fb_info *info, void *dst, void __iomem *src, unsigned int size); -}; - -#ifdef CONFIG_FB_DEFERRED_IO -struct fb_deferred_io { - /* delay between mkwrite and deferred handler */ - unsigned long delay; - struct mutex lock; /* mutex that protects the page list */ - struct list_head pagelist; /* list of touched pages */ - /* callback */ - void (*deferred_io)(struct fb_info *info, struct list_head *pagelist); -}; -#endif - -/* - * Frame buffer operations - * - * LOCKING NOTE: those functions must _ALL_ be called with the console - * semaphore held, this is the only suitable locking mechanism we have - * in 2.6. Some may be called at interrupt time at this point though. - * - * The exception to this is the debug related hooks. Putting the fb - * into a debug state (e.g. flipping to the kernel console) and restoring - * it must be done in a lock-free manner, so low level drivers should - * keep track of the initial console (if applicable) and may need to - * perform direct, unlocked hardware writes in these hooks. - */ - -struct fb_ops { - /* open/release and usage marking */ - struct module *owner; - int (*fb_open)(struct fb_info *info, int user); - int (*fb_release)(struct fb_info *info, int user); - - /* For framebuffers with strange non linear layouts or that do not - * work with normal memory mapped access - */ - ssize_t (*fb_read)(struct fb_info *info, char __user *buf, - size_t count, loff_t *ppos); - ssize_t (*fb_write)(struct fb_info *info, const char __user *buf, - size_t count, loff_t *ppos); - - /* checks var and eventually tweaks it to something supported, - * DO NOT MODIFY PAR */ - int (*fb_check_var)(struct fb_var_screeninfo *var, struct fb_info *info); - - /* set the video mode according to info->var */ - int (*fb_set_par)(struct fb_info *info); - - /* set color register */ - int (*fb_setcolreg)(unsigned regno, unsigned red, unsigned green, - unsigned blue, unsigned transp, struct fb_info *info); - - /* set color registers in batch */ - int (*fb_setcmap)(struct fb_cmap *cmap, struct fb_info *info); - - /* blank display */ - int (*fb_blank)(int blank, struct fb_info *info); - - /* pan display */ - int (*fb_pan_display)(struct fb_var_screeninfo *var, struct fb_info *info); - - /* Draws a rectangle */ - void (*fb_fillrect) (struct fb_info *info, const struct fb_fillrect *rect); - /* Copy data from area to another */ - void (*fb_copyarea) (struct fb_info *info, const struct fb_copyarea *region); - /* Draws a image to the display */ - void (*fb_imageblit) (struct fb_info *info, const struct fb_image *image); - - /* Draws cursor */ - int (*fb_cursor) (struct fb_info *info, struct fb_cursor *cursor); - - /* Rotates the display */ - void (*fb_rotate)(struct fb_info *info, int angle); - - /* wait for blit idle, optional */ - int (*fb_sync)(struct fb_info *info); - - /* perform fb specific ioctl (optional) */ - int (*fb_ioctl)(struct fb_info *info, unsigned int cmd, - unsigned long arg); - - /* Handle 32bit compat ioctl (optional) */ - int (*fb_compat_ioctl)(struct fb_info *info, unsigned cmd, - unsigned long arg); - - /* perform fb specific mmap */ - int (*fb_mmap)(struct fb_info *info, struct vm_area_struct *vma); - - /* get capability given var */ - void (*fb_get_caps)(struct fb_info *info, struct fb_blit_caps *caps, - struct fb_var_screeninfo *var); - - /* teardown any resources to do with this framebuffer */ - void (*fb_destroy)(struct fb_info *info); - - /* called at KDB enter and leave time to prepare the console */ - int (*fb_debug_enter)(struct fb_info *info); - int (*fb_debug_leave)(struct fb_info *info); -}; - -#ifdef CONFIG_FB_TILEBLITTING -#define FB_TILE_CURSOR_NONE 0 -#define FB_TILE_CURSOR_UNDERLINE 1 -#define FB_TILE_CURSOR_LOWER_THIRD 2 -#define FB_TILE_CURSOR_LOWER_HALF 3 -#define FB_TILE_CURSOR_TWO_THIRDS 4 -#define FB_TILE_CURSOR_BLOCK 5 - -struct fb_tilemap { - __u32 width; /* width of each tile in pixels */ - __u32 height; /* height of each tile in scanlines */ - __u32 depth; /* color depth of each tile */ - __u32 length; /* number of tiles in the map */ - const __u8 *data; /* actual tile map: a bitmap array, packed - to the nearest byte */ -}; - -struct fb_tilerect { - __u32 sx; /* origin in the x-axis */ - __u32 sy; /* origin in the y-axis */ - __u32 width; /* number of tiles in the x-axis */ - __u32 height; /* number of tiles in the y-axis */ - __u32 index; /* what tile to use: index to tile map */ - __u32 fg; /* foreground color */ - __u32 bg; /* background color */ - __u32 rop; /* raster operation */ -}; - -struct fb_tilearea { - __u32 sx; /* source origin in the x-axis */ - __u32 sy; /* source origin in the y-axis */ - __u32 dx; /* destination origin in the x-axis */ - __u32 dy; /* destination origin in the y-axis */ - __u32 width; /* number of tiles in the x-axis */ - __u32 height; /* number of tiles in the y-axis */ -}; - -struct fb_tileblit { - __u32 sx; /* origin in the x-axis */ - __u32 sy; /* origin in the y-axis */ - __u32 width; /* number of tiles in the x-axis */ - __u32 height; /* number of tiles in the y-axis */ - __u32 fg; /* foreground color */ - __u32 bg; /* background color */ - __u32 length; /* number of tiles to draw */ - __u32 *indices; /* array of indices to tile map */ -}; - -struct fb_tilecursor { - __u32 sx; /* cursor position in the x-axis */ - __u32 sy; /* cursor position in the y-axis */ - __u32 mode; /* 0 = erase, 1 = draw */ - __u32 shape; /* see FB_TILE_CURSOR_* */ - __u32 fg; /* foreground color */ - __u32 bg; /* background color */ -}; - -struct fb_tile_ops { - /* set tile characteristics */ - void (*fb_settile)(struct fb_info *info, struct fb_tilemap *map); - - /* all dimensions from hereon are in terms of tiles */ - - /* move a rectangular region of tiles from one area to another*/ - void (*fb_tilecopy)(struct fb_info *info, struct fb_tilearea *area); - /* fill a rectangular region with a tile */ - void (*fb_tilefill)(struct fb_info *info, struct fb_tilerect *rect); - /* copy an array of tiles */ - void (*fb_tileblit)(struct fb_info *info, struct fb_tileblit *blit); - /* cursor */ - void (*fb_tilecursor)(struct fb_info *info, - struct fb_tilecursor *cursor); - /* get maximum length of the tile map */ - int (*fb_get_tilemax)(struct fb_info *info); -}; -#endif /* CONFIG_FB_TILEBLITTING */ - -/* FBINFO_* = fb_info.flags bit flags */ -#define FBINFO_MODULE 0x0001 /* Low-level driver is a module */ -#define FBINFO_HWACCEL_DISABLED 0x0002 - /* When FBINFO_HWACCEL_DISABLED is set: - * Hardware acceleration is turned off. Software implementations - * of required functions (copyarea(), fillrect(), and imageblit()) - * takes over; acceleration engine should be in a quiescent state */ - -/* hints */ -#define FBINFO_VIRTFB 0x0004 /* FB is System RAM, not device. */ -#define FBINFO_PARTIAL_PAN_OK 0x0040 /* otw use pan only for double-buffering */ -#define FBINFO_READS_FAST 0x0080 /* soft-copy faster than rendering */ - -/* hardware supported ops */ -/* semantics: when a bit is set, it indicates that the operation is - * accelerated by hardware. - * required functions will still work even if the bit is not set. - * optional functions may not even exist if the flag bit is not set. - */ -#define FBINFO_HWACCEL_NONE 0x0000 -#define FBINFO_HWACCEL_COPYAREA 0x0100 /* required */ -#define FBINFO_HWACCEL_FILLRECT 0x0200 /* required */ -#define FBINFO_HWACCEL_IMAGEBLIT 0x0400 /* required */ -#define FBINFO_HWACCEL_ROTATE 0x0800 /* optional */ -#define FBINFO_HWACCEL_XPAN 0x1000 /* optional */ -#define FBINFO_HWACCEL_YPAN 0x2000 /* optional */ -#define FBINFO_HWACCEL_YWRAP 0x4000 /* optional */ - -#define FBINFO_MISC_USEREVENT 0x10000 /* event request - from userspace */ -#define FBINFO_MISC_TILEBLITTING 0x20000 /* use tile blitting */ - -/* A driver may set this flag to indicate that it does want a set_par to be - * called every time when fbcon_switch is executed. The advantage is that with - * this flag set you can really be sure that set_par is always called before - * any of the functions dependent on the correct hardware state or altering - * that state, even if you are using some broken X releases. The disadvantage - * is that it introduces unwanted delays to every console switch if set_par - * is slow. It is a good idea to try this flag in the drivers initialization - * code whenever there is a bug report related to switching between X and the - * framebuffer console. - */ -#define FBINFO_MISC_ALWAYS_SETPAR 0x40000 - -/* where the fb is a firmware driver, and can be replaced with a proper one */ -#define FBINFO_MISC_FIRMWARE 0x80000 -/* - * Host and GPU endianness differ. - */ -#define FBINFO_FOREIGN_ENDIAN 0x100000 -/* - * Big endian math. This is the same flags as above, but with different - * meaning, it is set by the fb subsystem depending FOREIGN_ENDIAN flag - * and host endianness. Drivers should not use this flag. - */ -#define FBINFO_BE_MATH 0x100000 - -/* report to the VT layer that this fb driver can accept forced console - output like oopses */ -#define FBINFO_CAN_FORCE_OUTPUT 0x200000 - -struct fb_info { - atomic_t count; - int node; - int flags; - struct mutex lock; /* Lock for open/release/ioctl funcs */ - struct mutex mm_lock; /* Lock for fb_mmap and smem_* fields */ - struct fb_var_screeninfo var; /* Current var */ - struct fb_fix_screeninfo fix; /* Current fix */ - struct fb_monspecs monspecs; /* Current Monitor specs */ - struct work_struct queue; /* Framebuffer event queue */ - struct fb_pixmap pixmap; /* Image hardware mapper */ - struct fb_pixmap sprite; /* Cursor hardware mapper */ - struct fb_cmap cmap; /* Current cmap */ - struct list_head modelist; /* mode list */ - struct fb_videomode *mode; /* current mode */ - -#ifdef CONFIG_FB_BACKLIGHT - /* assigned backlight device */ - /* set before framebuffer registration, - remove after unregister */ - struct backlight_device *bl_dev; - - /* Backlight level curve */ - struct mutex bl_curve_mutex; - u8 bl_curve[FB_BACKLIGHT_LEVELS]; -#endif -#ifdef CONFIG_FB_DEFERRED_IO - struct delayed_work deferred_work; - struct fb_deferred_io *fbdefio; -#endif - - struct fb_ops *fbops; - struct device *device; /* This is the parent */ - struct device *dev; /* This is this fb device */ - int class_flag; /* private sysfs flags */ -#ifdef CONFIG_FB_TILEBLITTING - struct fb_tile_ops *tileops; /* Tile Blitting */ -#endif - char __iomem *screen_base; /* Virtual address */ - unsigned long screen_size; /* Amount of ioremapped VRAM or 0 */ - void *pseudo_palette; /* Fake palette of 16 colors */ -#define FBINFO_STATE_RUNNING 0 -#define FBINFO_STATE_SUSPENDED 1 - u32 state; /* Hardware state i.e suspend */ - void *fbcon_par; /* fbcon use-only private area */ - /* From here on everything is device dependent */ - void *par; - /* we need the PCI or similar aperture base/size not - smem_start/size as smem_start may just be an object - allocated inside the aperture so may not actually overlap */ - struct apertures_struct { - unsigned int count; - struct aperture { - resource_size_t base; - resource_size_t size; - } ranges[0]; - } *apertures; -}; - -static inline struct apertures_struct *alloc_apertures(unsigned int max_num) { - struct apertures_struct *a = kzalloc(sizeof(struct apertures_struct) - + max_num * sizeof(struct aperture), GFP_KERNEL); - if (!a) - return NULL; - a->count = max_num; - return a; -} - -#ifdef MODULE -#define FBINFO_DEFAULT FBINFO_MODULE -#else -#define FBINFO_DEFAULT 0 -#endif - -// This will go away -#define FBINFO_FLAG_MODULE FBINFO_MODULE -#define FBINFO_FLAG_DEFAULT FBINFO_DEFAULT - -/* This will go away - * fbset currently hacks in FB_ACCELF_TEXT into var.accel_flags - * when it wants to turn the acceleration engine on. This is - * really a separate operation, and should be modified via sysfs. - * But for now, we leave it broken with the following define - */ -#define STUPID_ACCELF_TEXT_SHIT - -// This will go away -#if defined(__sparc__) - -/* We map all of our framebuffers such that big-endian accesses - * are what we want, so the following is sufficient. - */ - -// This will go away -#define fb_readb sbus_readb -#define fb_readw sbus_readw -#define fb_readl sbus_readl -#define fb_readq sbus_readq -#define fb_writeb sbus_writeb -#define fb_writew sbus_writew -#define fb_writel sbus_writel -#define fb_writeq sbus_writeq -#define fb_memset sbus_memset_io -#define fb_memcpy_fromfb sbus_memcpy_fromio -#define fb_memcpy_tofb sbus_memcpy_toio - -#elif defined(__i386__) || defined(__alpha__) || defined(__x86_64__) || defined(__hppa__) || defined(__sh__) || defined(__powerpc__) || defined(__avr32__) || defined(__bfin__) - -#define fb_readb __raw_readb -#define fb_readw __raw_readw -#define fb_readl __raw_readl -#define fb_readq __raw_readq -#define fb_writeb __raw_writeb -#define fb_writew __raw_writew -#define fb_writel __raw_writel -#define fb_writeq __raw_writeq -#define fb_memset memset_io -#define fb_memcpy_fromfb memcpy_fromio -#define fb_memcpy_tofb memcpy_toio - -#else - -#define fb_readb(addr) (*(volatile u8 *) (addr)) -#define fb_readw(addr) (*(volatile u16 *) (addr)) -#define fb_readl(addr) (*(volatile u32 *) (addr)) -#define fb_readq(addr) (*(volatile u64 *) (addr)) -#define fb_writeb(b,addr) (*(volatile u8 *) (addr) = (b)) -#define fb_writew(b,addr) (*(volatile u16 *) (addr) = (b)) -#define fb_writel(b,addr) (*(volatile u32 *) (addr) = (b)) -#define fb_writeq(b,addr) (*(volatile u64 *) (addr) = (b)) -#define fb_memset memset -#define fb_memcpy_fromfb memcpy -#define fb_memcpy_tofb memcpy - -#endif - -#define FB_LEFT_POS(p, bpp) (fb_be_math(p) ? (32 - (bpp)) : 0) -#define FB_SHIFT_HIGH(p, val, bits) (fb_be_math(p) ? (val) >> (bits) : \ - (val) << (bits)) -#define FB_SHIFT_LOW(p, val, bits) (fb_be_math(p) ? (val) << (bits) : \ - (val) >> (bits)) - - /* - * `Generic' versions of the frame buffer device operations - */ - -extern int fb_set_var(struct fb_info *info, struct fb_var_screeninfo *var); -extern int fb_pan_display(struct fb_info *info, struct fb_var_screeninfo *var); -extern int fb_blank(struct fb_info *info, int blank); -extern void cfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect); -extern void cfb_copyarea(struct fb_info *info, const struct fb_copyarea *area); -extern void cfb_imageblit(struct fb_info *info, const struct fb_image *image); -/* - * Drawing operations where framebuffer is in system RAM - */ -extern void sys_fillrect(struct fb_info *info, const struct fb_fillrect *rect); -extern void sys_copyarea(struct fb_info *info, const struct fb_copyarea *area); -extern void sys_imageblit(struct fb_info *info, const struct fb_image *image); -extern ssize_t fb_sys_read(struct fb_info *info, char __user *buf, - size_t count, loff_t *ppos); -extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf, - size_t count, loff_t *ppos); - -/* drivers/video/fbmem.c */ -extern int register_framebuffer(struct fb_info *fb_info); -extern int unregister_framebuffer(struct fb_info *fb_info); -extern int unlink_framebuffer(struct fb_info *fb_info); -extern void remove_conflicting_framebuffers(struct apertures_struct *a, - const char *name, bool primary); -extern int fb_prepare_logo(struct fb_info *fb_info, int rotate); -extern int fb_show_logo(struct fb_info *fb_info, int rotate); -extern char* fb_get_buffer_offset(struct fb_info *info, struct fb_pixmap *buf, u32 size); -extern void fb_pad_unaligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 idx, - u32 height, u32 shift_high, u32 shift_low, u32 mod); -extern void fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, u8 *src, u32 s_pitch, u32 height); -extern void fb_set_suspend(struct fb_info *info, int state); -extern int fb_get_color_depth(struct fb_var_screeninfo *var, - struct fb_fix_screeninfo *fix); -extern int fb_get_options(char *name, char **option); -extern int fb_new_modelist(struct fb_info *info); - -extern struct fb_info *registered_fb[FB_MAX]; -extern int num_registered_fb; -extern struct class *fb_class; - -extern int lock_fb_info(struct fb_info *info); - -static inline void unlock_fb_info(struct fb_info *info) -{ - mutex_unlock(&info->lock); -} - -static inline void __fb_pad_aligned_buffer(u8 *dst, u32 d_pitch, - u8 *src, u32 s_pitch, u32 height) -{ - int i, j; - - d_pitch -= s_pitch; - - for (i = height; i--; ) { - /* s_pitch is a few bytes at the most, memcpy is suboptimal */ - for (j = 0; j < s_pitch; j++) - *dst++ = *src++; - dst += d_pitch; - } -} - -/* drivers/video/fb_defio.c */ -extern void fb_deferred_io_init(struct fb_info *info); -extern void fb_deferred_io_open(struct fb_info *info, - struct inode *inode, - struct file *file); -extern void fb_deferred_io_cleanup(struct fb_info *info); -extern int fb_deferred_io_fsync(struct file *file, loff_t start, - loff_t end, int datasync); - -static inline bool fb_be_math(struct fb_info *info) -{ -#ifdef CONFIG_FB_FOREIGN_ENDIAN -#if defined(CONFIG_FB_BOTH_ENDIAN) - return info->flags & FBINFO_BE_MATH; -#elif defined(CONFIG_FB_BIG_ENDIAN) - return true; -#elif defined(CONFIG_FB_LITTLE_ENDIAN) - return false; -#endif /* CONFIG_FB_BOTH_ENDIAN */ -#else -#ifdef __BIG_ENDIAN - return true; -#else - return false; -#endif /* __BIG_ENDIAN */ -#endif /* CONFIG_FB_FOREIGN_ENDIAN */ -} - -/* drivers/video/fbsysfs.c */ -extern struct fb_info *framebuffer_alloc(size_t size, struct device *dev); -extern void framebuffer_release(struct fb_info *info); -extern int fb_init_device(struct fb_info *fb_info); -extern void fb_cleanup_device(struct fb_info *head); -extern void fb_bl_default_curve(struct fb_info *fb_info, u8 off, u8 min, u8 max); - -/* drivers/video/fbmon.c */ -#define FB_MAXTIMINGS 0 -#define FB_VSYNCTIMINGS 1 -#define FB_HSYNCTIMINGS 2 -#define FB_DCLKTIMINGS 3 -#define FB_IGNOREMON 0x100 - -#define FB_MODE_IS_UNKNOWN 0 -#define FB_MODE_IS_DETAILED 1 -#define FB_MODE_IS_STANDARD 2 -#define FB_MODE_IS_VESA 4 -#define FB_MODE_IS_CALCULATED 8 -#define FB_MODE_IS_FIRST 16 -#define FB_MODE_IS_FROM_VAR 32 - -extern int fbmon_dpms(const struct fb_info *fb_info); -extern int fb_get_mode(int flags, u32 val, struct fb_var_screeninfo *var, - struct fb_info *info); -extern int fb_validate_mode(const struct fb_var_screeninfo *var, - struct fb_info *info); -extern int fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var); -extern const unsigned char *fb_firmware_edid(struct device *device); -extern void fb_edid_to_monspecs(unsigned char *edid, - struct fb_monspecs *specs); -extern void fb_edid_add_monspecs(unsigned char *edid, - struct fb_monspecs *specs); -extern void fb_destroy_modedb(struct fb_videomode *modedb); -extern int fb_find_mode_cvt(struct fb_videomode *mode, int margins, int rb); -extern unsigned char *fb_ddc_read(struct i2c_adapter *adapter); - -/* drivers/video/modedb.c */ -#define VESA_MODEDB_SIZE 34 -#define CEA_MODEDB_SIZE 65 -extern void fb_var_to_videomode(struct fb_videomode *mode, - const struct fb_var_screeninfo *var); -extern void fb_videomode_to_var(struct fb_var_screeninfo *var, - const struct fb_videomode *mode); -extern int fb_mode_is_equal(const struct fb_videomode *mode1, - const struct fb_videomode *mode2); -extern int fb_add_videomode(const struct fb_videomode *mode, - struct list_head *head); -extern void fb_delete_videomode(const struct fb_videomode *mode, - struct list_head *head); -extern const struct fb_videomode *fb_match_mode(const struct fb_var_screeninfo *var, - struct list_head *head); -extern const struct fb_videomode *fb_find_best_mode(const struct fb_var_screeninfo *var, - struct list_head *head); -extern const struct fb_videomode *fb_find_nearest_mode(const struct fb_videomode *mode, - struct list_head *head); -extern void fb_destroy_modelist(struct list_head *head); -extern void fb_videomode_to_modelist(const struct fb_videomode *modedb, int num, - struct list_head *head); -extern const struct fb_videomode *fb_find_best_display(const struct fb_monspecs *specs, - struct list_head *head); - -/* drivers/video/fbcmap.c */ -extern int fb_alloc_cmap(struct fb_cmap *cmap, int len, int transp); -extern int fb_alloc_cmap_gfp(struct fb_cmap *cmap, int len, int transp, gfp_t flags); -extern void fb_dealloc_cmap(struct fb_cmap *cmap); -extern int fb_copy_cmap(const struct fb_cmap *from, struct fb_cmap *to); -extern int fb_cmap_to_user(const struct fb_cmap *from, struct fb_cmap_user *to); -extern int fb_set_cmap(struct fb_cmap *cmap, struct fb_info *fb_info); -extern int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *fb_info); -extern const struct fb_cmap *fb_default_cmap(int len); -extern void fb_invert_cmaps(void); - -struct fb_videomode { - const char *name; /* optional */ - u32 refresh; /* optional */ - u32 xres; - u32 yres; - u32 pixclock; - u32 left_margin; - u32 right_margin; - u32 upper_margin; - u32 lower_margin; - u32 hsync_len; - u32 vsync_len; - u32 sync; - u32 vmode; - u32 flag; -}; - -#define FB_AUDIO_LPCM 1 - -#define FB_AUDIO_192KHZ (1 << 6) -#define FB_AUDIO_176KHZ (1 << 5) -#define FB_AUDIO_96KHZ (1 << 4) -#define FB_AUDIO_88KHZ (1 << 3) -#define FB_AUDIO_48KHZ (1 << 2) -#define FB_AUDIO_44KHZ (1 << 1) -#define FB_AUDIO_32KHZ (1 << 0) - -#define FB_AUDIO_24BIT (1 << 2) -#define FB_AUDIO_20BIT (1 << 1) -#define FB_AUDIO_16BIT (1 << 0) - -struct fb_audio { - u8 format; - u8 channel_count; - u8 sample_rates; - u8 bit_rates; -}; - -extern const char *fb_mode_option; -extern const struct fb_videomode vesa_modes[]; -extern const struct fb_videomode cea_modes[]; - -struct fb_modelist { - struct list_head list; - struct fb_videomode mode; -}; - -extern int fb_find_mode(struct fb_var_screeninfo *var, - struct fb_info *info, const char *mode_option, - const struct fb_videomode *db, - unsigned int dbsize, - const struct fb_videomode *default_mode, - unsigned int default_bpp); - -#endif /* __KERNEL__ */ - -#endif /* _LINUX_FB_H */ diff --git a/kernel-headers/linux/ocd.h b/kernel-headers/linux/ocd.h deleted file mode 100755 index c6fe07b..0000000 --- a/kernel-headers/linux/ocd.h +++ /dev/null @@ -1,624 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef OCD_H -#define OCD_H -#define OCDFMTDEF_VENDOR_SHIFT 24 -#define OCDFMTDEF_VENDOR_MASK (0xFF << OCDFMTDEF_VENDOR_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_VENDOR_ALL (0x00 << OCDFMTDEF_VENDOR_SHIFT) -#define OCDFMTDEF_VENDOR_TI (0x01 << OCDFMTDEF_VENDOR_SHIFT) -#define OCDFMTDEF_CS_SHIFT 21 -#define OCDFMTDEF_CS_MASK (7 << OCDFMTDEF_CS_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_CS_MONO (0 << OCDFMTDEF_CS_SHIFT) -#define OCDFMTDEF_CS_LUT (1 << OCDFMTDEF_CS_SHIFT) -#define OCDFMTDEF_CS_RGB (2 << OCDFMTDEF_CS_SHIFT) -#define OCDFMTDEF_CS_YCbCr (3 << OCDFMTDEF_CS_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_CS_ALPHA (4 << OCDFMTDEF_CS_SHIFT) -#define OCDFMTDEF_STD_SHIFT 19 -#define OCDFMTDEF_STD_MASK (3 << OCDFMTDEF_STD_SHIFT) -#define OCDFMTDEF_STD_ITUR_601_YCbCr (0 << OCDFMTDEF_STD_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_STD_ITUR_709_YCbCr (1 << OCDFMTDEF_STD_SHIFT) -#define OCDFMTDEF_FULLSCALE_YCbCr (3 << OCDFMTDEF_STD_SHIFT) -#define OCDFMTDEF_ALPHA (1 << 18) -#define OCDFMTDEF_NON_PREMULT (1 << 17) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_FILL_EMPTY_0 (1 << 17) -#define OCDFMTDEF_SUBSAMPLE_HORZ_ALIGNED (0 << 16) -#define OCDFMTDEF_SUBSAMPLE_HORZ_CENTERED (1 << 16) -#define OCDFMTDEF_ALPHA_COMPONENTS_SHIFT 16 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_ALPHA_COMPONENTS_MASK (3 << OCDFMTDEF_ALPHA_COMPONENTS_SHIFT) -#define OCDFMTDEF_ALPHA_COMPONENTS_1 (0 << OCDFMTDEF_ALPHA_COMPONENTS_SHIFT) -#define OCDFMTDEF_ALPHA_COMPONENTS_2 (1 << OCDFMTDEF_ALPHA_COMPONENTS_SHIFT) -#define OCDFMTDEF_ALPHA_COMPONENTS_3 (2 << OCDFMTDEF_ALPHA_COMPONENTS_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_ALPHA_COMPONENTS_4 (3 << OCDFMTDEF_ALPHA_COMPONENTS_SHIFT) -#define OCDFMTDEF_SUBSAMPLE_SHIFT 14 -#define OCDFMTDEF_SUBSAMPLE_MASK (3 << OCDFMTDEF_SUBSAMPLE_SHIFT) -#define OCDFMTDEF_SUBSAMPLE_NONE (0 << OCDFMTDEF_SUBSAMPLE_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_SUBSAMPLE_422_YCbCr (1 << OCDFMTDEF_SUBSAMPLE_SHIFT) -#define OCDFMTDEF_SUBSAMPLE_420_YCbCr (2 << OCDFMTDEF_SUBSAMPLE_SHIFT) -#define OCDFMTDEF_SUBSAMPLE_411_YCbCr (3 << OCDFMTDEF_SUBSAMPLE_SHIFT) -#define OCDFMTDEF_LAYOUT_SHIFT 11 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_LAYOUT_MASK (7 << OCDFMTDEF_LAYOUT_SHIFT) -#define OCDFMTDEF_PACKED (0 << OCDFMTDEF_LAYOUT_SHIFT) -#define OCDFMTDEF_DISTRIBUTED (1 << OCDFMTDEF_LAYOUT_SHIFT) -#define OCDFMTDEF_2_PLANE_YCbCr (2 << OCDFMTDEF_LAYOUT_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_3_PLANE_STACKED (3 << OCDFMTDEF_LAYOUT_SHIFT) -#define OCDFMTDEF_3_PLANE_SIDE_BY_SIDE_YCbCr (7 << OCDFMTDEF_LAYOUT_SHIFT) -#define OCDFMTDEF_REVERSED (1 << 10) -#define OCDFMTDEF_LEFT_JUSTIFIED (1 << 9) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_CONTAINER_SHIFT 6 -#define OCDFMTDEF_CONTAINER_MASK (7 << OCDFMTDEF_CONTAINER_SHIFT) -#define OCDFMTDEF_CONTAINER_8BIT (0 << OCDFMTDEF_CONTAINER_SHIFT) -#define OCDFMTDEF_CONTAINER_16BIT (1 << OCDFMTDEF_CONTAINER_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_CONTAINER_24BIT (2 << OCDFMTDEF_CONTAINER_SHIFT) -#define OCDFMTDEF_CONTAINER_32BIT (3 << OCDFMTDEF_CONTAINER_SHIFT) -#define OCDFMTDEF_CONTAINER_48BIT (5 << OCDFMTDEF_CONTAINER_SHIFT) -#define OCDFMTDEF_CONTAINER_64BIT (7 << OCDFMTDEF_CONTAINER_SHIFT) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OCDFMTDEF_COMPONENTSIZEMINUS1_SHIFT 0 -#define OCDFMTDEF_COMPONENTSIZEMINUS1_MASK (0x3F << OCDFMTDEF_COMPONENTSIZEMINUS1_SHIFT) -enum ocdformat { - OCDFMT_UNKNOWN = -1, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_NONE = OCDFMT_UNKNOWN, - OCDFMT_ALPHA1 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_ALPHA | - OCDFMTDEF_ALPHA_COMPONENTS_1 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | - (1 - 1), - OCDFMT_ALPHA2 = OCDFMTDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CS_ALPHA | - OCDFMTDEF_ALPHA_COMPONENTS_1 | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (2 - 1), - OCDFMT_ALPHA4 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_ALPHA | - OCDFMTDEF_ALPHA_COMPONENTS_1 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | - (4 - 1), - OCDFMT_ALPHA8 = OCDFMTDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CS_ALPHA | - OCDFMTDEF_ALPHA_COMPONENTS_1 | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (8 - 1), - OCDFMT_ALPHA4x1 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_ALPHA | - OCDFMTDEF_ALPHA_COMPONENTS_4 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | - (4 - 1), - OCDFMT_ALPHA3x8 = OCDFMTDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CS_ALPHA | - OCDFMTDEF_ALPHA_COMPONENTS_3 | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_24BIT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (24 - 1), - OCDFMT_ALPHA4x8 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_ALPHA | - OCDFMTDEF_ALPHA_COMPONENTS_4 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_32BIT | - (32 - 1), - OCDFMT_MONO1 = OCDFMTDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CS_MONO | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | - (1 - 1), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_MONO2 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_MONO | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (2 - 1), - OCDFMT_MONO4 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_MONO | - OCDFMTDEF_PACKED | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CONTAINER_8BIT | - (4 - 1), - OCDFMT_MONO8 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_MONO | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | - (8 - 1), - OCDFMT_LUT1 = OCDFMTDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CS_LUT | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | - (1 - 1), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_LUT2 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_LUT | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (2 - 1), - OCDFMT_LUT4 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_LUT | - OCDFMTDEF_PACKED | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CONTAINER_8BIT | - (4 - 1), - OCDFMT_LUT8 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_LUT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_8BIT | - (8 - 1), - OCDFMT_RGB12 = OCDFMTDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CS_RGB | - OCDFMTDEF_SUBSAMPLE_NONE | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_16BIT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (12 - 1), - OCDFMT_xRGB12 = OCDFMT_RGB12, - OCDFMT_1RGB12 = OCDFMT_xRGB12, - OCDFMT_0RGB12 = OCDFMT_xRGB12 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_BGR12 = OCDFMT_RGB12 | - OCDFMTDEF_REVERSED, - OCDFMT_xBGR12 = OCDFMT_BGR12, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_1BGR12 = OCDFMT_xBGR12, - OCDFMT_0BGR12 = OCDFMT_xBGR12 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_RGBx12 = OCDFMT_xRGB12 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_LEFT_JUSTIFIED, - OCDFMT_RGB112 = OCDFMT_RGBx12, - OCDFMT_RGB012 = OCDFMT_RGBx12 | - OCDFMTDEF_FILL_EMPTY_0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_BGRx12 = OCDFMT_xRGB12 | - OCDFMTDEF_LEFT_JUSTIFIED | - OCDFMTDEF_REVERSED, - OCDFMT_BGR112 = OCDFMT_BGRx12, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_BGR012 = OCDFMT_BGRx12 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_RGB15 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_RGB | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_SUBSAMPLE_NONE | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_16BIT | - (15 - 1), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_xRGB15 = OCDFMT_RGB15, - OCDFMT_1RGB15 = OCDFMT_xRGB15, - OCDFMT_0RGB15 = OCDFMT_xRGB15 | - OCDFMTDEF_FILL_EMPTY_0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_BGR15 = OCDFMT_RGB15 | - OCDFMTDEF_REVERSED, - OCDFMT_xBGR15 = OCDFMT_BGR15, - OCDFMT_1BGR15 = OCDFMT_xBGR15, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_0BGR15 = OCDFMT_xBGR15 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_RGBx15 = OCDFMT_RGB15 | - OCDFMTDEF_LEFT_JUSTIFIED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_RGB115 = OCDFMT_RGBx15, - OCDFMT_RGB015 = OCDFMT_RGBx15 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_BGRx15 = OCDFMT_RGB15 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_LEFT_JUSTIFIED | - OCDFMTDEF_REVERSED, - OCDFMT_BGR115 = OCDFMT_BGRx15, - OCDFMT_BGR015 = OCDFMT_BGRx15 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_RGB16 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_RGB | - OCDFMTDEF_SUBSAMPLE_NONE | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_16BIT | - (16 - 1), - OCDFMT_BGR16 = OCDFMT_RGB16 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_REVERSED, - OCDFMT_RGB24 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_RGB | - OCDFMTDEF_SUBSAMPLE_NONE | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_24BIT | - (24 - 1), - OCDFMT_BGR24 = OCDFMT_RGB24 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_REVERSED, - OCDFMT_xRGB16 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_RGB | - OCDFMTDEF_SUBSAMPLE_NONE | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_24BIT | - (16 - 1), - OCDFMT_1RGB16 = OCDFMT_xRGB16, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_0RGB16 = OCDFMT_xRGB16 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_xBGR16 = OCDFMT_xRGB16 | - OCDFMTDEF_REVERSED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_1BGR16 = OCDFMT_xBGR16, - OCDFMT_0BGR16 = OCDFMT_xBGR16 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_RGBx16 = OCDFMT_xRGB16 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_LEFT_JUSTIFIED, - OCDFMT_RGB116 = OCDFMT_RGBx16, - OCDFMT_RGB016 = OCDFMT_RGBx16 | - OCDFMTDEF_FILL_EMPTY_0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_BGRx16 = OCDFMT_xRGB16 | - OCDFMTDEF_LEFT_JUSTIFIED | - OCDFMTDEF_REVERSED, - OCDFMT_BGR116 = OCDFMT_BGRx16, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_BGR016 = OCDFMT_BGRx16 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_xRGB24 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_RGB | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_SUBSAMPLE_NONE | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_32BIT | - (24 - 1), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_1RGB24 = OCDFMT_xRGB24, - OCDFMT_0RGB24 = OCDFMT_xRGB24 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_xBGR24 = OCDFMT_xRGB24 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_REVERSED, - OCDFMT_1BGR24 = OCDFMT_xBGR24, - OCDFMT_0BGR24 = OCDFMT_xBGR24 | - OCDFMTDEF_FILL_EMPTY_0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_RGBx24 = OCDFMT_xRGB24 | - OCDFMTDEF_LEFT_JUSTIFIED, - OCDFMT_RGB124 = OCDFMT_RGBx24, - OCDFMT_RGB024 = OCDFMT_RGBx24 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_BGRx24 = OCDFMT_xRGB24 | - OCDFMTDEF_LEFT_JUSTIFIED | - OCDFMTDEF_REVERSED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_BGR124 = OCDFMT_BGRx24, - OCDFMT_BGR024 = OCDFMT_BGRx24 | - OCDFMTDEF_FILL_EMPTY_0, - OCDFMT_ARGB12 = OCDFMT_xRGB12 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_ALPHA, - OCDFMT_ABGR12 = OCDFMT_xBGR12 | - OCDFMTDEF_ALPHA, - OCDFMT_RGBA12 = OCDFMT_RGBx12 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_ALPHA, - OCDFMT_BGRA12 = OCDFMT_BGRx12 | - OCDFMTDEF_ALPHA, - OCDFMT_ARGB16 = OCDFMT_xRGB16 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_ALPHA, - OCDFMT_ABGR16 = OCDFMT_ARGB16 | - OCDFMTDEF_REVERSED, - OCDFMT_RGBA16 = OCDFMT_ARGB16 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_LEFT_JUSTIFIED, - OCDFMT_BGRA16 = OCDFMT_ARGB16 | - OCDFMTDEF_LEFT_JUSTIFIED | - OCDFMTDEF_REVERSED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_ARGB24 = OCDFMT_xRGB24 | - OCDFMTDEF_ALPHA, - OCDFMT_ABGR24 = OCDFMT_xBGR24 | - OCDFMTDEF_ALPHA, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_RGBA24 = OCDFMT_RGBx24 | - OCDFMTDEF_ALPHA, - OCDFMT_BGRA24 = OCDFMT_BGRx24 | - OCDFMTDEF_ALPHA, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_nARGB12 = OCDFMT_ARGB12 | - OCDFMTDEF_NON_PREMULT, - OCDFMT_ARGB12_NON_PREMULT = OCDFMT_nARGB12, - OCDFMT_nABGR12 = OCDFMT_ABGR12 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_NON_PREMULT, - OCDFMT_ABGR12_NON_PREMULT = OCDFMT_nABGR12, - OCDFMT_nRGBA12 = OCDFMT_RGBA12 | - OCDFMTDEF_NON_PREMULT, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_RGBA12_NON_PREMULT = OCDFMT_nRGBA12, - OCDFMT_nBGRA12 = OCDFMT_BGRA12 | - OCDFMTDEF_NON_PREMULT, - OCDFMT_BGRA12_NON_PREMULT = OCDFMT_nBGRA12, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_ARGB15 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_RGB | - OCDFMTDEF_ALPHA | - OCDFMTDEF_NON_PREMULT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_SUBSAMPLE_NONE | - OCDFMTDEF_PACKED | - OCDFMTDEF_CONTAINER_16BIT | - (15 - 1), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_nARGB15 = OCDFMT_ARGB15, - OCDFMT_ARGB15_NON_PREMULT = OCDFMT_nARGB15, - OCDFMT_ABGR15 = OCDFMT_ARGB15 | - OCDFMTDEF_REVERSED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_nABGR15 = OCDFMT_ABGR15, - OCDFMT_ABGR15_NON_PREMULT = OCDFMT_nABGR15, - OCDFMT_RGBA15 = OCDFMT_ARGB15 | - OCDFMTDEF_LEFT_JUSTIFIED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_nRGBA15 = OCDFMT_RGBA15, - OCDFMT_RGBA15_NON_PREMULT = OCDFMT_nRGBA15, - OCDFMT_BGRA15 = OCDFMT_ARGB15 | - OCDFMTDEF_LEFT_JUSTIFIED | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_REVERSED, - OCDFMT_nBGRA15 = OCDFMT_BGRA15, - OCDFMT_BGRA15_NON_PREMULT = OCDFMT_nRGBA15, - OCDFMT_nARGB16 = OCDFMT_ARGB16 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_NON_PREMULT, - OCDFMT_ARGB16_NON_PREMULT = OCDFMT_nARGB16, - OCDFMT_nABGR16 = OCDFMT_ABGR16 | - OCDFMTDEF_NON_PREMULT, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_ABGR16_NON_PREMULT = OCDFMT_nABGR16, - OCDFMT_nRGBA16 = OCDFMT_RGBA16 | - OCDFMTDEF_NON_PREMULT, - OCDFMT_RGBA16_NON_PREMULT = OCDFMT_nRGBA16, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_nBGRA16 = OCDFMT_BGRA16 | - OCDFMTDEF_NON_PREMULT, - OCDFMT_BGRA16_NON_PREMULT = OCDFMT_nBGRA16, - OCDFMT_nARGB24 = OCDFMT_ARGB24 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_NON_PREMULT, - OCDFMT_ARGB24_NON_PREMULT = OCDFMT_nARGB24, - OCDFMT_nABGR24 = OCDFMT_ABGR24 | - OCDFMTDEF_NON_PREMULT, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_ABGR24_NON_PREMULT = OCDFMT_nABGR24, - OCDFMT_nRGBA24 = OCDFMT_RGBA24 | - OCDFMTDEF_NON_PREMULT, - OCDFMT_RGBA24_NON_PREMULT = OCDFMT_nRGBA24, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_nBGRA24 = OCDFMT_BGRA24 | - OCDFMTDEF_NON_PREMULT, - OCDFMT_BGRA24_NON_PREMULT = OCDFMT_nBGRA24, - OCDFMT_UYVY = OCDFMTDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CS_YCbCr | - OCDFMTDEF_SUBSAMPLE_422_YCbCr | - OCDFMTDEF_SUBSAMPLE_HORZ_ALIGNED | - OCDFMTDEF_PACKED | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CONTAINER_32BIT | - (16 - 1), - OCDFMT_UYVY_601 = OCDFMT_UYVY | - OCDFMTDEF_STD_ITUR_601_YCbCr, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_UYVY_709 = OCDFMT_UYVY | - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_Y422 = OCDFMT_UYVY, - OCDFMT_Y422_601 = OCDFMT_UYVY_601, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_Y422_709 = OCDFMT_UYVY_709, - OCDFMT_VYUY = OCDFMT_UYVY | - OCDFMTDEF_REVERSED, - OCDFMT_VYUY_601 = OCDFMT_VYUY | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_VYUY_709 = OCDFMT_VYUY | - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_YUYV = OCDFMT_UYVY | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_LEFT_JUSTIFIED, - OCDFMT_YUYV_601 = OCDFMT_YUYV | - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_YUYV_709 = OCDFMT_YUYV | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_YUY2 = OCDFMT_YUYV, - OCDFMT_YUY2_601 = OCDFMT_YUYV_601, - OCDFMT_YUY2_709 = OCDFMT_YUYV_709, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_YVYU = OCDFMT_VYUY | - OCDFMTDEF_LEFT_JUSTIFIED, - OCDFMT_YVYU_601 = OCDFMT_YVYU | - OCDFMTDEF_STD_ITUR_601_YCbCr, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_YVYU_709 = OCDFMT_YVYU | - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_YV16 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_YCbCr | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_SUBSAMPLE_422_YCbCr | - OCDFMTDEF_SUBSAMPLE_HORZ_ALIGNED | - OCDFMTDEF_3_PLANE_STACKED | - OCDFMTDEF_CONTAINER_32BIT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (16 - 1), - OCDFMT_YV16_601 = OCDFMT_YV16 | - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_YV16_709 = OCDFMT_YV16 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_IYUV = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_YCbCr | - OCDFMTDEF_SUBSAMPLE_420_YCbCr | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_SUBSAMPLE_HORZ_ALIGNED | - OCDFMTDEF_3_PLANE_STACKED | - OCDFMTDEF_CONTAINER_48BIT | - (12 - 1), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_IYUV_601 = OCDFMT_IYUV | - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_IYUV_709 = OCDFMT_IYUV | - OCDFMTDEF_STD_ITUR_709_YCbCr, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_I420 = OCDFMT_IYUV, - OCDFMT_I420_601 = OCDFMT_IYUV_601, - OCDFMT_I420_709 = OCDFMT_IYUV_709, - OCDFMT_YV12 = OCDFMT_IYUV | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_REVERSED, - OCDFMT_YV12_601 = OCDFMT_YV12 | - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_YV12_709 = OCDFMT_YV12 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_IMC3 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_YCbCr | - OCDFMTDEF_SUBSAMPLE_420_YCbCr | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_SUBSAMPLE_HORZ_ALIGNED | - OCDFMTDEF_3_PLANE_STACKED | - OCDFMTDEF_LEFT_JUSTIFIED | - OCDFMTDEF_CONTAINER_48BIT | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - (12 - 1), - OCDFMT_IMC3_601 = OCDFMT_IMC3 | - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_IMC3_709 = OCDFMT_IMC3 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_IMC1 = OCDFMT_IMC3 | - OCDFMTDEF_REVERSED, - OCDFMT_IMC1_601 = OCDFMT_IMC1 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_IMC1_709 = OCDFMT_IMC1 | - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_IMC4 = OCDFMTDEF_VENDOR_ALL | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CS_YCbCr | - OCDFMTDEF_STD_ITUR_601_YCbCr | - OCDFMTDEF_SUBSAMPLE_420_YCbCr | - OCDFMTDEF_SUBSAMPLE_HORZ_ALIGNED | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_3_PLANE_SIDE_BY_SIDE_YCbCr | - OCDFMTDEF_CONTAINER_48BIT | - (12 - 1), - OCDFMT_IMC4_601 = OCDFMT_IMC4 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_IMC4_709 = OCDFMT_IMC4 | - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_IMC2 = OCDFMT_IMC4 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_REVERSED, - OCDFMT_IMC2_601 = OCDFMT_IMC2 | - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_IMC2_709 = OCDFMT_IMC2 | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_NV16 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_YCbCr | - OCDFMTDEF_SUBSAMPLE_422_YCbCr | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_SUBSAMPLE_HORZ_ALIGNED | - OCDFMTDEF_2_PLANE_YCbCr | - OCDFMTDEF_CONTAINER_32BIT | - (16 - 1), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_NV16_601 = OCDFMT_NV16 | - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_NV16_709 = OCDFMT_NV16 | - OCDFMTDEF_STD_ITUR_709_YCbCr, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_NV61 = OCDFMT_NV16 | - OCDFMTDEF_REVERSED, - OCDFMT_NV61_601 = OCDFMT_NV61 | - OCDFMTDEF_STD_ITUR_601_YCbCr, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_NV61_709 = OCDFMT_NV61 | - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_NV12 = OCDFMTDEF_VENDOR_ALL | - OCDFMTDEF_CS_YCbCr | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_STD_ITUR_601_YCbCr | - OCDFMTDEF_SUBSAMPLE_420_YCbCr | - OCDFMTDEF_SUBSAMPLE_HORZ_ALIGNED | - OCDFMTDEF_2_PLANE_YCbCr | -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMTDEF_CONTAINER_48BIT | - (12 - 1), - OCDFMT_NV12_601 = OCDFMT_NV12 | - OCDFMTDEF_STD_ITUR_601_YCbCr, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_NV12_709 = OCDFMT_NV12 | - OCDFMTDEF_STD_ITUR_709_YCbCr, - OCDFMT_NV21 = OCDFMT_NV12 | - OCDFMTDEF_REVERSED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OCDFMT_NV21_601 = OCDFMT_NV21 | - OCDFMTDEF_STD_ITUR_601_YCbCr, - OCDFMT_NV21_709 = OCDFMT_NV21 | - OCDFMTDEF_STD_ITUR_709_YCbCr, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#ifdef OCD_EXTERNAL_INCLUDE -#include OCD_EXTERNAL_INCLUDE -#endif -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#endif diff --git a/kernel-headers/linux/omap_ion.h b/kernel-headers/linux/omap_ion.h deleted file mode 100755 index 87fb5de..0000000 --- a/kernel-headers/linux/omap_ion.h +++ /dev/null @@ -1,66 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef _LINUX_OMAP_ION_H -#define _LINUX_OMAP_ION_H -#include -struct omap_ion_tiler_alloc_data { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - size_t w; - size_t h; - int fmt; - unsigned int flags; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct ion_handle *handle; - size_t stride; - size_t offset; - __u32 out_align; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 token; -}; -enum { - OMAP_ION_HEAP_TYPE_TILER = ION_HEAP_TYPE_CUSTOM + 1, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_ION_HEAP_TYPE_TILER_RESERVATION, -}; -#define OMAP_ION_HEAP_TILER_MASK (1 << OMAP_ION_HEAP_TYPE_TILER) -enum { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_ION_TILER_ALLOC, -}; -enum { - TILER_PIXEL_FMT_MIN = 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - TILER_PIXEL_FMT_8BIT = 0, - TILER_PIXEL_FMT_16BIT = 1, - TILER_PIXEL_FMT_32BIT = 2, - TILER_PIXEL_FMT_PAGE = 3, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - TILER_PIXEL_FMT_MAX = 3 -}; -enum { - OMAP_ION_HEAP_SYSTEM, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_ION_HEAP_TILER, - OMAP_ION_HEAP_SECURE_INPUT, - OMAP_ION_HEAP_NONSECURE_TILER, - OMAP_ION_HEAP_TILER_RESERVATION, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_ION_HEAP_SECURE_OUTPUT_WFDHDCP, -}; -#endif diff --git a/kernel-headers/linux/omapfb.h b/kernel-headers/linux/omapfb.h deleted file mode 100755 index 08ab25e..0000000 --- a/kernel-headers/linux/omapfb.h +++ /dev/null @@ -1,231 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef __LINUX_OMAPFB_H__ -#define __LINUX_OMAPFB_H__ -#include -#include -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#include -#define OMAP_IOW(num, dtype) _IOW('O', num, dtype) -#define OMAP_IOR(num, dtype) _IOR('O', num, dtype) -#define OMAP_IOWR(num, dtype) _IOWR('O', num, dtype) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAP_IO(num) _IO('O', num) -#define OMAPFB_MIRROR OMAP_IOW(31, int) -#define OMAPFB_SYNC_GFX OMAP_IO(37) -#define OMAPFB_VSYNC OMAP_IO(38) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_SET_UPDATE_MODE OMAP_IOW(40, int) -#define OMAPFB_GET_CAPS OMAP_IOR(42, struct omapfb_caps) -#define OMAPFB_GET_UPDATE_MODE OMAP_IOW(43, int) -#define OMAPFB_LCD_TEST OMAP_IOW(45, int) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_CTRL_TEST OMAP_IOW(46, int) -#define OMAPFB_UPDATE_WINDOW_OLD OMAP_IOW(47, struct omapfb_update_window_old) -#define OMAPFB_SET_COLOR_KEY OMAP_IOW(50, struct omapfb_color_key) -#define OMAPFB_GET_COLOR_KEY OMAP_IOW(51, struct omapfb_color_key) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_SETUP_PLANE OMAP_IOW(52, struct omapfb_plane_info) -#define OMAPFB_QUERY_PLANE OMAP_IOW(53, struct omapfb_plane_info) -#define OMAPFB_UPDATE_WINDOW OMAP_IOW(54, struct omapfb_update_window) -#define OMAPFB_SETUP_MEM OMAP_IOW(55, struct omapfb_mem_info) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_QUERY_MEM OMAP_IOW(56, struct omapfb_mem_info) -#define OMAPFB_WAITFORVSYNC OMAP_IO(57) -#define OMAPFB_MEMORY_READ OMAP_IOR(58, struct omapfb_memory_read) -#define OMAPFB_GET_OVERLAY_COLORMODE OMAP_IOR(59, struct omapfb_ovl_colormode) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_WAITFORGO OMAP_IO(60) -#define OMAPFB_GET_VRAM_INFO OMAP_IOR(61, struct omapfb_vram_info) -#define OMAPFB_SET_TEARSYNC OMAP_IOW(62, struct omapfb_tearsync_info) -#define OMAPFB_GET_DISPLAY_INFO OMAP_IOR(63, struct omapfb_display_info) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_ENABLEVSYNC OMAP_IOW(64, int) -#define OMAPFB_CAPS_GENERIC_MASK 0x00000fff -#define OMAPFB_CAPS_LCDC_MASK 0x00fff000 -#define OMAPFB_CAPS_PANEL_MASK 0xff000000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_CAPS_MANUAL_UPDATE 0x00001000 -#define OMAPFB_CAPS_TEARSYNC 0x00002000 -#define OMAPFB_CAPS_PLANE_RELOCATE_MEM 0x00004000 -#define OMAPFB_CAPS_PLANE_SCALE 0x00008000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_CAPS_WINDOW_PIXEL_DOUBLE 0x00010000 -#define OMAPFB_CAPS_WINDOW_SCALE 0x00020000 -#define OMAPFB_CAPS_WINDOW_OVERLAY 0x00040000 -#define OMAPFB_CAPS_WINDOW_ROTATE 0x00080000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_CAPS_SET_BACKLIGHT 0x01000000 -#define OMAPFB_FORMAT_MASK 0x00ff -#define OMAPFB_FORMAT_FLAG_DOUBLE 0x0100 -#define OMAPFB_FORMAT_FLAG_TEARSYNC 0x0200 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_FORMAT_FLAG_FORCE_VSYNC 0x0400 -#define OMAPFB_FORMAT_FLAG_ENABLE_OVERLAY 0x0800 -#define OMAPFB_FORMAT_FLAG_DISABLE_OVERLAY 0x1000 -#define OMAPFB_MEMTYPE_SDRAM 0 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMAPFB_MEMTYPE_SRAM 1 -#define OMAPFB_MEMTYPE_MAX 1 -#define OMAPFB_MEM_IDX_ENABLED 0x80 -#define OMAPFB_MEM_IDX_MASK 0x7f -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -enum omapfb_color_format { - OMAPFB_COLOR_RGB565 = 0, - OMAPFB_COLOR_YUV422, - OMAPFB_COLOR_YUV420, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAPFB_COLOR_CLUT_8BPP, - OMAPFB_COLOR_CLUT_4BPP, - OMAPFB_COLOR_CLUT_2BPP, - OMAPFB_COLOR_CLUT_1BPP, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAPFB_COLOR_RGB444, - OMAPFB_COLOR_YUY422, - OMAPFB_COLOR_ARGB16, - OMAPFB_COLOR_RGB24U, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAPFB_COLOR_RGB24P, - OMAPFB_COLOR_ARGB32, - OMAPFB_COLOR_RGBA32, - OMAPFB_COLOR_RGBX32, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -struct omapfb_update_window { - __u32 x, y; - __u32 width, height; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 format; - __u32 out_x, out_y; - __u32 out_width, out_height; - __u32 reserved[8]; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -struct omapfb_update_window_old { - __u32 x, y; - __u32 width, height; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 format; -}; -enum omapfb_plane { - OMAPFB_PLANE_GFX = 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAPFB_PLANE_VID1, - OMAPFB_PLANE_VID2, -}; -enum omapfb_channel_out { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAPFB_CHANNEL_OUT_LCD = 0, - OMAPFB_CHANNEL_OUT_DIGIT, -}; -struct omapfb_plane_info { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 pos_x; - __u32 pos_y; - __u8 enabled; - __u8 channel_out; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 mirror; - __u8 mem_idx; - __u32 out_width; - __u32 out_height; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 reserved2[12]; -}; -struct omapfb_mem_info { - __u32 size; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 type; - __u8 reserved[3]; -}; -struct omapfb_caps { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 ctrl; - __u32 plane_color; - __u32 wnd_color; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -enum omapfb_color_key_type { - OMAPFB_COLOR_KEY_DISABLED = 0, - OMAPFB_COLOR_KEY_GFX_DST, - OMAPFB_COLOR_KEY_VID_SRC, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -struct omapfb_color_key { - __u8 channel_out; - __u32 background; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 trans_key; - __u8 key_type; -}; -enum omapfb_update_mode { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAPFB_UPDATE_DISABLED = 0, - OMAPFB_AUTO_UPDATE, - OMAPFB_MANUAL_UPDATE -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct omapfb_memory_read { - __u16 x; - __u16 y; - __u16 w; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 h; - size_t buffer_size; - void __user *buffer; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct omapfb_ovl_colormode { - __u8 overlay_idx; - __u8 mode_idx; - __u32 bits_per_pixel; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 nonstd; - struct fb_bitfield red; - struct fb_bitfield green; - struct fb_bitfield blue; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct fb_bitfield transp; -}; -struct omapfb_vram_info { - __u32 total; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 free; - __u32 largest_free_block; - __u32 reserved[5]; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct omapfb_tearsync_info { - __u8 enabled; - __u8 reserved1[3]; - __u16 line; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 reserved2; -}; -struct omapfb_display_info { - __u16 xres; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 yres; - __u32 width; - __u32 height; - __u32 reserved[5]; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -#endif - diff --git a/kernel-headers/linux/rpmsg_omx.h b/kernel-headers/linux/rpmsg_omx.h deleted file mode 100755 index 72fddb8..0000000 --- a/kernel-headers/linux/rpmsg_omx.h +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef RPMSG_OMX_H -#define RPMSG_OMX_H -#include -struct omx_pvr_data { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - int fd; - unsigned int num_handles; - void *handles[2]; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMX_IOC_MAGIC 'X' -#define OMX_IOCCONNECT _IOW(OMX_IOC_MAGIC, 1, char *) -#define OMX_IOCIONREGISTER _IOWR(OMX_IOC_MAGIC, 2, struct ion_fd_data) -#define OMX_IOCIONUNREGISTER _IOWR(OMX_IOC_MAGIC, 3, struct ion_fd_data) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define OMX_IOCPVRREGISTER _IOWR(OMX_IOC_MAGIC, 4, struct omx_pvr_data) -#define OMX_IOC_MAXNR (4) -struct omx_conn_req { - char name[48]; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -} __packed; -struct omx_packet { - uint16_t desc; - uint16_t msg_id; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - uint32_t flags; - uint32_t fxn_idx; - int32_t result; - uint32_t data_size; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - uint32_t data[0]; -}; -#endif diff --git a/kernel-headers/video/dsscomp.h b/kernel-headers/video/dsscomp.h deleted file mode 100755 index 8668c13..0000000 --- a/kernel-headers/video/dsscomp.h +++ /dev/null @@ -1,414 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef _LINUX_DSSCOMP_H -#define _LINUX_DSSCOMP_H -enum omap_plane { - OMAP_DSS_GFX = 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_VIDEO1 = 1, - OMAP_DSS_VIDEO2 = 2, - OMAP_DSS_VIDEO3 = 3, - OMAP_DSS_WB = 4, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -enum omap_channel { - OMAP_DSS_CHANNEL_LCD = 0, - OMAP_DSS_CHANNEL_DIGIT = 1, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_CHANNEL_LCD2 = 2, -}; -enum omap_color_mode { - OMAP_DSS_COLOR_CLUT1 = 1 << 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_COLOR_CLUT2 = 1 << 1, - OMAP_DSS_COLOR_CLUT4 = 1 << 2, - OMAP_DSS_COLOR_CLUT8 = 1 << 3, - OMAP_DSS_COLOR_RGB12U = 1 << 4, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_COLOR_ARGB16 = 1 << 5, - OMAP_DSS_COLOR_RGB16 = 1 << 6, - OMAP_DSS_COLOR_RGB24U = 1 << 7, - OMAP_DSS_COLOR_RGB24P = 1 << 8, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_COLOR_YUV2 = 1 << 9, - OMAP_DSS_COLOR_UYVY = 1 << 10, - OMAP_DSS_COLOR_ARGB32 = 1 << 11, - OMAP_DSS_COLOR_RGBA32 = 1 << 12, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_COLOR_RGBX24 = 1 << 13, - OMAP_DSS_COLOR_RGBX32 = 1 << 13, - OMAP_DSS_COLOR_NV12 = 1 << 14, - OMAP_DSS_COLOR_RGBA16 = 1 << 15, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_COLOR_RGBX12 = 1 << 16, - OMAP_DSS_COLOR_RGBX16 = 1 << 16, - OMAP_DSS_COLOR_ARGB16_1555 = 1 << 17, - OMAP_DSS_COLOR_XRGB15 = 1 << 18, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_COLOR_XRGB16_1555 = 1 << 18, -}; -enum omap_writeback_source { - OMAP_WB_LCD1 = 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_WB_TV = 1, - OMAP_WB_LCD2 = 2, - OMAP_WB_GFX = 3, - OMAP_WB_VID1 = 4, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_WB_VID2 = 5, - OMAP_WB_VID3 = 6 -}; -enum omap_writeback_mode { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_WB_CAPTURE_MODE = 0x0, - OMAP_WB_MEM2MEM_MODE = 0x1, -}; -enum omap_dss_trans_key_type { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_COLOR_KEY_GFX_DST = 0, - OMAP_DSS_COLOR_KEY_VID_SRC = 1, -}; -enum omap_dss_display_state { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_DISPLAY_DISABLED = 0, - OMAP_DSS_DISPLAY_ACTIVE, - OMAP_DSS_DISPLAY_SUSPENDED, - OMAP_DSS_DISPLAY_TRANSITION, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -struct omap_video_timings { - __u16 x_res; - __u16 y_res; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 pixel_clock; - __u16 hsw; - __u16 hfp; - __u16 hbp; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 vsw; - __u16 vfp; - __u16 vbp; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct omap_dss_cconv_coefs { - __s16 ry, rcr, rcb; - __s16 gy, gcr, gcb; - __s16 by, bcr, bcb; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 full_range; -} __attribute__ ((aligned(4))); -struct omap_dss_cpr_coefs { - __s16 rr, rg, rb; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __s16 gr, gg, gb; - __s16 br, bg, bb; -}; -struct dsscomp_videomode { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - const char *name; - __u32 refresh; - __u32 xres; - __u32 yres; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 pixclock; - __u32 left_margin; - __u32 right_margin; - __u32 upper_margin; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 lower_margin; - __u32 hsync_len; - __u32 vsync_len; - __u32 sync; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 vmode; - __u32 flag; -}; -enum s3d_disp_type { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - S3D_DISP_NONE = 0, - S3D_DISP_FRAME_SEQ, - S3D_DISP_ROW_IL, - S3D_DISP_COL_IL, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - S3D_DISP_PIX_IL, - S3D_DISP_CHECKB, - S3D_DISP_OVERUNDER, - S3D_DISP_SIDEBYSIDE, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -enum s3d_disp_sub_sampling { - S3D_DISP_SUB_SAMPLE_NONE = 0, - S3D_DISP_SUB_SAMPLE_V, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - S3D_DISP_SUB_SAMPLE_H, -}; -enum s3d_disp_order { - S3D_DISP_ORDER_L = 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - S3D_DISP_ORDER_R = 1, -}; -enum s3d_disp_view { - S3D_DISP_VIEW_L = 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - S3D_DISP_VIEW_R, -}; -struct s3d_disp_info { - enum s3d_disp_type type; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum s3d_disp_sub_sampling sub_samp; - enum s3d_disp_order order; - unsigned int gap; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -enum omap_dss_ilace_mode { - OMAP_DSS_ILACE = (1 << 0), - OMAP_DSS_ILACE_SEQ = (1 << 1), - OMAP_DSS_ILACE_SWAP = (1 << 2), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_ILACE_NONE = 0, - OMAP_DSS_ILACE_IL_TB = OMAP_DSS_ILACE, - OMAP_DSS_ILACE_IL_BT = OMAP_DSS_ILACE | OMAP_DSS_ILACE_SWAP, - OMAP_DSS_ILACE_SEQ_TB = OMAP_DSS_ILACE_IL_TB | OMAP_DSS_ILACE_SEQ, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_ILACE_SEQ_BT = OMAP_DSS_ILACE_IL_BT | OMAP_DSS_ILACE_SEQ, -}; -struct dss2_vc1_range_map_info { - __u8 enable; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 range_y; - __u8 range_uv; -} __attribute__ ((aligned(4))); -struct dss2_rect_t { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __s32 x; - __s32 y; - __u32 w; - __u32 h; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -} __attribute__ ((aligned(4))); -struct dss2_decim { - __u8 min_x; - __u8 max_x; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 min_y; - __u8 max_y; -} __attribute__ ((aligned(4))); -struct dss2_ovl_cfg { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 width; - __u16 height; - __u32 stride; - enum omap_color_mode color_mode; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 pre_mult_alpha; - __u8 global_alpha; - __u8 rotation; - __u8 mirror; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum omap_dss_ilace_mode ilace; - struct dss2_rect_t win; - struct dss2_rect_t crop; - struct dss2_decim decim; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct omap_dss_cconv_coefs cconv; - struct dss2_vc1_range_map_info vc1; - __u8 wb_source; - enum omap_writeback_mode wb_mode; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 ix; - __u8 zorder; - __u8 enabled; - __u8 zonly; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 mgr_ix; -} __attribute__ ((aligned(4))); -enum omapdss_buffer_type { - OMAP_DSS_BUFTYPE_SDMA, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_BUFTYPE_TILER_8BIT, - OMAP_DSS_BUFTYPE_TILER_16BIT, - OMAP_DSS_BUFTYPE_TILER_32BIT, - OMAP_DSS_BUFTYPE_TILER_PAGE, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -enum omapdss_buffer_addressing_type { - OMAP_DSS_BUFADDR_DIRECT, - OMAP_DSS_BUFADDR_BYTYPE, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_BUFADDR_ION, - OMAP_DSS_BUFADDR_GRALLOC, - OMAP_DSS_BUFADDR_OVL_IX, - OMAP_DSS_BUFADDR_LAYER_IX, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - OMAP_DSS_BUFADDR_FB, -}; -struct dss2_ovl_info { - struct dss2_ovl_cfg cfg; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum omapdss_buffer_addressing_type addressing; - union { - struct { - void *address; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - void *uv_address; - }; - struct { - enum omapdss_buffer_type ba_type; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum omapdss_buffer_type uv_type; - }; - struct { - __u32 ba; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 uv; - }; - }; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct dss2_mgr_info { - __u32 ix; - __u32 default_color; - enum omap_dss_trans_key_type trans_key_type; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 trans_key; - struct omap_dss_cpr_coefs cpr_coefs; - __u8 trans_enabled; - __u8 interlaced; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 alpha_blending; - __u8 cpr_enabled; - __u8 swap_rb; -} __attribute__ ((aligned(4))); -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -enum dsscomp_setup_mode { - DSSCOMP_SETUP_MODE_APPLY = (1 << 0), - DSSCOMP_SETUP_MODE_DISPLAY = (1 << 1), - DSSCOMP_SETUP_MODE_CAPTURE = (1 << 2), -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - DSSCOMP_SETUP_APPLY = DSSCOMP_SETUP_MODE_APPLY, - DSSCOMP_SETUP_DISPLAY = - DSSCOMP_SETUP_MODE_APPLY | DSSCOMP_SETUP_MODE_DISPLAY, - DSSCOMP_SETUP_CAPTURE = -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - DSSCOMP_SETUP_MODE_APPLY | DSSCOMP_SETUP_MODE_CAPTURE, - DSSCOMP_SETUP_DISPLAY_CAPTURE = - DSSCOMP_SETUP_DISPLAY | DSSCOMP_SETUP_CAPTURE, -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -struct dsscomp_setup_mgr_data { - __u32 sync_id; - struct dss2_rect_t win; - enum dsscomp_setup_mode mode; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 num_ovls; - __u16 get_sync_obj; - struct dss2_mgr_info mgr; - struct dss2_ovl_info ovls[0]; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -struct dsscomp_check_ovl_data { - enum dsscomp_setup_mode mode; - struct dss2_mgr_info mgr; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct dss2_ovl_info ovl; -}; -struct dsscomp_setup_dispc_data { - __u32 sync_id; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum dsscomp_setup_mode mode; - __u16 num_ovls; - __u16 num_mgrs; - __u16 get_sync_obj; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct dss2_mgr_info mgrs[3]; - struct dss2_ovl_info ovls[5]; -}; -struct dsscomp_wb_copy_data { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct dss2_ovl_info ovl, wb; -}; -struct dsscomp_display_info { - __u32 ix; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u32 overlays_available; - __u32 overlays_owned; - enum omap_channel channel; - enum omap_dss_display_state state; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 enabled; - struct omap_video_timings timings; - struct s3d_disp_info s3d_info; - struct dss2_mgr_info mgr; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 width_in_mm; - __u16 height_in_mm; - __u32 modedb_len; - struct dsscomp_videomode modedb[]; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -struct dsscomp_setup_display_data { - __u32 ix; - struct dsscomp_videomode mode; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -}; -enum dsscomp_wait_phase { - DSSCOMP_WAIT_PROGRAMMED = 1, - DSSCOMP_WAIT_DISPLAYED, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - DSSCOMP_WAIT_RELEASED, -}; -struct dsscomp_wait_data { - __u32 timeout_us; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - enum dsscomp_wait_phase phase; -}; -enum dsscomp_fbmem_type { - DSSCOMP_FBMEM_TILER2D = 0, -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - DSSCOMP_FBMEM_VRAM = 1, -}; -struct dsscomp_platform_info { - __u8 max_xdecim_2d; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 max_ydecim_2d; - __u8 max_xdecim_1d; - __u8 max_ydecim_1d; - __u32 fclk; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u8 min_width; - __u16 max_width; - __u16 max_height; - __u8 max_downscale; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 integer_scale_ratio_limit; - __u32 tiler1d_slot_size; - enum dsscomp_fbmem_type fbmem_type; -}; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define DSSCIOC_SETUP_MGR _IOW('O', 128, struct dsscomp_setup_mgr_data) -#define DSSCIOC_CHECK_OVL _IOWR('O', 129, struct dsscomp_check_ovl_data) -#define DSSCIOC_WB_COPY _IOW('O', 130, struct dsscomp_wb_copy_data) -#define DSSCIOC_QUERY_DISPLAY _IOWR('O', 131, struct dsscomp_display_info) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define DSSCIOC_WAIT _IOW('O', 132, struct dsscomp_wait_data) -#define DSSCIOC_SETUP_DISPC _IOW('O', 133, struct dsscomp_setup_dispc_data) -#define DSSCIOC_SETUP_DISPLAY _IOW('O', 134, struct dsscomp_setup_display_data) -#define DSSCIOC_QUERY_PLATFORM _IOR('O', 135, struct dsscomp_platform_info) -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#endif diff --git a/kernel-headers/video/omap_hwc.h b/kernel-headers/video/omap_hwc.h deleted file mode 100755 index b461bfb..0000000 --- a/kernel-headers/video/omap_hwc.h +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** - **************************************************************************** - *** - *** This header was automatically generated from a Linux kernel header - *** of the same name, to make information necessary for userspace to - *** call into the kernel available to libc. It contains only constants, - *** structures, and macros generated from the original header, and thus, - *** contains no copyrightable information. - *** - *** To edit the content of this header, modify the corresponding - *** source file (e.g. under external/kernel-headers/original/) then - *** run bionic/libc/kernel/tools/update_all.py - *** - *** Any manual change here will be lost the next time this script will - *** be run. You've been warned! - *** - **************************************************************************** - ****************************************************************************/ -#ifndef _LINUX_OMAP_HWC_H -#define _LINUX_OMAP_HWC_H -#define HWC_BLT_DESC_FLAG 0x80000000 -#define HWC_BLT_DESC_FB 0x40000000 -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -#define HWC_BLT_DESC_FB_FN(ovlno) (HWC_BLT_DESC_FLAG | HWC_BLT_DESC_FB | (ovlno)) -#define HWC_BLT_FLAG_USE_FB (1 << 0) -struct rgz_blt_entry { - struct bvbltparams bp; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct bvsurfgeom dstgeom; - struct bvsurfgeom src1geom; - struct bvbuffdesc src1desc; - struct bvsurfgeom src2geom; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct bvbuffdesc src2desc; -}; -struct omap_hwc_blit_data { - __u16 rgz_flags; -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - __u16 rgz_items; - struct rgz_blt_entry rgz_blts[0]; -}; -struct omap_hwc_data { -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ - struct dsscomp_setup_dispc_data dsscomp_data; - struct omap_hwc_blit_data blit_data; -}; -#endif -/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ -- cgit v1.1