Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
gsc-regs.h File Reference

Go to the source code of this file.

Macros

#define GSC_ENABLE   0x00
 
#define GSC_ENABLE_OP_STATUS   (1 << 2)
 
#define GSC_ENABLE_SFR_UPDATE   (1 << 1)
 
#define GSC_ENABLE_ON   (1 << 0)
 
#define GSC_SW_RESET   0x04
 
#define GSC_SW_RESET_SRESET   (1 << 0)
 
#define GSC_IRQ   0x08
 
#define GSC_IRQ_STATUS_OR_IRQ   (1 << 17)
 
#define GSC_IRQ_STATUS_FRM_DONE_IRQ   (1 << 16)
 
#define GSC_IRQ_FRMDONE_MASK   (1 << 1)
 
#define GSC_IRQ_ENABLE   (1 << 0)
 
#define GSC_IN_CON   0x10
 
#define GSC_IN_ROT_MASK   (7 << 16)
 
#define GSC_IN_ROT_270   (7 << 16)
 
#define GSC_IN_ROT_90_YFLIP   (6 << 16)
 
#define GSC_IN_ROT_90_XFLIP   (5 << 16)
 
#define GSC_IN_ROT_90   (4 << 16)
 
#define GSC_IN_ROT_180   (3 << 16)
 
#define GSC_IN_ROT_YFLIP   (2 << 16)
 
#define GSC_IN_ROT_XFLIP   (1 << 16)
 
#define GSC_IN_RGB_TYPE_MASK   (3 << 14)
 
#define GSC_IN_RGB_HD_NARROW   (3 << 14)
 
#define GSC_IN_RGB_HD_WIDE   (2 << 14)
 
#define GSC_IN_RGB_SD_NARROW   (1 << 14)
 
#define GSC_IN_RGB_SD_WIDE   (0 << 14)
 
#define GSC_IN_YUV422_1P_ORDER_MASK   (1 << 13)
 
#define GSC_IN_YUV422_1P_ORDER_LSB_Y   (0 << 13)
 
#define GSC_IN_YUV422_1P_OEDER_LSB_C   (1 << 13)
 
#define GSC_IN_CHROMA_ORDER_MASK   (1 << 12)
 
#define GSC_IN_CHROMA_ORDER_CBCR   (0 << 12)
 
#define GSC_IN_CHROMA_ORDER_CRCB   (1 << 12)
 
#define GSC_IN_FORMAT_MASK   (7 << 8)
 
#define GSC_IN_XRGB8888   (0 << 8)
 
#define GSC_IN_RGB565   (1 << 8)
 
#define GSC_IN_YUV420_2P   (2 << 8)
 
#define GSC_IN_YUV420_3P   (3 << 8)
 
#define GSC_IN_YUV422_1P   (4 << 8)
 
#define GSC_IN_YUV422_2P   (5 << 8)
 
#define GSC_IN_YUV422_3P   (6 << 8)
 
#define GSC_IN_TILE_TYPE_MASK   (1 << 4)
 
#define GSC_IN_TILE_C_16x8   (0 << 4)
 
#define GSC_IN_TILE_MODE   (1 << 3)
 
#define GSC_IN_LOCAL_SEL_MASK   (3 << 1)
 
#define GSC_IN_PATH_MASK   (1 << 0)
 
#define GSC_IN_PATH_MEMORY   (0 << 0)
 
#define GSC_SRCIMG_SIZE   0x14
 
#define GSC_SRCIMG_HEIGHT(x)   ((x) << 16)
 
#define GSC_SRCIMG_WIDTH(x)   ((x) << 0)
 
#define GSC_SRCIMG_OFFSET   0x18
 
#define GSC_SRCIMG_OFFSET_Y(x)   ((x) << 16)
 
#define GSC_SRCIMG_OFFSET_X(x)   ((x) << 0)
 
#define GSC_CROPPED_SIZE   0x1c
 
#define GSC_CROPPED_HEIGHT(x)   ((x) << 16)
 
#define GSC_CROPPED_WIDTH(x)   ((x) << 0)
 
#define GSC_OUT_CON   0x20
 
#define GSC_OUT_GLOBAL_ALPHA_MASK   (0xff << 24)
 
#define GSC_OUT_GLOBAL_ALPHA(x)   ((x) << 24)
 
#define GSC_OUT_RGB_TYPE_MASK   (3 << 10)
 
#define GSC_OUT_RGB_HD_WIDE   (3 << 10)
 
