/* function : de_rtmx_set_overlay_reg_base(unsigned int sel, unsigned int chno, unsigned int base) description: set de reg base parameters : sel <rtmx select> chno <overlay select> base <reg base> return : success  */
int de_rtmx_set_overlay_reg_base(unsigned int sel, unsigned int chno, void *base)
/* function : de_rtmx_set_overlay_reg_base(unsigned int sel, unsigned int chno, unsigned int base) description: set de reg base parameters : sel <rtmx select> chno <overlay select> base <reg base> return : success  */
int de_rtmx_set_overlay_reg_base(unsigned int sel, unsigned int chno, void *base)
{
    int vi_chno = de_feat_get_num_vi_chns(sel);
    DE_INF("sel=0x%x, overlayer %d, addr=0x%p\n", sel, chno, base);
    if (chno < vi_chno) {
        de200_rtmx[sel].vi_ovl[chno] = (struct __vi_ovl_reg_t *) base;
    } else {
        de200_rtmx[sel].ui_ovl[chno - vi_chno] =
            (struct __ui_ovl_reg_t *) base;
    }
    return 0;
}