181dee67eSSudip Mukherjee #ifndef ACCEL_H__ 281dee67eSSudip Mukherjee #define ACCEL_H__ 381dee67eSSudip Mukherjee 481dee67eSSudip Mukherjee #define HW_ROP2_COPY 0xc 581dee67eSSudip Mukherjee #define HW_ROP2_XOR 0x6 681dee67eSSudip Mukherjee 781dee67eSSudip Mukherjee /* notes: below address are the offset value from de_base_address (0x100000)*/ 881dee67eSSudip Mukherjee 981dee67eSSudip Mukherjee /* for sm718/750/502 de_base is at mmreg_1mb*/ 1081dee67eSSudip Mukherjee #define DE_BASE_ADDR_TYPE1 0x100000 1181dee67eSSudip Mukherjee /* for sm712,de_base is at mmreg_32kb */ 1281dee67eSSudip Mukherjee #define DE_BASE_ADDR_TYPE2 0x8000 1381dee67eSSudip Mukherjee /* for sm722,de_base is at mmreg_0 */ 1481dee67eSSudip Mukherjee #define DE_BASE_ADDR_TYPE3 0 1581dee67eSSudip Mukherjee 1681dee67eSSudip Mukherjee /* type1 data port address is at mmreg_0x110000*/ 1781dee67eSSudip Mukherjee #define DE_PORT_ADDR_TYPE1 0x110000 1881dee67eSSudip Mukherjee /* for sm712,data port address is at mmreg_0 */ 1981dee67eSSudip Mukherjee #define DE_PORT_ADDR_TYPE2 0x100000 2081dee67eSSudip Mukherjee /* for sm722,data port address is at mmreg_1mb */ 2181dee67eSSudip Mukherjee #define DE_PORT_ADDR_TYPE3 0x100000 2281dee67eSSudip Mukherjee 2381dee67eSSudip Mukherjee #define DE_SOURCE 0x0 2481dee67eSSudip Mukherjee #define DE_SOURCE_WRAP 31:31 2581dee67eSSudip Mukherjee #define DE_SOURCE_WRAP_DISABLE 0 2681dee67eSSudip Mukherjee #define DE_SOURCE_WRAP_ENABLE 1 2781dee67eSSudip Mukherjee #define DE_SOURCE_X_K1 29:16 2881dee67eSSudip Mukherjee #define DE_SOURCE_Y_K2 15:0 2981dee67eSSudip Mukherjee #define DE_SOURCE_X_K1_MONO 20:16 3081dee67eSSudip Mukherjee 3181dee67eSSudip Mukherjee #define DE_DESTINATION 0x4 3281dee67eSSudip Mukherjee #define DE_DESTINATION_WRAP 31:31 3381dee67eSSudip Mukherjee #define DE_DESTINATION_WRAP_DISABLE 0 3481dee67eSSudip Mukherjee #define DE_DESTINATION_WRAP_ENABLE 1 3581dee67eSSudip Mukherjee #define DE_DESTINATION_X 28:16 3681dee67eSSudip Mukherjee #define DE_DESTINATION_Y 15:0 3781dee67eSSudip Mukherjee 3881dee67eSSudip Mukherjee #define DE_DIMENSION 0x8 3981dee67eSSudip Mukherjee #define DE_DIMENSION_X 28:16 4081dee67eSSudip Mukherjee #define DE_DIMENSION_Y_ET 15:0 4181dee67eSSudip Mukherjee 4281dee67eSSudip Mukherjee #define DE_CONTROL 0xC 4381dee67eSSudip Mukherjee #define DE_CONTROL_STATUS 31:31 4481dee67eSSudip Mukherjee #define DE_CONTROL_STATUS_STOP 0 4581dee67eSSudip Mukherjee #define DE_CONTROL_STATUS_START 1 4681dee67eSSudip Mukherjee #define DE_CONTROL_PATTERN 30:30 4781dee67eSSudip Mukherjee #define DE_CONTROL_PATTERN_MONO 0 4881dee67eSSudip Mukherjee #define DE_CONTROL_PATTERN_COLOR 1 4981dee67eSSudip Mukherjee #define DE_CONTROL_UPDATE_DESTINATION_X 29:29 5081dee67eSSudip Mukherjee #define DE_CONTROL_UPDATE_DESTINATION_X_DISABLE 0 5181dee67eSSudip Mukherjee #define DE_CONTROL_UPDATE_DESTINATION_X_ENABLE 1 5281dee67eSSudip Mukherjee #define DE_CONTROL_QUICK_START 28:28 5381dee67eSSudip Mukherjee #define DE_CONTROL_QUICK_START_DISABLE 0 5481dee67eSSudip Mukherjee #define DE_CONTROL_QUICK_START_ENABLE 1 5581dee67eSSudip Mukherjee #define DE_CONTROL_DIRECTION 27:27 5681dee67eSSudip Mukherjee #define DE_CONTROL_DIRECTION_LEFT_TO_RIGHT 0 5781dee67eSSudip Mukherjee #define DE_CONTROL_DIRECTION_RIGHT_TO_LEFT 1 5881dee67eSSudip Mukherjee #define DE_CONTROL_MAJOR 26:26 5981dee67eSSudip Mukherjee #define DE_CONTROL_MAJOR_X 0 6081dee67eSSudip Mukherjee #define DE_CONTROL_MAJOR_Y 1 6181dee67eSSudip Mukherjee #define DE_CONTROL_STEP_X 25:25 6281dee67eSSudip Mukherjee #define DE_CONTROL_STEP_X_POSITIVE 1 6381dee67eSSudip Mukherjee #define DE_CONTROL_STEP_X_NEGATIVE 0 6481dee67eSSudip Mukherjee #define DE_CONTROL_STEP_Y 24:24 6581dee67eSSudip Mukherjee #define DE_CONTROL_STEP_Y_POSITIVE 1 6681dee67eSSudip Mukherjee #define DE_CONTROL_STEP_Y_NEGATIVE 0 6781dee67eSSudip Mukherjee #define DE_CONTROL_STRETCH 23:23 6881dee67eSSudip Mukherjee #define DE_CONTROL_STRETCH_DISABLE 0 6981dee67eSSudip Mukherjee #define DE_CONTROL_STRETCH_ENABLE 1 7081dee67eSSudip Mukherjee #define DE_CONTROL_HOST 22:22 7181dee67eSSudip Mukherjee #define DE_CONTROL_HOST_COLOR 0 7281dee67eSSudip Mukherjee #define DE_CONTROL_HOST_MONO 1 7381dee67eSSudip Mukherjee #define DE_CONTROL_LAST_PIXEL 21:21 7481dee67eSSudip Mukherjee #define DE_CONTROL_LAST_PIXEL_OFF 0 7581dee67eSSudip Mukherjee #define DE_CONTROL_LAST_PIXEL_ON 1 7681dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND 20:16 7781dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_BITBLT 0 7881dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_RECTANGLE_FILL 1 7981dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_DE_TILE 2 8081dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_TRAPEZOID_FILL 3 8181dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_ALPHA_BLEND 4 8281dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_RLE_STRIP 5 8381dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_SHORT_STROKE 6 8481dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_LINE_DRAW 7 8581dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_HOST_WRITE 8 8681dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_HOST_READ 9 8781dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_HOST_WRITE_BOTTOM_UP 10 8881dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_ROTATE 11 8981dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_FONT 12 9081dee67eSSudip Mukherjee #define DE_CONTROL_COMMAND_TEXTURE_LOAD 15 9181dee67eSSudip Mukherjee #define DE_CONTROL_ROP_SELECT 15:15 9281dee67eSSudip Mukherjee #define DE_CONTROL_ROP_SELECT_ROP3 0 9381dee67eSSudip Mukherjee #define DE_CONTROL_ROP_SELECT_ROP2 1 9481dee67eSSudip Mukherjee #define DE_CONTROL_ROP2_SOURCE 14:14 9581dee67eSSudip Mukherjee #define DE_CONTROL_ROP2_SOURCE_BITMAP 0 9681dee67eSSudip Mukherjee #define DE_CONTROL_ROP2_SOURCE_PATTERN 1 9781dee67eSSudip Mukherjee #define DE_CONTROL_MONO_DATA 13:12 9881dee67eSSudip Mukherjee #define DE_CONTROL_MONO_DATA_NOT_PACKED 0 9981dee67eSSudip Mukherjee #define DE_CONTROL_MONO_DATA_8_PACKED 1 10081dee67eSSudip Mukherjee #define DE_CONTROL_MONO_DATA_16_PACKED 2 10181dee67eSSudip Mukherjee #define DE_CONTROL_MONO_DATA_32_PACKED 3 10281dee67eSSudip Mukherjee #define DE_CONTROL_REPEAT_ROTATE 11:11 10381dee67eSSudip Mukherjee #define DE_CONTROL_REPEAT_ROTATE_DISABLE 0 10481dee67eSSudip Mukherjee #define DE_CONTROL_REPEAT_ROTATE_ENABLE 1 10581dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY_MATCH 10:10 10681dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY_MATCH_OPAQUE 0 10781dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY_MATCH_TRANSPARENT 1 10881dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY_SELECT 9:9 10981dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY_SELECT_SOURCE 0 11081dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY_SELECT_DESTINATION 1 11181dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY 8:8 11281dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY_DISABLE 0 11381dee67eSSudip Mukherjee #define DE_CONTROL_TRANSPARENCY_ENABLE 1 11481dee67eSSudip Mukherjee #define DE_CONTROL_ROP 7:0 11581dee67eSSudip Mukherjee 11681dee67eSSudip Mukherjee // Pseudo fields. 11781dee67eSSudip Mukherjee 11881dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR 27:24 11981dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR_225 0 12081dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR_135 1 12181dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR_315 2 12281dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR_45 3 12381dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR_270 4 12481dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR_90 5 12581dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR_180 8 12681dee67eSSudip Mukherjee #define DE_CONTROL_SHORT_STROKE_DIR_0 10 12781dee67eSSudip Mukherjee #define DE_CONTROL_ROTATION 25:24 12881dee67eSSudip Mukherjee #define DE_CONTROL_ROTATION_0 0 12981dee67eSSudip Mukherjee #define DE_CONTROL_ROTATION_270 1 13081dee67eSSudip Mukherjee #define DE_CONTROL_ROTATION_90 2 13181dee67eSSudip Mukherjee #define DE_CONTROL_ROTATION_180 3 13281dee67eSSudip Mukherjee 13381dee67eSSudip Mukherjee #define DE_PITCH 0x000010 13481dee67eSSudip Mukherjee #define DE_PITCH_DESTINATION 28:16 13581dee67eSSudip Mukherjee #define DE_PITCH_SOURCE 12:0 13681dee67eSSudip Mukherjee 13781dee67eSSudip Mukherjee #define DE_FOREGROUND 0x000014 13881dee67eSSudip Mukherjee #define DE_FOREGROUND_COLOR 31:0 13981dee67eSSudip Mukherjee 14081dee67eSSudip Mukherjee #define DE_BACKGROUND 0x000018 14181dee67eSSudip Mukherjee #define DE_BACKGROUND_COLOR 31:0 14281dee67eSSudip Mukherjee 14381dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT 0x00001C 14481dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PATTERN_XY 30:30 14581dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PATTERN_XY_NORMAL 0 14681dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PATTERN_XY_OVERWRITE 1 14781dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PATTERN_Y 29:27 14881dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PATTERN_X 25:23 14981dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PIXEL_FORMAT 21:20 15081dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PIXEL_FORMAT_8 0 15181dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PIXEL_FORMAT_16 1 15281dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PIXEL_FORMAT_32 2 15381dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_PIXEL_FORMAT_24 3 15481dee67eSSudip Mukherjee 15581dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_ADDRESSING 19:16 15681dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_ADDRESSING_XY 0 15781dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_ADDRESSING_LINEAR 15 15881dee67eSSudip Mukherjee #define DE_STRETCH_FORMAT_SOURCE_HEIGHT 11:0 15981dee67eSSudip Mukherjee 16081dee67eSSudip Mukherjee #define DE_COLOR_COMPARE 0x000020 16181dee67eSSudip Mukherjee #define DE_COLOR_COMPARE_COLOR 23:0 16281dee67eSSudip Mukherjee 16381dee67eSSudip Mukherjee #define DE_COLOR_COMPARE_MASK 0x000024 16481dee67eSSudip Mukherjee #define DE_COLOR_COMPARE_MASK_MASKS 23:0 16581dee67eSSudip Mukherjee 16681dee67eSSudip Mukherjee #define DE_MASKS 0x000028 16781dee67eSSudip Mukherjee #define DE_MASKS_BYTE_MASK 31:16 16881dee67eSSudip Mukherjee #define DE_MASKS_BIT_MASK 15:0 16981dee67eSSudip Mukherjee 17081dee67eSSudip Mukherjee #define DE_CLIP_TL 0x00002C 17181dee67eSSudip Mukherjee #define DE_CLIP_TL_TOP 31:16 17281dee67eSSudip Mukherjee #define DE_CLIP_TL_STATUS 13:13 17381dee67eSSudip Mukherjee #define DE_CLIP_TL_STATUS_DISABLE 0 17481dee67eSSudip Mukherjee #define DE_CLIP_TL_STATUS_ENABLE 1 17581dee67eSSudip Mukherjee #define DE_CLIP_TL_INHIBIT 12:12 17681dee67eSSudip Mukherjee #define DE_CLIP_TL_INHIBIT_OUTSIDE 0 17781dee67eSSudip Mukherjee #define DE_CLIP_TL_INHIBIT_INSIDE 1 17881dee67eSSudip Mukherjee #define DE_CLIP_TL_LEFT 11:0 17981dee67eSSudip Mukherjee 18081dee67eSSudip Mukherjee #define DE_CLIP_BR 0x000030 18181dee67eSSudip Mukherjee #define DE_CLIP_BR_BOTTOM 31:16 18281dee67eSSudip Mukherjee #define DE_CLIP_BR_RIGHT 12:0 18381dee67eSSudip Mukherjee 18481dee67eSSudip Mukherjee #define DE_MONO_PATTERN_LOW 0x000034 18581dee67eSSudip Mukherjee #define DE_MONO_PATTERN_LOW_PATTERN 31:0 18681dee67eSSudip Mukherjee 18781dee67eSSudip Mukherjee #define DE_MONO_PATTERN_HIGH 0x000038 18881dee67eSSudip Mukherjee #define DE_MONO_PATTERN_HIGH_PATTERN 31:0 18981dee67eSSudip Mukherjee 19081dee67eSSudip Mukherjee #define DE_WINDOW_WIDTH 0x00003C 19181dee67eSSudip Mukherjee #define DE_WINDOW_WIDTH_DESTINATION 28:16 19281dee67eSSudip Mukherjee #define DE_WINDOW_WIDTH_SOURCE 12:0 19381dee67eSSudip Mukherjee 19481dee67eSSudip Mukherjee #define DE_WINDOW_SOURCE_BASE 0x000040 19581dee67eSSudip Mukherjee #define DE_WINDOW_SOURCE_BASE_EXT 27:27 19681dee67eSSudip Mukherjee #define DE_WINDOW_SOURCE_BASE_EXT_LOCAL 0 19781dee67eSSudip Mukherjee #define DE_WINDOW_SOURCE_BASE_EXT_EXTERNAL 1 19881dee67eSSudip Mukherjee #define DE_WINDOW_SOURCE_BASE_CS 26:26 19981dee67eSSudip Mukherjee #define DE_WINDOW_SOURCE_BASE_CS_0 0 20081dee67eSSudip Mukherjee #define DE_WINDOW_SOURCE_BASE_CS_1 1 20181dee67eSSudip Mukherjee #define DE_WINDOW_SOURCE_BASE_ADDRESS 25:0 20281dee67eSSudip Mukherjee 20381dee67eSSudip Mukherjee #define DE_WINDOW_DESTINATION_BASE 0x000044 20481dee67eSSudip Mukherjee #define DE_WINDOW_DESTINATION_BASE_EXT 27:27 20581dee67eSSudip Mukherjee #define DE_WINDOW_DESTINATION_BASE_EXT_LOCAL 0 20681dee67eSSudip Mukherjee #define DE_WINDOW_DESTINATION_BASE_EXT_EXTERNAL 1 20781dee67eSSudip Mukherjee #define DE_WINDOW_DESTINATION_BASE_CS 26:26 20881dee67eSSudip Mukherjee #define DE_WINDOW_DESTINATION_BASE_CS_0 0 20981dee67eSSudip Mukherjee #define DE_WINDOW_DESTINATION_BASE_CS_1 1 21081dee67eSSudip Mukherjee #define DE_WINDOW_DESTINATION_BASE_ADDRESS 25:0 21181dee67eSSudip Mukherjee 21281dee67eSSudip Mukherjee #define DE_ALPHA 0x000048 21381dee67eSSudip Mukherjee #define DE_ALPHA_VALUE 7:0 21481dee67eSSudip Mukherjee 21581dee67eSSudip Mukherjee #define DE_WRAP 0x00004C 21681dee67eSSudip Mukherjee #define DE_WRAP_X 31:16 21781dee67eSSudip Mukherjee #define DE_WRAP_Y 15:0 21881dee67eSSudip Mukherjee 21981dee67eSSudip Mukherjee #define DE_STATUS 0x000050 22081dee67eSSudip Mukherjee #define DE_STATUS_CSC 1:1 22181dee67eSSudip Mukherjee #define DE_STATUS_CSC_CLEAR 0 22281dee67eSSudip Mukherjee #define DE_STATUS_CSC_NOT_ACTIVE 0 22381dee67eSSudip Mukherjee #define DE_STATUS_CSC_ACTIVE 1 22481dee67eSSudip Mukherjee #define DE_STATUS_2D 0:0 22581dee67eSSudip Mukherjee #define DE_STATUS_2D_CLEAR 0 22681dee67eSSudip Mukherjee #define DE_STATUS_2D_NOT_ACTIVE 0 22781dee67eSSudip Mukherjee #define DE_STATUS_2D_ACTIVE 1 22881dee67eSSudip Mukherjee 22981dee67eSSudip Mukherjee 23081dee67eSSudip Mukherjee 23181dee67eSSudip Mukherjee /* blt direction */ 23281dee67eSSudip Mukherjee #define TOP_TO_BOTTOM 0 23381dee67eSSudip Mukherjee #define LEFT_TO_RIGHT 0 23481dee67eSSudip Mukherjee #define BOTTOM_TO_TOP 1 23581dee67eSSudip Mukherjee #define RIGHT_TO_LEFT 1 23681dee67eSSudip Mukherjee 23781dee67eSSudip Mukherjee void hw_set2dformat(struct lynx_accel * accel,int fmt); 23881dee67eSSudip Mukherjee 23981dee67eSSudip Mukherjee void hw_de_init(struct lynx_accel * accel); 24081dee67eSSudip Mukherjee 24181dee67eSSudip Mukherjee int hw_fillrect(struct lynx_accel * accel, 24281dee67eSSudip Mukherjee u32 base,u32 pitch,u32 Bpp, 24381dee67eSSudip Mukherjee u32 x,u32 y,u32 width,u32 height, 24481dee67eSSudip Mukherjee u32 color,u32 rop); 24581dee67eSSudip Mukherjee 24681dee67eSSudip Mukherjee int hw_copyarea( 24781dee67eSSudip Mukherjee struct lynx_accel * accel, 24881dee67eSSudip Mukherjee unsigned int sBase, /* Address of source: offset in frame buffer */ 24981dee67eSSudip Mukherjee unsigned int sPitch, /* Pitch value of source surface in BYTE */ 25081dee67eSSudip Mukherjee unsigned int sx, 25181dee67eSSudip Mukherjee unsigned int sy, /* Starting coordinate of source surface */ 25281dee67eSSudip Mukherjee unsigned int dBase, /* Address of destination: offset in frame buffer */ 25381dee67eSSudip Mukherjee unsigned int dPitch, /* Pitch value of destination surface in BYTE */ 25481dee67eSSudip Mukherjee unsigned int bpp, /* Color depth of destination surface */ 25581dee67eSSudip Mukherjee unsigned int dx, 25681dee67eSSudip Mukherjee unsigned int dy, /* Starting coordinate of destination surface */ 25781dee67eSSudip Mukherjee unsigned int width, 25881dee67eSSudip Mukherjee unsigned int height, /* width and height of rectangle in pixel value */ 25981dee67eSSudip Mukherjee unsigned int rop2); 26081dee67eSSudip Mukherjee 2617c6f3fdcSGreg Kroah-Hartman int hw_imageblit(struct lynx_accel *accel, 2627c6f3fdcSGreg Kroah-Hartman const char *pSrcbuf, /* pointer to start of source buffer in system memory */ 2637c6f3fdcSGreg Kroah-Hartman u32 srcDelta, /* Pitch value (in bytes) of the source buffer, +ive means top down and -ive mean button up */ 2647c6f3fdcSGreg Kroah-Hartman u32 startBit, /* Mono data can start at any bit in a byte, this value should be 0 to 7 */ 2657c6f3fdcSGreg Kroah-Hartman u32 dBase, /* Address of destination: offset in frame buffer */ 2667c6f3fdcSGreg Kroah-Hartman u32 dPitch, /* Pitch value of destination surface in BYTE */ 2677c6f3fdcSGreg Kroah-Hartman u32 bytePerPixel, /* Color depth of destination surface */ 2687c6f3fdcSGreg Kroah-Hartman u32 dx, 2697c6f3fdcSGreg Kroah-Hartman u32 dy, /* Starting coordinate of destination surface */ 2707c6f3fdcSGreg Kroah-Hartman u32 width, 2717c6f3fdcSGreg Kroah-Hartman u32 height, /* width and height of rectange in pixel value */ 2727c6f3fdcSGreg Kroah-Hartman u32 fColor, /* Foreground color (corresponding to a 1 in the monochrome data */ 2737c6f3fdcSGreg Kroah-Hartman u32 bColor, /* Background color (corresponding to a 0 in the monochrome data */ 2747c6f3fdcSGreg Kroah-Hartman u32 rop2); 27581dee67eSSudip Mukherjee #endif 276