#define GSC_OUT_RGB_HD_NARROW   (2 << 10)
 
#define GSC_OUT_RGB_SD_WIDE   (1 << 10)
 
#define GSC_OUT_RGB_SD_NARROW   (0 << 10)
 
#define GSC_OUT_YUV422_1P_ORDER_MASK   (1 << 9)
 
#define GSC_OUT_YUV422_1P_ORDER_LSB_Y   (0 << 9)
 
#define GSC_OUT_YUV422_1P_OEDER_LSB_C   (1 << 9)
 
#define GSC_OUT_CHROMA_ORDER_MASK   (1 << 8)
 
#define GSC_OUT_CHROMA_ORDER_CBCR   (0 << 8)
 
#define GSC_OUT_CHROMA_ORDER_CRCB   (1 << 8)
 
#define GSC_OUT_FORMAT_MASK   (7 << 4)
 
#define GSC_OUT_XRGB8888   (0 << 4)
 
#define GSC_OUT_RGB565   (1 << 4)
 
#define GSC_OUT_YUV420_2P   (2 << 4)
 
#define GSC_OUT_YUV420_3P   (3 << 4)
 
#define GSC_OUT_YUV422_1P   (4 << 4)
 
#define GSC_OUT_YUV422_2P   (5 << 4)
 
#define GSC_OUT_YUV444   (7 << 4)
 
#define GSC_OUT_TILE_TYPE_MASK   (1 << 2)
 
#define GSC_OUT_TILE_C_16x8   (0 << 2)
 
#define GSC_OUT_TILE_MODE   (1 << 1)
 
#define GSC_OUT_PATH_MASK   (1 << 0)
 
#define GSC_OUT_PATH_LOCAL   (1 << 0)
 
#define GSC_OUT_PATH_MEMORY   (0 << 0)
 
#define GSC_SCALED_SIZE   0x24
 
#define GSC_SCALED_HEIGHT(x)   ((x) << 16)
 
#define GSC_SCALED_WIDTH(x)   ((x) << 0)
 
#define GSC_PRE_SCALE_RATIO   0x28
 
#define GSC_PRESC_SHFACTOR(x)   ((x) << 28)
 
#define GSC_PRESC_V_RATIO(x)   ((x) << 16)
 
#define GSC_PRESC_H_RATIO(x)   ((x) << 0)
 
#define GSC_MAIN_H_RATIO   0x2c
 
#define GSC_MAIN_H_RATIO_VALUE(x)   ((x) << 0)
 
#define GSC_MAIN_V_RATIO   0x30
 
#define GSC_MAIN_V_RATIO_VALUE(x)   ((x) << 0)
 
#define GSC_DSTIMG_SIZE   0x40
 
#define GSC_DSTIMG_HEIGHT(x)   ((x) << 16)
 
#define GSC_DSTIMG_WIDTH(x)   ((x) << 0)
 
#define GSC_DSTIMG_OFFSET   0x44
 
#define GSC_DSTIMG_OFFSET_Y(x)   ((x) << 16)
 
#define GSC_DSTIMG_OFFSET_X(x)   ((x) << 0)
 
#define GSC_IN_BASE_ADDR_Y_MASK   0x4c
 
#define GSC_IN_BASE_ADDR_Y(n)   (0x50 + (n) * 0x4)
 
#define GSC_IN_BASE_ADDR_CB_MASK   0x7c
 
#define GSC_IN_BASE_ADDR_CB(n)   (0x80 + (n) * 0x4)
 
#define GSC_IN_BASE_ADDR_CR_MASK   0xac
 
#define GSC_IN_BASE_ADDR_CR(n)   (0xb0 + (n) * 0x4)
 
#define GSC_OUT_BASE_ADDR_Y_MASK   0x10c
 
#define GSC_OUT_BASE_ADDR_Y(n)   (0x110 + (n) * 0x4)
 
#define GSC_OUT_BASE_ADDR_CB_MASK   0x15c
 
#define GSC_OUT_BASE_ADDR_CB(n)   (0x160 + (n) * 0x4)
 
#define GSC_OUT_BASE_ADDR_CR_MASK   0x1ac
 
#define GSC_OUT_BASE_ADDR_CR(n)   (0x1b0 + (n) * 0x4)
 

Macro Definition Documentation

#define GSC_CROPPED_HEIGHT (   x)    ((x) << 16)

Definition at line 80 of file gsc-regs.h.

#define GSC_CROPPED_SIZE   0x1c

Definition at line 79 of file gsc-regs.h.

