Home | History | Annotate | Download | only in pci

Lines Matching refs:mgafb_softc

68 MGA_WRITE4(struct mgafb_softc *sc, bus_size_t reg, uint32_t v)
76 MGA_WRITE1(struct mgafb_softc *sc, bus_size_t reg, uint8_t v)
84 MGA_READ4(struct mgafb_softc *sc, bus_size_t reg)
92 MGA_READ1(struct mgafb_softc *sc, bus_size_t reg)
104 static void mgafb_read_pins(struct mgafb_softc *, const struct pci_attach_args *);
105 static void mgafb_dump_pins(struct mgafb_softc *);
109 static void mgafb_preinit_wram(struct mgafb_softc *);
110 static void mgafb_set_mclk(struct mgafb_softc *, int);
111 static void mgafb_preinit_1064sg(struct mgafb_softc *);
114 static void mgafb_detect_vram(struct mgafb_softc *);
121 static bool mgafb_mode_fits(struct mgafb_softc *, const struct videomode *);
122 static const struct videomode *mgafb_pick_mode(struct mgafb_softc *);
124 static void mgafb_resolve_bars(struct mgafb_softc *,
126 static uint8_t mgafb_crtcext3_scale(struct mgafb_softc *);
128 static void mgafb_set_mode(struct mgafb_softc *);
129 static void mgafb_tvp3026_setup_dac(struct mgafb_softc *, bool);
130 static void mgafb_tvp3026_set_pclk(struct mgafb_softc *, int, bool);
131 static void mgafb_idac_setup_dac(struct mgafb_softc *);
132 static void mgafb_idac_set_pclk(struct mgafb_softc *, int);
134 static void mgafb_dac_write(struct mgafb_softc *, uint8_t, uint8_t);
135 static uint8_t mgafb_dac_read(struct mgafb_softc *, uint8_t);
136 static void mgafb_dac_write_ind(struct mgafb_softc *, uint8_t, uint8_t);
137 static uint8_t mgafb_dac_read_ind(struct mgafb_softc *, uint8_t);
139 static void mgafb_ddc_read(struct mgafb_softc *);
161 static void mgafb_load_cmap(struct mgafb_softc *, u_int, u_int);
162 static void mgafb_init_default_cmap(struct mgafb_softc *);
163 static int mgafb_putcmap(struct mgafb_softc *, struct wsdisplay_cmap *);
164 static int mgafb_getcmap(struct mgafb_softc *, struct wsdisplay_cmap *);
166 static void mgafb_cursor_init(struct mgafb_softc *);
167 static void mgafb_cursor_enable(struct mgafb_softc *, bool);
168 static void mgafb_cursor_setpos(struct mgafb_softc *, int, int);
169 static void mgafb_cursor_setcmap(struct mgafb_softc *);
170 static void mgafb_cursor_setshape(struct mgafb_softc *, int, int);
177 static void mgafb_wait_fifo(struct mgafb_softc *, int);
178 static void mgafb_wait_idle(struct mgafb_softc *);
179 static uint32_t mgafb_color_replicate(struct mgafb_softc *, uint32_t);
180 static void mgafb_fill_rect(struct mgafb_softc *, int, int, int, int,
182 static void mgafb_blit_rect(struct mgafb_softc *, int, int, int, int,
193 CFATTACH_DECL_NEW(mgafb, sizeof(struct mgafb_softc),
258 struct mgafb_softc *sc = device_private(self);
445 mgafb_dac_write(struct mgafb_softc *sc, uint8_t reg, uint8_t val)
451 mgafb_dac_read(struct mgafb_softc *sc, uint8_t reg)
457 mgafb_dac_write_ind(struct mgafb_softc *sc, uint8_t idx, uint8_t val)
464 mgafb_dac_read_ind(struct mgafb_softc *sc, uint8_t idx)
473 struct mgafb_softc *sc = cookie;
494 struct mgafb_softc *sc = cookie;
530 mgafb_ddc_read(struct mgafb_softc *sc)
578 mgafb_read_pins(struct mgafb_softc *sc, const struct pci_attach_args *pa)
762 mgafb_dump_pins(struct mgafb_softc *sc)
778 mgafb_preinit_wram(struct mgafb_softc *sc)
837 mgafb_set_mclk(struct mgafb_softc *sc, int freq_khz)
979 mgafb_preinit_1064sg(struct mgafb_softc *sc)
1011 mgafb_detect_vram(struct mgafb_softc *sc)
1214 mgafb_resolve_bars(struct mgafb_softc *sc, const struct pci_attach_args *pa,
1236 mgafb_crtcext3_scale(struct mgafb_softc *sc)
1342 mgafb_mode_fits(struct mgafb_softc *sc, const struct videomode *vm)
1364 mgafb_pick_mode(struct mgafb_softc *sc)
1411 mgafb_tvp3026_setup_dac(struct mgafb_softc *sc, bool interleave)
1436 mgafb_tvp3026_set_pclk(struct mgafb_softc *sc, int dot_clock, bool interleave)
1532 mgafb_idac_setup_dac(struct mgafb_softc *sc)
1548 mgafb_idac_set_pclk(struct mgafb_softc *sc, int dot_clock)
1586 mgafb_set_mode(struct mgafb_softc *sc)
1672 mgafb_load_cmap(struct mgafb_softc *sc, u_int start, u_int count)
1685 mgafb_init_default_cmap(struct mgafb_softc *sc)
1704 mgafb_putcmap(struct mgafb_softc *sc, struct wsdisplay_cmap *cm)
1731 mgafb_getcmap(struct mgafb_softc *sc, struct wsdisplay_cmap *cm)
1757 mgafb_wait_fifo(struct mgafb_softc *sc, int n)
1764 mgafb_wait_idle(struct mgafb_softc *sc)
1772 mgafb_color_replicate(struct mgafb_softc *sc, uint32_t color)
1784 mgafb_fill_rect(struct mgafb_softc *sc, int x, int y, int w, int h,
1803 mgafb_blit_rect(struct mgafb_softc *sc,
1862 mgafb_blit_rect((struct mgafb_softc *)cookie,
1876 struct mgafb_softc *sc = scr->scr_vd->cookie;
1975 struct mgafb_softc *sc = scr->scr_vd->cookie;
2102 struct mgafb_softc *sc = scr->scr_vd->cookie;
2118 struct mgafb_softc *sc = scr->scr_vd->cookie;
2136 struct mgafb_softc *sc = scr->scr_vd->cookie;
2153 struct mgafb_softc *sc = scr->scr_vd->cookie;
2175 mgafb_cursor_enable(struct mgafb_softc *sc, bool on)
2188 mgafb_cursor_setpos(struct mgafb_softc *sc, int x, int y)
2206 mgafb_cursor_setcmap(struct mgafb_softc *sc)
2222 mgafb_cursor_setshape(struct mgafb_softc *sc, int width, int height)
2270 mgafb_cursor_init(struct mgafb_softc *sc)
2296 struct mgafb_softc *sc = scr->scr_cookie;
2318 struct mgafb_softc *sc = cookie;
2386 mgafb_set_dpms(struct mgafb_softc *sc, int state)
2415 struct mgafb_softc *sc = vd->cookie;
2501 struct mgafb_softc *sc = vd->cookie;