Lines Matching defs:mgx_softc
67 struct mgx_softc {
107 static void mgx_write_dac(struct mgx_softc *, int, int, int, int);
108 static void mgx_setup(struct mgx_softc *, int);
109 static void mgx_init_palette(struct mgx_softc *);
110 static int mgx_putcmap(struct mgx_softc *, struct wsdisplay_cmap *);
111 static int mgx_getcmap(struct mgx_softc *, struct wsdisplay_cmap *);
112 static int mgx_wait_engine(struct mgx_softc *);
113 __unused static int mgx_wait_host(struct mgx_softc *);
114 /*static*/ int mgx_wait_fifo(struct mgx_softc *, unsigned int);
128 static int mgx_do_cursor(struct mgx_softc *, struct wsdisplay_cursor *);
129 static void mgx_set_cursor(struct mgx_softc *);
130 static void mgx_set_video(struct mgx_softc *, int);
132 CFATTACH_DECL_NEW(mgx, sizeof(struct mgx_softc),
176 mgx_write_vga(struct mgx_softc *sc, uint32_t reg, uint8_t val)
182 mgx_read_vga(struct mgx_softc *sc, uint32_t reg)
188 mgx_write_1(struct mgx_softc *sc, uint32_t reg, uint8_t val)
194 mgx_read_1(struct mgx_softc *sc, uint32_t reg)
201 mgx_read_4(struct mgx_softc *sc, uint32_t reg)
208 mgx_write_2(struct mgx_softc *sc, uint32_t reg, uint16_t val)
214 mgx_write_4(struct mgx_softc *sc, uint32_t reg, uint32_t val)
220 mgx_set_dec(struct mgx_softc *sc, uint32_t dec)
229 mgx_set_fg(struct mgx_softc *sc, uint32_t fg)
253 struct mgx_softc *sc = device_private(self);
405 mgx_write_dac(struct mgx_softc *sc, int idx, int r, int g, int b)
414 mgx_init_palette(struct mgx_softc *sc)
438 mgx_putcmap(struct mgx_softc *sc, struct wsdisplay_cmap *cm)
476 mgx_getcmap(struct mgx_softc *sc, struct wsdisplay_cmap *cm)
499 mgx_wait_engine(struct mgx_softc *sc)
514 mgx_wait_host(struct mgx_softc *sc)
529 mgx_wait_fifo(struct mgx_softc *sc, unsigned int nfifo)
546 mgx_setup(struct mgx_softc *sc, int depth)
651 struct mgx_softc *sc = cookie;
677 struct mgx_softc *sc = cookie;
703 struct mgx_softc *sc = scr->scr_cookie;
749 struct mgx_softc *sc = scr->scr_cookie;
829 struct mgx_softc *sc = scr->scr_cookie;
859 struct mgx_softc *sc = scr->scr_cookie;
875 struct mgx_softc *sc = scr->scr_cookie;
891 struct mgx_softc *sc = scr->scr_cookie;
907 struct mgx_softc *sc = scr->scr_cookie;
927 struct mgx_softc *sc = cookie;
936 struct mgx_softc *sc = cookie;
995 struct mgx_softc *sc = vd->cookie;
1160 struct mgx_softc *sc = vd->cookie;
1197 mgx_do_cursor(struct mgx_softc *sc, struct wsdisplay_cursor *cur)
1276 mgx_set_cursor(struct mgx_softc *sc)
1288 mgx_set_video(struct mgx_softc *sc, int v)
1310 struct mgx_softc *sc = device_private(dev);
1318 struct mgx_softc *sc = device_lookup_private(&mgx_cd, minor(dev));
1358 struct mgx_softc *sc = device_private(dv);
1374 struct mgx_softc *sc = device_private(dv);
1394 struct mgx_softc *sc = device_lookup_private(&mgx_cd, minor(dev));