// This prevents conflict from the Exynos HAL from the original videodev2.h
/*
#ifndef v4l2_fourcc
-#include <videodev2.h>
+#include <linux/videodev2.h>
#endif
*/
+++ /dev/null
-/****************************************************************************
- ****************************************************************************
- ***
- *** 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 ___SAMSUNG_DECON_H__
-#define ___SAMSUNG_DECON_H__
-#define S3C_FB_MAX_WIN (7)
-#define MAX_DECON_WIN (7)
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define DECON_WIN_UPDATE_IDX MAX_DECON_WIN
-#define MAX_BUF_PLANE_CNT (3)
-typedef unsigned int u32;
-#if defined(USES_ARCH_ARM64) || defined(USES_DECON_64BIT_ADDRESS)
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-typedef uint64_t dma_addr_t;
-#else
-typedef uint32_t dma_addr_t;
-#endif
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct decon_win_rect {
- int x;
- int y;
- u32 w;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- u32 h;
-};
-struct decon_rect {
- int left;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- int top;
- int right;
- int bottom;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct s3c_fb_user_window {
- int x;
- int y;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct s3c_fb_user_plane_alpha {
- int channel;
- unsigned char red;
- unsigned char green;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- unsigned char blue;
-};
-struct s3c_fb_user_chroma {
- int enabled;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- unsigned char red;
- unsigned char green;
- unsigned char blue;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct s3c_fb_user_ion_client {
- int fd[MAX_BUF_PLANE_CNT];
- int offset;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-enum decon_pixel_format {
- DECON_PIXEL_FORMAT_ARGB_8888 = 0,
- DECON_PIXEL_FORMAT_ABGR_8888,
- DECON_PIXEL_FORMAT_RGBA_8888,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_BGRA_8888,
- DECON_PIXEL_FORMAT_XRGB_8888,
- DECON_PIXEL_FORMAT_XBGR_8888,
- DECON_PIXEL_FORMAT_RGBX_8888,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_BGRX_8888,
- DECON_PIXEL_FORMAT_RGBA_5551,
- DECON_PIXEL_FORMAT_RGB_565,
- DECON_PIXEL_FORMAT_NV16,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_NV61,
- DECON_PIXEL_FORMAT_YVU422_3P,
- DECON_PIXEL_FORMAT_NV12,
- DECON_PIXEL_FORMAT_NV21,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_NV12M,
- DECON_PIXEL_FORMAT_NV21M,
- DECON_PIXEL_FORMAT_YUV420,
- DECON_PIXEL_FORMAT_YVU420,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_YUV420M,
- DECON_PIXEL_FORMAT_YVU420M,
- DECON_PIXEL_FORMAT_NV12N,
- DECON_PIXEL_FORMAT_NV12N_10B,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_MAX,
-};
-enum decon_blending {
- DECON_BLENDING_NONE = 0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_BLENDING_PREMULT = 1,
- DECON_BLENDING_COVERAGE = 2,
- DECON_BLENDING_MAX = 3,
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-enum otf_status {
- S3C_FB_DMA,
- S3C_FB_LOCAL,
- S3C_FB_STOP_DMA,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- S3C_FB_READY_TO_LOCAL,
-};
-enum vpp_rotate {
- VPP_ROT_NORMAL = 0x0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- VPP_ROT_XFLIP,
- VPP_ROT_YFLIP,
- VPP_ROT_180,
- VPP_ROT_90,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- VPP_ROT_90_XFLIP,
- VPP_ROT_90_YFLIP,
- VPP_ROT_270,
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-enum vpp_csc_eq {
- BT_601_NARROW = 0x0,
- BT_601_WIDE,
- BT_709_NARROW,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- BT_709_WIDE,
-};
-enum decon_idma_type {
- IDMA_G0 = 0x0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- IDMA_G1,
- IDMA_VG0,
- IDMA_VG1,
- IDMA_VGR0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- IDMA_VGR1,
- IDMA_G2,
- IDMA_G3,
- MAX_DECON_DMA_TYPE
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-};
-struct vpp_params {
- dma_addr_t addr[MAX_BUF_PLANE_CNT];
- enum vpp_rotate rot;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- enum vpp_csc_eq eq_mode;
-};
-struct decon_frame {
- int x;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- int y;
- u32 w;
- u32 h;
- u32 f_w;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- u32 f_h;
-};
-struct decon_win_config {
- enum {
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_WIN_STATE_DISABLED = 0,
- DECON_WIN_STATE_COLOR,
- DECON_WIN_STATE_BUFFER,
- DECON_WIN_STATE_UPDATE,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- } state;
- union {
- __u32 color;
- struct {
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- int fd_idma[3];
- int fence_fd;
- int plane_alpha;
- enum decon_blending blending;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- enum decon_idma_type idma_type;
- enum decon_pixel_format format;
- struct vpp_params vpp_parm;
- struct decon_win_rect block_area;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- struct decon_win_rect transparent_area;
- struct decon_win_rect covered_opaque_area;
- struct decon_frame src;
- };
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- };
- struct decon_frame dst;
- bool protection;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct decon_win_config_data {
- int fence;
- int fd_odma;
- struct decon_win_config config[MAX_DECON_WIN + 1];
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-};
-struct decon_dual_display_blank_data {
- enum {
- DECON_PRIMARY_DISPLAY = 0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_SECONDARY_DISPLAY,
- } display_type;
- int blank;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-enum disp_pwr_mode {
- DECON_POWER_MODE_OFF = 0,
- DECON_POWER_MODE_DOZE,
- DECON_POWER_MODE_NORMAL,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_POWER_MODE_DOZE_SUSPEND,
-};
-#define S3CFB_WIN_POSITION _IOW('F', 203, struct s3c_fb_user_window)
-#define S3CFB_WIN_SET_PLANE_ALPHA _IOW('F', 204, struct s3c_fb_user_plane_alpha)
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define S3CFB_WIN_SET_CHROMA _IOW('F', 205, struct s3c_fb_user_chroma)
-#define S3CFB_SET_VSYNC_INT _IOW('F', 206, __u32)
-#define S3CFB_GET_ION_USER_HANDLE _IOWR('F', 208, struct s3c_fb_user_ion_client)
-#define S3CFB_WIN_CONFIG _IOW('F', 209, struct decon_win_config_data)
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define S3CFB_DUAL_DISPLAY_BLANK _IOW('F', 300, struct decon_dual_display_blank_data)
-#define S3CFB_WIN_PSR_EXIT _IOW('F', 210, int)
-#define EXYNOS_GET_HDMI_CONFIG _IOW('F', 220, struct exynos_hdmi_data)
-#define EXYNOS_SET_HDMI_CONFIG _IOW('F', 221, struct exynos_hdmi_data)
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define S3CFB_POWER_MODE _IOW('F', 223, __u32)
-#endif
+++ /dev/null
-/****************************************************************************
- ****************************************************************************
- ***
- *** 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 ___SAMSUNG_DECON_H__
-#define ___SAMSUNG_DECON_H__
-#define S3C_FB_MAX_WIN (8)
-#define MAX_DECON_WIN (8)
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define DECON_WIN_UPDATE_IDX MAX_DECON_WIN
-#define MAX_BUF_PLANE_CNT (3)
-typedef unsigned int u32;
-#ifdef USES_ARCH_ARM64
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-typedef uint64_t dma_addr_t;
-#else
-typedef uint32_t dma_addr_t;
-#endif
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct decon_win_rect {
- int x;
- int y;
- u32 w;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- u32 h;
-};
-struct decon_rect {
- int left;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- int top;
- int right;
- int bottom;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct s3c_fb_user_window {
- int x;
- int y;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct s3c_fb_user_plane_alpha {
- int channel;
- unsigned char red;
- unsigned char green;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- unsigned char blue;
-};
-struct s3c_fb_user_chroma {
- int enabled;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- unsigned char red;
- unsigned char green;
- unsigned char blue;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-struct s3c_fb_user_ion_client {
- int fd[MAX_BUF_PLANE_CNT];
- int offset;
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-enum decon_pixel_format {
- DECON_PIXEL_FORMAT_ARGB_8888 = 0,
- DECON_PIXEL_FORMAT_ABGR_8888,
- DECON_PIXEL_FORMAT_RGBA_8888,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_BGRA_8888,
- DECON_PIXEL_FORMAT_XRGB_8888,
- DECON_PIXEL_FORMAT_XBGR_8888,
- DECON_PIXEL_FORMAT_RGBX_8888,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_BGRX_8888,
- DECON_PIXEL_FORMAT_RGBA_5551,
- DECON_PIXEL_FORMAT_RGB_565,
- DECON_PIXEL_FORMAT_NV16,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_NV61,
- DECON_PIXEL_FORMAT_YVU422_3P,
- DECON_PIXEL_FORMAT_NV12,
- DECON_PIXEL_FORMAT_NV21,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_NV12M,
- DECON_PIXEL_FORMAT_NV21M,
- DECON_PIXEL_FORMAT_YUV420,
- DECON_PIXEL_FORMAT_YVU420,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_YUV420M,
- DECON_PIXEL_FORMAT_YVU420M,
- DECON_PIXEL_FORMAT_NV12N,
- DECON_PIXEL_FORMAT_NV12N_10B,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_PIXEL_FORMAT_MAX,
-};
-enum decon_blending {
- DECON_BLENDING_NONE = 0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_BLENDING_PREMULT = 1,
- DECON_BLENDING_COVERAGE = 2,
- DECON_BLENDING_MAX = 3,
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-enum otf_status {
- S3C_FB_DMA,
- S3C_FB_LOCAL,
- S3C_FB_STOP_DMA,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- S3C_FB_READY_TO_LOCAL,
-};
-enum vpp_rotate {
- VPP_ROT_NORMAL = 0x0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- VPP_ROT_XFLIP,
- VPP_ROT_YFLIP,
- VPP_ROT_180,
- VPP_ROT_90,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- VPP_ROT_90_XFLIP,
- VPP_ROT_90_YFLIP,
- VPP_ROT_270,
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-enum vpp_csc_eq {
- BT_601_NARROW = 0x0,
- BT_601_WIDE,
- BT_709_NARROW,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- BT_709_WIDE,
-};
-enum decon_idma_type {
- IDMA_G0 = 0x0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- IDMA_G1,
- IDMA_VG0,
- IDMA_VG1,
- IDMA_G2,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- IDMA_G3,
- IDMA_VGR0,
- IDMA_VGR1,
- ODMA_WB,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- MAX_DECON_DMA_TYPE
-};
-struct vpp_params {
- dma_addr_t addr[MAX_BUF_PLANE_CNT];
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- enum vpp_rotate rot;
- enum vpp_csc_eq eq_mode;
-};
-struct decon_frame {
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- int x;
- int y;
- u32 w;
- u32 h;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- u32 f_w;
- u32 f_h;
-};
-struct decon_win_config {
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- enum {
- DECON_WIN_STATE_DISABLED = 0,
- DECON_WIN_STATE_COLOR,
- DECON_WIN_STATE_BUFFER,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_WIN_STATE_UPDATE,
- } state;
- union {
- __u32 color;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- struct {
- int fd_idma[3];
- int fence_fd;
- int plane_alpha;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- enum decon_blending blending;
- enum decon_idma_type idma_type;
- enum decon_pixel_format format;
- struct vpp_params vpp_parm;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- struct decon_win_rect block_area;
- struct decon_win_rect transparent_area;
- struct decon_win_rect covered_opaque_area;
- struct decon_frame src;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- };
- };
- struct decon_frame dst;
- bool protection;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- bool compression;
-};
-struct decon_win_config_data {
- int fence;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- int fd_odma;
- struct decon_win_config config[MAX_DECON_WIN + 1];
-};
-struct decon_dual_display_blank_data {
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- enum {
- DECON_PRIMARY_DISPLAY = 0,
- DECON_SECONDARY_DISPLAY,
- } display_type;
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- int blank;
-};
-enum disp_pwr_mode {
- DECON_POWER_MODE_OFF = 0,
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
- DECON_POWER_MODE_DOZE,
- DECON_POWER_MODE_NORMAL,
- DECON_POWER_MODE_DOZE_SUSPEND,
-};
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define S3CFB_WIN_POSITION _IOW('F', 203, struct s3c_fb_user_window)
-#define S3CFB_WIN_SET_PLANE_ALPHA _IOW('F', 204, struct s3c_fb_user_plane_alpha)
-#define S3CFB_WIN_SET_CHROMA _IOW('F', 205, struct s3c_fb_user_chroma)
-#define S3CFB_SET_VSYNC_INT _IOW('F', 206, __u32)
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define S3CFB_GET_ION_USER_HANDLE _IOWR('F', 208, struct s3c_fb_user_ion_client)
-#define S3CFB_WIN_CONFIG _IOW('F', 209, struct decon_win_config_data)
-#define S3CFB_WIN_PSR_EXIT _IOW('F', 210, int)
-#define S3CFB_DUAL_DISPLAY_BLANK _IOW('F', 300, struct decon_dual_display_blank_data)
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
-#define EXYNOS_GET_HDMI_CONFIG _IOW('F', 220, struct exynos_hdmi_data)
-#define EXYNOS_SET_HDMI_CONFIG _IOW('F', 221, struct exynos_hdmi_data)
-#define S3CFB_POWER_MODE _IOW('F', 223, __u32)
-#endif
-/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
#ifndef __EXYNOS_BLENDER_H__
#define __EXYNOS_BLENDER_H__
-#include "videodev2.h"
+#include <linux/videodev2.h>
#define BL_MAX_PLANES 3
#define _EXYNOS_SCALER_H_
-#include <videodev2.h>
-#include <videodev2_exynos_media.h>
+#include <linux/videodev2.h>
+#include <linux/videodev2_exynos_media.h>
#include <stdbool.h>
#include "exynos_format.h"
/* V4L2 */
#include <stdbool.h>
-#include "videodev2.h" /* vendor specific videodev2.h */
+#include "linux/videodev2.h" /* vendor specific videodev2.h */
/*! \ingroup exynos_v4l2 */
int exynos_v4l2_open(const char *filename, int oflag, ...);
int exynos_v4l2_s_ext_ctrl(int fd, struct v4l2_ext_controls *ctrl);
/* V4L2_SUBDEV */
-#include <v4l2-subdev.h>
+#include <linux/v4l2-subdev.h>
/*! \ingroup exynos_v4l2 */
int exynos_subdev_open(const char *filename, int oflag, ...);
int exynos_subdev_enum_mbus_code(int fd, struct v4l2_subdev_mbus_code_enum *mbus_code_enum);
/* MEDIA CONTORLLER */
-#include <media.h>
+#include <linux/media.h>
/*! media_link
* \ingroup exynos_v4l2
#ifndef _S5P_FIMC_H_
#define _S5P_FIMC_H_
-#include "videodev2.h"
-#include "videodev2_exynos_media.h"
+#include <linux/videodev2.h>
+#include <linux/videodev2_exynos_media.h>
/*
* G E N E R A L S
* V 4 L 2 F I M C E X T E N S I O N S
*
*/
-#define V4L2_PIX_FMT_YVYU v4l2_fourcc('Y', 'V', 'Y', 'U')
-
/* FOURCC for FIMC specific */
#define V4L2_PIX_FMT_NV12X v4l2_fourcc('N', '1', '2', 'X')
#define V4L2_PIX_FMT_NV21X v4l2_fourcc('N', '2', '1', 'X')
-#define V4L2_PIX_FMT_VYUY v4l2_fourcc('V', 'Y', 'U', 'Y')
-#define V4L2_PIX_FMT_NV16 v4l2_fourcc('N', 'V', '1', '6')
-#define V4L2_PIX_FMT_NV61 v4l2_fourcc('N', 'V', '6', '1')
#define V4L2_PIX_FMT_NV16X v4l2_fourcc('N', '1', '6', 'X')
#define V4L2_PIX_FMT_NV61X v4l2_fourcc('N', '6', '1', 'X')
#include <linux/fb.h>
-#include "videodev2.h"
-#include "videodev2_exynos_media.h"
+#include <linux/videodev2.h>
+#include <linux/videodev2_exynos_media.h>
#ifdef __cplusplus
extern "C" {
csc.c
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/../libexynosutils
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
LOCAL_CFLAGS :=
LOCAL_CFLAGS += -DLOG_TAG=\"display\"
LOCAL_CFLAGS += -DHLOG_CODE=1
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libhwcmodule \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libhwcutilsmodule
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := \
ExynosDisplay.cpp \
ExynosOverlayDisplay.cpp
LOCAL_SRC_FILES += exynos_format_v4l2.c
LOCAL_C_INCLUDES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include
+LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
include $(TOP)/hardware/samsung_slsi/exynos/BoardConfigCFlags.mk
include $(BUILD_SHARED_LIBRARY)
#include "exynos_format.h"
#include "s5p_fimc_v4l2.h"
#include <utils/Log.h>
-#include "videodev2.h"
-#include "videodev2_exynos_media.h"
int HAL_PIXEL_FORMAT_2_V4L2_PIX(
int hal_pixel_format)
FimgExynos5.cpp
LOCAL_C_INCLUDES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include \
hardware/samsung_slsi/$(TARGET_SOC)/include \
hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SHARED_LIBRARIES:= liblog libutils libbinder
LOCAL_MODULE:= libfimg
FimgExynos5.cpp
LOCAL_C_INCLUDES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include \
hardware/samsung_slsi/$(TARGET_SOC)/include \
hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include
-ifeq ($(filter 3.18, $(TARGET_LINUX_KERNEL_VERSION)), 3.18)
-LOCAL_C_INCLUDES += $(TOP)/hardware/samsung_slsi/exynos/kernel-3.18-headers
-endif
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_SHARED_LIBRARIES:= liblog libutils libbinder
#include "FimgApi.h"
#ifdef FIMG2D_USE_M2M1SHOT2
-#include "videodev2.h"
+#include <linux/videodev2.h>
#include <linux/m2m1shot2.h>
/* include freq leveling and compromise table */
LOCAL_SHARED_LIBRARIES := liblog libutils libcutils libexynosutils libexynosv4l2
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi/exynos/include \
$(TOP)/hardware/samsung_slsi/exynos/libexynosutils
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := exynos_blender.cpp exynos_blender_obj.cpp libg2d.cpp
LOCAL_MODULE_TAGS := eng
#include "exynos_blender.h"
#include "exynos_blender_obj.h"
-#include "videodev2_exynos_media.h"
+#include <linux/videodev2_exynos_media.h>
#include "exynos_v4l2.h"
#include "libg2d_obj.h"
# LOCAL_STATIC_LIBRARIES := libsecurepath
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi/exynos5/include \
$(TOP)/hardware/samsung_slsi/exynos/libexynosutils \
$(TOP)/hardware/samsung_slsi/exynos/libmpp
+LOCAL_ADDITIONAL_DEPENDENCIES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := \
libgscaler_obj.cpp \
libgscaler.cpp
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <videodev2.h>
+#include <linux/videodev2.h>
#include <fcntl.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <system/graphics.h>
-#include <videodev2_exynos_media.h>
+#include <linux/videodev2_exynos_media.h>
#include "exynos_gscaler.h"
#include "exynos_format.h"
#include "ExynosHWC.h"
#include "ExynosDisplay.h"
-#include "../../exynos/kernel-3.10-headers/videodev2.h"
-#include "../../exynos/kernel-3.10-headers/v4l2-dv-timings.h"
+#include <linux/videodev2.h>
+#include <linux/v4l2-dv-timings.h>
#define NUM_VIRT_OVER_HDMI 5
#define MAX_HDMI_VIDEO_LAYERS 1
-#include "../../exynos/kernel-3.10-headers/videodev2.h"
-#include "../../exynos/kernel-3.10-headers/v4l2-dv-timings.h"
+#include <linux/videodev2.h>
+#include <linux/v4l2-dv-timings.h>
#include "decon_tv.h"
const struct v4l2_dv_timings dv_timings[] = {
libmpp
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(LOCAL_PATH)/../include \
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libdisplay
endif
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := \
ExynosExternalDisplay.cpp
LOCAL_CFLAGS += -DHLOG_CODE=2
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi/exynos/libmpp \
$(TOP)/system/core/libsync/include
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := \
ExynosExternalDisplay.cpp
-#include "../../exynos/kernel-3.10-headers/videodev2.h"
-#include "../../exynos/kernel-3.10-headers/v4l2-dv-timings.h"
+#include <linux/videodev2.h>
+#include <linux/v4l2-dv-timings.h>
const struct v4l2_dv_timings dv_timings[] = {
V4L2_DV_BT_CEA_720X480P59_94,
LOCAL_CFLAGS += -DHLOG_CODE=0
LOCAL_C_INCLUDES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(LOCAL_PATH)/../include \
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libdisplay
endif
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := ExynosHWC.cpp
LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
#include "s5p_tvout_v4l2.h"
#include "ExynosHWCModule.h"
#include "ExynosRect.h"
-#include "videodev2.h"
+#include <linux/videodev2.h>
#ifdef USE_FB_PHY_LINEAR
const size_t NUM_HW_WIN_FB_PHY = 5;
*/
#include "ExynosHWCService.h"
#include "exynos_v4l2.h"
-#include "videodev2_exynos_media.h"
+#include <linux/videodev2_exynos_media.h>
#include "ExynosOverlayDisplay.h"
#include "ExynosExternalDisplay.h"
#ifdef USES_VPP
#include "ExynosHWCModule.h"
#include "s5p_tvout_v4l2.h"
#include "ExynosRect.h"
-#include "videodev2.h"
+#include <linux/videodev2.h>
#ifdef __GNUC__
LOCAL_CFLAGS += -DLOG_TAG=\"hwcutils\"
LOCAL_CFLAGS += -DHLOG_CODE=4
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(LOCAL_PATH)/../include \
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libdisplay
endif
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
ifeq ($(BOARD_HDMI_INCAPABLE), true)
LOCAL_C_INCLUDES += $(TOP)/hardware/samsung_slsi/exynos/libhdmi_dummy
else
LOCAL_SHARED_LIBRARIES := liblog libutils libcutils libexynosutils libexynosv4l2
LOCAL_C_INCLUDES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi/exynos/include \
$(TOP)/hardware/samsung_slsi/exynos/libexynosutils \
$(TOP)/hardware/samsung_slsi/exynos4/include \
$(TOP)/hardware/samsung_slsi/exynos5/include
+LOCAL_ADDITIONAL_DEPENDENCIES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := MppFactory.cpp
LOCAL_MODULE_TAGS := eng
LOCAL_MODULE := libmpp
#include <cutils/log.h>
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <videodev2.h>
+#include <linux/videodev2.h>
#include <fcntl.h>
#include <stdbool.h>
#include <string.h>
LOCAL_SHARED_LIBRARIES := liblog libutils libcutils libexynosutils libexynosv4l2
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi/exynos/include \
$(TOP)/hardware/samsung_slsi/exynos/libexynosutils
+LOCAL_ADDITIONAL_DEPENDENCIES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := libscaler.cpp libscaler-v4l2.cpp libscalerblend-v4l2.cpp libscaler-m2m1shot.cpp libscaler-swscaler.cpp
ifeq ($(BOARD_USES_SCALER_M2M1SHOT), true)
LOCAL_CFLAGS += -DSCALER_USE_M2M1SHOT
exynos_mc.c
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi/exynos/libexynosutils
+LOCAL_ADDITIONAL_DEPENDENCIES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SHARED_LIBRARIES := \
liblog \
libutils \
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
-#include <media.h>
+#include <linux/media.h>
#include <linux/kdev_t.h>
#include <linux/types.h>
enc/ExynosVideoEncoder.c
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/include \
$(TOP)/hardware/samsung_slsi/exynos/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(TOP)/system/core/libion/include
+LOCAL_ADDITIONAL_DEPENDENCIES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
ifeq ($(BOARD_USE_KHRONOS_OMX_HEADER), true)
LOCAL_C_INCLUDES += $(TOP)/hardware/samsung_slsi/openmax/include/khronos
else
#include <sys/poll.h>
-#include "videodev2_exynos_media.h"
+#include <linux/videodev2_exynos_media.h>
#ifdef USE_EXYNOS_MEDIA_EXT
-#include "videodev2_exynos_media_ext.h"
+#include <linux/videodev2_exynos_media_ext.h>
#endif
#ifdef USE_MFC_MEDIA
-#include "exynos_mfc_media.h"
+#include <linux/exynos_mfc_media.h>
#endif
#include <ion/ion.h>
#include <sys/poll.h>
-#include "videodev2_exynos_media.h"
+#include <linux/videodev2_exynos_media.h>
#ifdef USE_EXYNOS_MEDIA_EXT
-#include "videodev2_exynos_media_ext.h"
+#include <linux/videodev2_exynos_media_ext.h>
#endif
#ifdef USE_MFC_MEDIA
-#include "exynos_mfc_media.h"
+#include <linux/exynos_mfc_media.h>
#endif
#include <ion/ion.h>
endif
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/include \
$(TOP)/hardware/samsung_slsi/$(TARGET_BOARD_PLATFORM)/include \
$(LOCAL_PATH)/../include \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libhwcutilsmodule \
$(TOP)/hardware/samsung_slsi/$(TARGET_SOC)/libdisplaymodule
+LOCAL_ADDITIONAL_DEPENDENCIES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
ifeq ($(BOARD_HDMI_INCAPABLE), true)
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../libhdmi_dummy
else
$(TOP)/hardware/samsung_slsi/exynos/libmpp \
$(TOP)/system/core/libsync/include
-ifeq ($(filter 3.10, $(TARGET_LINUX_KERNEL_VERSION)), 3.10)
-LOCAL_C_INCLUDES += $(TOP)/hardware/samsung_slsi/exynos/kernel-3.10-headers
-else
-ifeq ($(filter 3.18, $(TARGET_LINUX_KERNEL_VERSION)), 3.18)
-LOCAL_C_INCLUDES += $(TOP)/hardware/samsung_slsi/exynos/kernel-3.18-headers
-else
-LOCAL_C_INCLUDES += $(TOP)/hardware/samsung_slsi/exynos/kernel-3.4-headers
-endif
-endif
-
LOCAL_SRC_FILES := \
ExynosExternalDisplay.cpp dv_timings.c
LOCAL_CFLAGS += -DLOG_TAG=\"virtualdisplay\"
LOCAL_C_INCLUDES := \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include \
$(LOCAL_PATH)/../include \
$(LOCAL_PATH)/../libhwcutils \
$(LOCAL_PATH)/../libvppdisplay \
$(TOP)/hardware/samsung_slsi/exynos/libmpp \
$(TOP)/system/core/libsync/include
+LOCAL_ADDITIONAL_DEPENDENCIES += \
+ $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
+
LOCAL_SRC_FILES := \
ExynosVirtualDisplay.cpp
#include "ExynosHWC.h"
#include "ExynosDisplay.h"
-#include "../../exynos/kernel-3.10-headers/videodev2.h"
+#include <linux/videodev2.h>
#ifdef USES_VDS_BGRA8888
#include "ExynosMPPModule.h"
#endif