#define GSC_CROPPED_WIDTH (   x)    ((x) << 0)

Definition at line 81 of file gsc-regs.h.

#define GSC_DSTIMG_HEIGHT (   x)    ((x) << 16)

Definition at line 134 of file gsc-regs.h.

#define GSC_DSTIMG_OFFSET   0x44

Definition at line 138 of file gsc-regs.h.

#define GSC_DSTIMG_OFFSET_X (   x)    ((x) << 0)

Definition at line 140 of file gsc-regs.h.

#define GSC_DSTIMG_OFFSET_Y (   x)    ((x) << 16)

Definition at line 139 of file gsc-regs.h.

#define GSC_DSTIMG_SIZE   0x40

Definition at line 133 of file gsc-regs.h.

#define GSC_DSTIMG_WIDTH (   x)    ((x) << 0)

Definition at line 135 of file gsc-regs.h.

#define GSC_ENABLE   0x00

Definition at line 16 of file gsc-regs.h.

#define GSC_ENABLE_ON   (1 << 0)

Definition at line 19 of file gsc-regs.h.

#define GSC_ENABLE_OP_STATUS   (1 << 2)

Definition at line 17 of file gsc-regs.h.

#define GSC_ENABLE_SFR_UPDATE   (1 << 1)

Definition at line 18 of file gsc-regs.h.

#define GSC_IN_BASE_ADDR_CB (   n)    (0x80 + (n) * 0x4)

Definition at line 150 of file gsc-regs.h.

#define GSC_IN_BASE_ADDR_CB_MASK   0x7c

Definition at line 148 of file gsc-regs.h.

#define GSC_IN_BASE_ADDR_CR (   n)    (0xb0 + (n) * 0x4)

Definition at line 155 of file gsc-regs.h.

#define GSC_IN_BASE_ADDR_CR_MASK   0xac

Definition at line 153 of file gsc-regs.h.

#define GSC_IN_BASE_ADDR_Y (   n)    (0x50 + (n) * 0x4)

Definition at line 145 of file gsc-regs.h.

#define GSC_IN_BASE_ADDR_Y_MASK   0x4c

Definition at line 143 of file gsc-regs.h.

#define GSC_IN_CHROMA_ORDER_CBCR   (0 << 12)

Definition at line 51 of file gsc-regs.h.

#define GSC_IN_CHROMA_ORDER_CRCB   (1 << 12)

Definition at line 52 of file gsc-regs.h.

#define GSC_IN_CHROMA_ORDER_MASK   (1 << 12)

Definition at line 50 of file gsc-regs.h.

#define GSC_IN_CON   0x10

Definition at line 33 of file gsc-regs.h.

#define GSC_IN_FORMAT_MASK   (7 << 8)

Definition at line 53 of file gsc-regs.h.

#define GSC_IN_LOCAL_SEL_MASK   (3 << 1)

Definition at line 64 of file gsc-regs.h.

#define GSC_IN_PATH_MASK   (1 << 0)

Definition at line 65 of file gsc-regs.h.

#define GSC_IN_PATH_MEMORY   (0 << 0)

Definition at line 66 of file gsc-regs.h.

#define GSC_IN_RGB565   (1 << 8)

Definition at line 55 of file gsc-regs.h.

#define GSC_IN_RGB_HD_NARROW   (3 << 14)

Definition at line 43 of file gsc-regs.h.

#define GSC_IN_RGB_HD_WIDE   (2 << 14)

Definition at line 44 of file gsc-regs.h.

#define GSC_IN_RGB_SD_NARROW   (1 << 14)

Definition at line 45 of file gsc-regs.h.

#define GSC_IN_RGB_SD_WIDE   (0 << 14)

Definition at line 46 of file gsc-regs.h.

#define GSC_IN_RGB_TYPE_MASK   (3 << 14)

Definition at line 42 of file gsc-regs.h.

#define GSC_IN_ROT_180   (3 << 16)

Definition at line 39 of file gsc-regs.h.

#define GSC_IN_ROT_270   (7 << 16)

Definition at line 35 of file gsc-regs.h.

#define GSC_IN_ROT_90   (4 << 16)

Definition at line 38 of file gsc-regs.h.

#define GSC_IN_ROT_90_XFLIP   (5 << 16)

Definition at line 37 of file gsc-regs.h.

#define GSC_IN_ROT_90_YFLIP   (6 << 16)

Definition at line 36 of file gsc-regs.h.

#define GSC_IN_ROT_MASK   (7 << 16)

