Lines Matching defs:mgaptr

178 	register mga_t volatile *mgaptr;
190 mgaptr = mga_info.mga_control_ptr;
191 mga_info.mga_opmode = mga_get_uint32(&mgaptr->mga_opmode);
233 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
269 miscout = mgaptr->mga_miscout_read;
273 save_crtc_index = mgaptr->mga_crtc_index;
277 mgaptr->mga_crtc_index = MGA_CRTC_HORIZ_TOTAL;
278 horiz_total = mgaptr->mga_crtc_data;
282 mgaptr->mga_crtc_index = MGA_CRTC_HORIZ_DISPLAY_END;
283 horiz_display_end = mgaptr->mga_crtc_data;
287 mgaptr->mga_crtc_index = MGA_CRTC_VERT_TOTAL;
288 vert_total = mgaptr->mga_crtc_data;
292 mgaptr->mga_crtc_index = MGA_CRTC_VERT_DISPLAY_END;
293 vert_display_end = mgaptr->mga_crtc_data;
297 mgaptr->mga_crtc_index = MGA_CRTC_OVERFLOW;
298 overflow = mgaptr->mga_crtc_data;
302 mgaptr->mga_crtc_index = MGA_CRTC_OFFSET;
303 offset = mgaptr->mga_crtc_data;
307 mgaptr->mga_crtc_index = save_crtc_index;
311 save_crtcext_index = mgaptr->mga_crtcext_index;
315 mgaptr->mga_crtcext_index = MGA_CRTCEXT_ADDR_GEN_EXT;
316 addr_gen_ext = mgaptr->mga_crtcext_data;
320 mgaptr->mga_crtcext_index = MGA_CRTCEXT_HOR_COUNT_EXT;
321 hor_counter_ext = mgaptr->mga_crtcext_data;
325 mgaptr->mga_crtcext_index = MGA_CRTCEXT_VERT_COUNT_EXT;
326 vert_counter_ext = mgaptr->mga_crtcext_data;
330 mgaptr->mga_crtcext_index = MGA_CRTCEXT_MISC;
331 misc = mgaptr->mga_crtcext_data;
335 mgaptr->mga_crtcext_index = save_crtcext_index;
339 save_palwtadd = mgaptr->mga_palwtadd;
343 mgaptr->mga_palwtadd = MGA_XDATA_XMULCTRL;
344 xmulctrl = mgaptr->mga_x_datareg;
354 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLAM;
355 m = mgaptr->mga_x_datareg;
359 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLAN;
360 n = mgaptr->mga_x_datareg;
364 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLAP;
365 p = mgaptr->mga_x_datareg;
373 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLBM;
374 m = mgaptr->mga_x_datareg;
378 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLBN;
379 n = mgaptr->mga_x_datareg;
383 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLBP;
384 p = mgaptr->mga_x_datareg;
393 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLCM;
394 m = mgaptr->mga_x_datareg;
398 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLCN;
399 n = mgaptr->mga_x_datareg;
403 mgaptr->mga_palwtadd = MGA_XDATA_XPIXPLLCP;
404 p = mgaptr->mga_x_datareg;
410 mgaptr->mga_palwtadd = save_palwtadd;
414 save_gctl_index = mgaptr->mga_gctl_index;
418 mgaptr->mga_gctl_index = MGA_GCTL_GRAPHIC_MODE;
419 graphic_mode = mgaptr->mga_gctl_data;
423 mgaptr->mga_gctl_index = MGA_GCTL_MISCELLANEOUS;
424 miscellaneous = mgaptr->mga_gctl_data;
428 mgaptr->mga_gctl_index = save_gctl_index;
536 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
542 crtcext_index = mgaptr->mga_crtcext_index;
546 mgaptr->mga_crtcext_index = MGA_CRTCEXT_MISC;
547 misc = mgaptr->mga_crtcext_data;
551 mgaptr->mga_crtcext_index = crtcext_index;
563 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
594 mga_put_uint32(&mgaptr->mga_maccess, maccess);
595 mga_put_uint32(&mgaptr->mga_opmode, opmode);
596 mga_put_uint32(&mgaptr->mga_pitch, mga_info.mga_linesize /
598 mga_put_uint32(&mgaptr->mga_dstorg, 0);
599 mga_put_uint32(&mgaptr->mga_ydstorg, 0);
600 mga_put_uint32(&mgaptr->mga_cxbndry, (mga_info.mga_width - 1) << 16);
601 mga_put_uint32(&mgaptr->mga_ytop, 0);
602 mga_put_uint32(&mgaptr->mga_ybot, (mga_info.mga_height - 1) *
604 mga_put_uint32(&mgaptr->mga_plnwt, 0xffffffff);
605 mga_put_uint32(&mgaptr->mga_fcol, 0);
606 mga_put_uint32(&mgaptr->mga_bcol, 0xffffffff);
616 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
618 register uint8_t const save_palrdadd = mgaptr->mga_palrdadd;
620 mgaptr->mga_palrdadd = 0;
623 mga_info.mga_red[coloron] = mgaptr->mga_paldata;
624 mga_info.mga_green[coloron] = mgaptr->mga_paldata;
625 mga_info.mga_blue[coloron] = mgaptr->mga_paldata;
628 mgaptr->mga_palrdadd = save_palrdadd;
636 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
699 save_palwtadd = mgaptr->mga_palwtadd;
701 mgaptr->mga_palwtadd = 0;
704 mgaptr->mga_paldata = new_red[coloron];
705 mgaptr->mga_paldata = new_green[coloron];
706 mgaptr->mga_paldata = new_blue[coloron];
709 mgaptr->mga_palwtadd = save_palwtadd;
718 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
725 save_palwtadd = mgaptr->mga_palwtadd;
727 mgaptr->mga_palwtadd = 0;
730 mgaptr->mga_paldata = mga_info.mga_red[coloron];
731 mgaptr->mga_paldata = mga_info.mga_green[coloron];
732 mgaptr->mga_paldata = mga_info.mga_blue[coloron];
735 mgaptr->mga_palwtadd = save_palwtadd;
783 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
785 mga_put_uint32(&mgaptr->mga_opmode, mga_info.mga_opmode);
797 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
802 mga_put_uint32(&mgaptr->mga_fcol, fg);
803 mga_put_uint32(&mgaptr->mga_plnwt, 0xffffffff);
804 mga_put_uint32(&mgaptr->mga_dwgctl,
809 mga_put_uint32(&mgaptr->mga_fxbndry,
811 mga_put_uint32(&mgaptr->mga_draw_ydstlen,
828 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
842 mga_put_uint32(&mgaptr->mga_opmode, MGA_OPMODE_DIRDATASIZ_8BPP |
844 mga_put_uint32(&mgaptr->mga_plnwt, 0xffffffff);
845 mga_put_uint32(&mgaptr->mga_shift, 0);
846 mga_put_uint32(&mgaptr->mga_bcol, bg);
847 mga_put_uint32(&mgaptr->mga_fcol, fg);
848 mga_put_uint32(&mgaptr->mga_dwgctl,
853 mga_put_uint32(&mgaptr->mga_ar0, ((width + 31) / 32 * 32) *
855 mga_put_uint32(&mgaptr->mga_ar3, 0);
856 mga_put_uint32(&mgaptr->mga_ar5, (width + 31) / 32);
857 mga_put_uint32(&mgaptr->mga_fxbndry,
859 mga_put_uint32(&mgaptr->mga_draw_ydstlen,
898 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
903 mga_put_uint32(&mgaptr->mga_fcol, fg);
904 mga_put_uint32(&mgaptr->mga_plnwt, 0xffffffff);
905 mga_put_uint32(&mgaptr->mga_dwgctl,
909 mga_put_uint32(&mgaptr->mga_xystrt, x1 | (y1 << 16));
910 mga_put_uint32(&mgaptr->mga_draw_xyend, x2 | (y2 << 16));
920 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
932 fifostatus = mga_get_uint32(&mgaptr->mga_fifostatus);
940 fifostatus = mga_get_uint32(&mgaptr->mga_fifostatus);
954 register mga_t volatile *const mgaptr = mga_info.mga_control_ptr;
966 fifostatus = mga_get_uint32(&mgaptr->mga_fifostatus);
974 fifostatus = mga_get_uint32(&mgaptr->mga_fifostatus);