| .. | .. |
|---|
| 489 | 489 | #define RGA3_ROT_BIT_X_MIRROR BIT(1) |
|---|
| 490 | 490 | #define RGA3_ROT_BIT_Y_MIRROR BIT(2) |
|---|
| 491 | 491 | |
|---|
| 492 | +union rga3_color_ctrl { |
|---|
| 493 | + uint32_t value; |
|---|
| 494 | + struct { |
|---|
| 495 | + uint32_t color_mode:1; |
|---|
| 496 | + uint32_t alpha_mode:1; |
|---|
| 497 | + uint32_t blend_mode:2; |
|---|
| 498 | + uint32_t alpha_cal_mode:1; |
|---|
| 499 | + uint32_t factor_mode:3; |
|---|
| 500 | + |
|---|
| 501 | + uint32_t reserved:8; |
|---|
| 502 | + |
|---|
| 503 | + uint32_t global_alpha:8; |
|---|
| 504 | + } bits; |
|---|
| 505 | +}; |
|---|
| 506 | + |
|---|
| 507 | +union rga3_alpha_ctrl { |
|---|
| 508 | + uint32_t value; |
|---|
| 509 | + struct { |
|---|
| 510 | + uint32_t reserved:1; |
|---|
| 511 | + uint32_t alpha_mode:1; |
|---|
| 512 | + uint32_t blend_mode:2; |
|---|
| 513 | + uint32_t alpha_cal_mode:1; |
|---|
| 514 | + uint32_t factor_mode:3; |
|---|
| 515 | + } bits; |
|---|
| 516 | +}; |
|---|
| 517 | + |
|---|
| 492 | 518 | extern const struct rga_backend_ops rga3_ops; |
|---|
| 493 | 519 | |
|---|
| 494 | 520 | #endif |
|---|