Definition at line 34 of file gsc-regs.h.

#define GSC_IN_ROT_XFLIP   (1 << 16)

Definition at line 41 of file gsc-regs.h.

#define GSC_IN_ROT_YFLIP   (2 << 16)

Definition at line 40 of file gsc-regs.h.

#define GSC_IN_TILE_C_16x8   (0 << 4)

Definition at line 62 of file gsc-regs.h.

#define GSC_IN_TILE_MODE   (1 << 3)

Definition at line 63 of file gsc-regs.h.

#define GSC_IN_TILE_TYPE_MASK   (1 << 4)

Definition at line 61 of file gsc-regs.h.

#define GSC_IN_XRGB8888   (0 << 8)

Definition at line 54 of file gsc-regs.h.

#define GSC_IN_YUV420_2P   (2 << 8)

Definition at line 56 of file gsc-regs.h.

#define GSC_IN_YUV420_3P   (3 << 8)

Definition at line 57 of file gsc-regs.h.

#define GSC_IN_YUV422_1P   (4 << 8)

Definition at line 58 of file gsc-regs.h.

#define GSC_IN_YUV422_1P_OEDER_LSB_C   (1 << 13)

Definition at line 49 of file gsc-regs.h.

#define GSC_IN_YUV422_1P_ORDER_LSB_Y   (0 << 13)

Definition at line 48 of file gsc-regs.h.

#define GSC_IN_YUV422_1P_ORDER_MASK   (1 << 13)

Definition at line 47 of file gsc-regs.h.

#define GSC_IN_YUV422_2P   (5 << 8)

Definition at line 59 of file gsc-regs.h.

#define GSC_IN_YUV422_3P   (6 << 8)

Definition at line 60 of file gsc-regs.h.

#define GSC_IRQ   0x08

Definition at line 26 of file gsc-regs.h.

#define GSC_IRQ_ENABLE   (1 << 0)

Definition at line 30 of file gsc-regs.h.

#define GSC_IRQ_FRMDONE_MASK   (1 << 1)

Definition at line 29 of file gsc-regs.h.

#define GSC_IRQ_STATUS_FRM_DONE_IRQ   (1 << 16)

Definition at line 28 of file gsc-regs.h.

#define GSC_IRQ_STATUS_OR_IRQ   (1 << 17)

Definition at line 27 of file gsc-regs.h.

#define GSC_MAIN_H_RATIO   0x2c

Definition at line 125 of file gsc-regs.h.

#define GSC_MAIN_H_RATIO_VALUE (   x)    ((x) << 0)

Definition at line 126 of file gsc-regs.h.

#define GSC_MAIN_V_RATIO   0x30

Definition at line 129 of file gsc-regs.h.

#define GSC_MAIN_V_RATIO_VALUE (   x)    ((x) << 0)

Definition at line 130 of file gsc-regs.h.

#define GSC_OUT_BASE_ADDR_CB (   n)    (0x160 + (n) * 0x4)

Definition at line 165 of file gsc-regs.h.

#define GSC_OUT_BASE_ADDR_CB_MASK   0x15c

Definition at line 163 of file gsc-regs.h.

#define GSC_OUT_BASE_ADDR_CR (   n)    (0x1b0 + (n) * 0x4)

Definition at line 170 of file gsc-regs.h.

#define GSC_OUT_BASE_ADDR_CR_MASK   0x1ac

Definition at line 168 of file gsc-regs.h.

#define GSC_OUT_BASE_ADDR_Y (   n)    (0x110 + (n) * 0x4)

Definition at line 160 of file gsc-regs.h.

#define GSC_OUT_BASE_ADDR_Y_MASK   0x10c

Definition at line 158 of file gsc-regs.h.

#define GSC_OUT_CHROMA_ORDER_CBCR   (0 << 8)

Definition at line 96 of file gsc-regs.h.

#define GSC_OUT_CHROMA_ORDER_CRCB   (1 << 8)

Definition at line 97 of file gsc-regs.h.

#define GSC_OUT_CHROMA_ORDER_MASK   (1 << 8)

Definition at line 95 of file gsc-regs.h.

#define GSC_OUT_CON   0x20

Definition at line 84 of file gsc-regs.h.

#define GSC_OUT_FORMAT_MASK   (7 << 4)

Definition at line 98 of file gsc-regs.h.

#define GSC_OUT_GLOBAL_ALPHA (   x)    ((x) << 24)

Definition at line 86 of file gsc-regs.h.

