-/* $OpenBSD: lunafb.c,v 1.30 2022/08/12 13:36:19 aoyama Exp $ */
+/* $OpenBSD: lunafb.c,v 1.31 2022/11/06 13:01:22 aoyama Exp $ */
/* $NetBSD: lunafb.c,v 1.7.6.1 2002/08/07 01:48:34 lukem Exp $ */
/*-
/* all frame buffer support this */
sc->sc_dc->dc_depth = 1;
sc->sc_dc->dc_cmsize = 0;
+ setup_omrasops1(&sc->sc_dc->dc_ri);
break;
case 4:
if ((hwplanebits == 4) || (hwplanebits == 8)) {
sc->sc_dc->dc_depth = 4;
sc->sc_dc->dc_cmsize = 16;
+ setup_omrasops4(&sc->sc_dc->dc_ri);
break;
} else
return -1;
if (hwplanebits == 8) {
sc->sc_dc->dc_depth = 8;
sc->sc_dc->dc_cmsize = 256;
+ setup_omrasops4(&sc->sc_dc->dc_ri);
break;
} else
return -1;
-/* $OpenBSD: omrasops.c,v 1.17 2021/07/31 05:22:36 aoyama Exp $ */
+/* $OpenBSD: omrasops.c,v 1.18 2022/11/06 13:01:22 aoyama Exp $ */
/* $NetBSD: omrasops.c,v 1.1 2000/01/05 08:48:56 nisimura Exp $ */
/*-
/* MI function in src/sys/dev/rasops/rasops.c */
int rasops_pack_cattr(void *, int, int, int, uint32_t *);
+int rasops_pack_mattr(void *, int, int, int, uint32_t *);
static int (*om_windowmove)(struct rasops_info *, u_int16_t, u_int16_t,
u_int16_t, u_int16_t, u_int16_t, u_int16_t, int16_t, int16_t);
ri->ri_ops.putchar = om1_putchar;
omfb_stdscreen.capabilities
= ri->ri_caps & ~WSSCREEN_UNDERLINE;
+ ri->ri_ops.pack_attr = rasops_pack_mattr;
}
void