1: int32_t AG903_PgpMgrSetConfigVRAMDataSwap(
AG903_PgpMgrVRAMInputHandle *handle, _Bool word, _Bool hword, _Bool four_bit, _Bool one_bit)
2: {
3:
4:
if ((handle == NULL) || (handle->id !=
AG903_PGP_MGR_VRAM_INPUT_HANDLE_ID)) {
5:
return -
AG903_EINVAL;
6: }
7:
8:
9: handle->vram_word_swap_enable = word;
10: handle->vram_hword_swap_enable = hword;
11: handle->vram_4bit_swap_enable = four_bit;
12: handle->vram_1bit_swap_enable = one_bit;
13: handle->is_config_dirty[
AG903_PGP_MGR_CONFIG_VI_CTRL] =
true;
14: handle->is_dirty =
true;
15:
return AG903_ENONE;
16: }