#define GSC_OUT_GLOBAL_ALPHA_MASK   (0xff << 24)

Definition at line 85 of file gsc-regs.h.

#define GSC_OUT_PATH_LOCAL   (1 << 0)

Definition at line 110 of file gsc-regs.h.

#define GSC_OUT_PATH_MASK   (1 << 0)

Definition at line 109 of file gsc-regs.h.

#define GSC_OUT_PATH_MEMORY   (0 << 0)

Definition at line 111 of file gsc-regs.h.

#define GSC_OUT_RGB565   (1 << 4)

Definition at line 100 of file gsc-regs.h.

#define GSC_OUT_RGB_HD_NARROW   (2 << 10)

Definition at line 89 of file gsc-regs.h.

#define GSC_OUT_RGB_HD_WIDE   (3 << 10)

Definition at line 88 of file gsc-regs.h.

#define GSC_OUT_RGB_SD_NARROW   (0 << 10)

Definition at line 91 of file gsc-regs.h.

#define GSC_OUT_RGB_SD_WIDE   (1 << 10)

Definition at line 90 of file gsc-regs.h.

#define GSC_OUT_RGB_TYPE_MASK   (3 << 10)

Definition at line 87 of file gsc-regs.h.

#define GSC_OUT_TILE_C_16x8   (0 << 2)

Definition at line 107 of file gsc-regs.h.

#define GSC_OUT_TILE_MODE   (1 << 1)

Definition at line 108 of file gsc-regs.h.

#define GSC_OUT_TILE_TYPE_MASK   (1 << 2)

Definition at line 106 of file gsc-regs.h.

#define GSC_OUT_XRGB8888   (0 << 4)

Definition at line 99 of file gsc-regs.h.

#define GSC_OUT_YUV420_2P   (2 << 4)

Definition at line 101 of file gsc-regs.h.

#define GSC_OUT_YUV420_3P   (3 << 4)

Definition at line 102 of file gsc-regs.h.

#define GSC_OUT_YUV422_1P   (4 << 4)

Definition at line 103 of file gsc-regs.h.

#define GSC_OUT_YUV422_1P_OEDER_LSB_C   (1 << 9)

Definition at line 94 of file gsc-regs.h.

#define GSC_OUT_YUV422_1P_ORDER_LSB_Y   (0 << 9)

Definition at line 93 of file gsc-regs.h.

#define GSC_OUT_YUV422_1P_ORDER_MASK   (1 << 9)

Definition at line 92 of file gsc-regs.h.

#define GSC_OUT_YUV422_2P   (5 << 4)

Definition at line 104 of file gsc-regs.h.

#define GSC_OUT_YUV444   (7 << 4)

Definition at line 105 of file gsc-regs.h.

#define GSC_PRE_SCALE_RATIO   0x28

Definition at line 119 of file gsc-regs.h.

#define GSC_PRESC_H_RATIO (   x)    ((x) << 0)

Definition at line 122 of file gsc-regs.h.

#define GSC_PRESC_SHFACTOR (   x)    ((x) << 28)

Definition at line 120 of file gsc-regs.h.

#define GSC_PRESC_V_RATIO (   x)    ((x) << 16)

Definition at line 121 of file gsc-regs.h.

#define GSC_SCALED_HEIGHT (   x)    ((x) << 16)

Definition at line 115 of file gsc-regs.h.

#define GSC_SCALED_SIZE   0x24

Definition at line 114 of file gsc-regs.h.

#define GSC_SCALED_WIDTH (   x)    ((x) << 0)

Definition at line 116 of file gsc-regs.h.

#define GSC_SRCIMG_HEIGHT (   x)    ((x) << 16)

Definition at line 70 of file gsc-regs.h.

#define GSC_SRCIMG_OFFSET   0x18

Definition at line 74 of file gsc-regs.h.

#define GSC_SRCIMG_OFFSET_X (   x)    ((x) << 0)

Definition at line 76 of file gsc-regs.h.

#define GSC_SRCIMG_OFFSET_Y (   x)    ((x) << 16)

Definition at line 75 of file gsc-regs.h.

#define GSC_SRCIMG_SIZE   0x14

Definition at line 69 of file gsc-regs.h.

#define GSC_SRCIMG_WIDTH (   x)    ((x) << 0)

Definition at line 71 of file gsc-regs.h.

#define GSC_SW_RESET   0x04

Definition at line 22 of file gsc-regs.h.

#define GSC_SW_RESET_SRESET   (1 << 0)

Definition at line 23 of file gsc-regs.h.