• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef DRM_FOURCC_GS101_H
20 #define DRM_FOURCC_GS101_H
21 #include <drm/drm_fourcc.h>
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 #define DRM_FORMAT_Y010 fourcc_code('Y', '0', '1', '0')
26 #define DRM_FORMAT_MOD_PROTECTION fourcc_mod_code(NONE, (1ULL << 51))
27 #define DRM_FORMAT_MOD_SAMSUNG_YUV_8_2_SPLIT fourcc_mod_code(SAMSUNG, 3)
28 #define DRM_FORMAT_MOD_SAMSUNG_COLORMAP fourcc_mod_code(SAMSUNG, 4)
29 #define SBWC_IDENTIFIER (1 << 4)
30 #define SBWC_FORMAT_MOD_BLOCK_SIZE_MASK (0xfULL << 5)
31 #define SBWC_BLOCK_SIZE_SET(blk_size) (((blk_size) << 5) & SBWC_FORMAT_MOD_BLOCK_SIZE_MASK)
32 #define SBWC_BLOCK_SIZE_GET(modifier) (((modifier) & SBWC_FORMAT_MOD_BLOCK_SIZE_MASK) >> 5)
33 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x2 (2ULL)
34 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x3 (3ULL)
35 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x4 (4ULL)
36 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x5 (5ULL)
37 #define SBWC_FORMAT_MOD_BLOCK_SIZE_32x6 (6ULL)
38 #define SBWC_FORMAT_MOD_LOSSY (1 << 12)
39 #define DRM_FORMAT_MOD_SAMSUNG_SBWC(blk_size) fourcc_mod_code(SAMSUNG, (SBWC_BLOCK_SIZE_SET(blk_size) | SBWC_IDENTIFIER))
40 #define AFBC_FORMAT_MOD_SOURCE_MASK (0xfULL << 52)
41 #define AFBC_FORMAT_MOD_SOURCE_GPU (1ULL << 52)
42 #define AFBC_FORMAT_MOD_SOURCE_G2D (2ULL << 52)
43 #define AFBC_BLOCK_SIZE_GET(modifier) (modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_MASK)
44 #ifdef __cplusplus
45 }
46 #endif
47 #endif
48