Lines Matching refs:ACCESS_FBINFO

156 	if (ACCESS_FBINFO(crtc1.panpos) >= 0) {  in matroxfb_crtc1_panpos()
161 panpos = ACCESS_FBINFO(crtc1.panpos); in matroxfb_crtc1_panpos()
165 ACCESS_FBINFO(crtc1.panpos) = -1; /* No update pending anymore */ in matroxfb_crtc1_panpos()
187 ACCESS_FBINFO(crtc1.vsync.cnt)++; in matrox_irq()
189 wake_up_interruptible(&ACCESS_FBINFO(crtc1.vsync.wait)); in matrox_irq()
194 ACCESS_FBINFO(crtc2.vsync.cnt)++; in matrox_irq()
195 wake_up_interruptible(&ACCESS_FBINFO(crtc2.vsync.wait)); in matrox_irq()
204 if (ACCESS_FBINFO(devflags.accelerator) == FB_ACCEL_MATROX_MGAG400) in matroxfb_enable_irq()
209 if (!test_and_set_bit(0, &ACCESS_FBINFO(irq_flags))) { in matroxfb_enable_irq()
210 if (request_irq(ACCESS_FBINFO(pcidev)->irq, matrox_irq, in matroxfb_enable_irq()
212 clear_bit(0, &ACCESS_FBINFO(irq_flags)); in matroxfb_enable_irq()
231 if (test_and_clear_bit(0, &ACCESS_FBINFO(irq_flags))) { in matroxfb_disable_irq()
234 if (ACCESS_FBINFO(devflags.accelerator) == FB_ACCEL_MATROX_MGAG400) in matroxfb_disable_irq()
238 free_irq(ACCESS_FBINFO(pcidev)->irq, MINFO); in matroxfb_disable_irq()
283 vs = &ACCESS_FBINFO(crtc1.vsync); in matroxfb_wait_for_sync()
286 if (ACCESS_FBINFO(devflags.accelerator) != FB_ACCEL_MATROX_MGAG400) { in matroxfb_wait_for_sync()
289 vs = &ACCESS_FBINFO(crtc2.vsync); in matroxfb_wait_for_sync()
327 if (ACCESS_FBINFO(dead)) in matrox_pan_var()
330 disp = ACCESS_FBINFO(currcon_display); in matrox_pan_var()
332 …pos = var->yoffset / fontheight(disp) * disp->next_line / ACCESS_FBINFO(devflags.textstep) + var->… in matrox_pan_var()
334 pos = (var->yoffset * var->xres_virtual + var->xoffset) * ACCESS_FBINFO(curr.final_bppShift) / 32; in matrox_pan_var()
335 pos += ACCESS_FBINFO(curr.ydstorg.chunks); in matrox_pan_var()
337 p0 = ACCESS_FBINFO(hw).CRTC[0x0D] = pos & 0xFF; in matrox_pan_var()
338 p1 = ACCESS_FBINFO(hw).CRTC[0x0C] = (pos & 0xFF00) >> 8; in matrox_pan_var()
339 …p2 = ACCESS_FBINFO(hw).CRTCEXT[0] = (ACCESS_FBINFO(hw).CRTCEXT[0] & 0xB0) | ((pos >> 16) & 0x0F) |… in matrox_pan_var()
341 p3 = ACCESS_FBINFO(hw).CRTCEXT[8] = pos >> 21; in matrox_pan_var()
354 if (ACCESS_FBINFO(devflags.support32MB)) in matrox_pan_var()
358 ACCESS_FBINFO(crtc1.panpos) = p2; in matrox_pan_var()
361 ACCESS_FBINFO(crtc1.panpos) = -1; in matrox_pan_var()
378 ACCESS_FBINFO(dead) = 1; in matroxfb_remove()
379 if (ACCESS_FBINFO(usecount)) { in matroxfb_remove()
384 unregister_framebuffer(&ACCESS_FBINFO(fbcon)); in matroxfb_remove()
386 del_timer_sync(&ACCESS_FBINFO(cursor.timer)); in matroxfb_remove()
388 if (ACCESS_FBINFO(mtrr.vram_valid)) in matroxfb_remove()
389 mtrr_del(ACCESS_FBINFO(mtrr.vram), ACCESS_FBINFO(video.base), ACCESS_FBINFO(video.len)); in matroxfb_remove()
391 mga_iounmap(ACCESS_FBINFO(mmio.vbase)); in matroxfb_remove()
392 mga_iounmap(ACCESS_FBINFO(video.vbase)); in matroxfb_remove()
393 release_mem_region(ACCESS_FBINFO(video.base), ACCESS_FBINFO(video.len_maximum)); in matroxfb_remove()
394 release_mem_region(ACCESS_FBINFO(mmio.base), 16384); in matroxfb_remove()
396 kfree(ACCESS_FBINFO(fbcon.disp)); in matroxfb_remove()
411 if (ACCESS_FBINFO(dead)) { in matroxfb_open()
414 ACCESS_FBINFO(usecount)++; in matroxfb_open()
416 ACCESS_FBINFO(userusecount)++; in matroxfb_open()
428 if (0 == --ACCESS_FBINFO(userusecount)) { in matroxfb_release()
432 if (!(--ACCESS_FBINFO(usecount)) && ACCESS_FBINFO(dead)) { in matroxfb_release()
456 if (con == ACCESS_FBINFO(currcon)) in matroxfb_pan_display()
485 if (ACCESS_FBINFO(devflags.video64bits)) in matroxfb_get_final_bppShift()
508 if (ACCESS_FBINFO(devflags.accelerator) == FB_ACCEL_MATROX_MGAG400) in matroxfb_test_and_set_rounding()
529 width = ACCESS_FBINFO(capable.vxres); in matroxfb_pitch_adjust()
531 if (ACCESS_FBINFO(devflags.precise_width)) { in matroxfb_pitch_adjust()
624 case 0: if (!ACCESS_FBINFO(capable.text)) return -EINVAL; in matroxfb_decode_var()
628 case 4: if (!ACCESS_FBINFO(capable.cfb4)) return -EINVAL; in matroxfb_decode_var()
646 vramlen = ACCESS_FBINFO(video.len_usable); in matroxfb_decode_var()
661 if (!ACCESS_FBINFO(capable.cross4MB) && (memlen > 0x400000)) { in matroxfb_decode_var()
755 if (regno >= ACCESS_FBINFO(curr.cmap_len)) in matroxfb_setcolreg()
758 ACCESS_FBINFO(palette[regno].red) = red; in matroxfb_setcolreg()
759 ACCESS_FBINFO(palette[regno].green) = green; in matroxfb_setcolreg()
760 ACCESS_FBINFO(palette[regno].blue) = blue; in matroxfb_setcolreg()
761 ACCESS_FBINFO(palette[regno].transp) = transp; in matroxfb_setcolreg()
763 p = ACCESS_FBINFO(currcon_display); in matroxfb_setcolreg()
793 ACCESS_FBINFO(cmap.cfb16[regno]) = in matroxfb_setcolreg()
802 ACCESS_FBINFO(cmap.cfb24[regno]) = in matroxfb_setcolreg()
810 ACCESS_FBINFO(cmap.cfb32[regno]) = in matroxfb_setcolreg()
825 struct fb_cmap* cmap = &ACCESS_FBINFO(currcon_display)->cmap; in my_install_cmap()
828 fb_set_cmap(cmap, 1, matroxfb_setcolreg, &ACCESS_FBINFO(fbcon)); in my_install_cmap()
830 fb_set_cmap(fb_default_cmap(ACCESS_FBINFO(curr.cmap_len)), in my_install_cmap()
831 1, matroxfb_setcolreg, &ACCESS_FBINFO(fbcon)); in my_install_cmap()
842 if (ACCESS_FBINFO(dead)) { in matroxfb_get_fix()
849 p = ACCESS_FBINFO(fbcon.disp); in matroxfb_get_fix()
854 fix->smem_start = ACCESS_FBINFO(video.base) + ACCESS_FBINFO(curr.ydstorg.bytes); in matroxfb_get_fix()
855 fix->smem_len = ACCESS_FBINFO(video.len_usable) - ACCESS_FBINFO(curr.ydstorg.bytes); in matroxfb_get_fix()
863 fix->mmio_start = ACCESS_FBINFO(mmio.base); in matroxfb_get_fix()
864 fix->mmio_len = ACCESS_FBINFO(mmio.len); in matroxfb_get_fix()
865 fix->accel = ACCESS_FBINFO(devflags.accelerator); in matroxfb_get_fix()
877 *var=ACCESS_FBINFO(fbcon.disp)->var; in matroxfb_get_var()
897 if (ACCESS_FBINFO(dead)) { in matroxfb_set_var()
904 display = ACCESS_FBINFO(fbcon.disp); in matroxfb_set_var()
927 …display->screen_base = ACCESS_FBINFO(fbcon.screen_base) = vaddr_va(ACCESS_FBINFO(video.vbase)) + y… in matroxfb_set_var()
937 display->type_aux = ACCESS_FBINFO(devflags.text_type_aux); in matroxfb_set_var()
938 …h = (var->xres_virtual / (fontwidth(display)?fontwidth(display):8)) * ACCESS_FBINFO(devflags.texts… in matroxfb_set_var()
941 display->inverse = ACCESS_FBINFO(devflags.inverse); in matroxfb_set_var()
949 if (con == ACCESS_FBINFO(currcon)) { in matroxfb_set_var()
952 ACCESS_FBINFO(curr.cmap_len) = cmap_len; in matroxfb_set_var()
955 ACCESS_FBINFO(curr.ydstorg.bytes) = 0; in matroxfb_set_var()
956 ACCESS_FBINFO(curr.ydstorg.chunks) = 0; in matroxfb_set_var()
957 ACCESS_FBINFO(curr.ydstorg.pixels) = 0; in matroxfb_set_var()
959 ydstorg += ACCESS_FBINFO(devflags.ydstorg); in matroxfb_set_var()
960 ACCESS_FBINFO(curr.ydstorg.bytes) = ydstorg; in matroxfb_set_var()
961 ACCESS_FBINFO(curr.ydstorg.chunks) = ydstorg >> (isInterleave(MINFO)?3:2); in matroxfb_set_var()
963 ACCESS_FBINFO(curr.ydstorg.pixels) = ydstorg; in matroxfb_set_var()
965 ACCESS_FBINFO(curr.ydstorg.pixels) = (ydstorg * 8) / var->bits_per_pixel; in matroxfb_set_var()
967 ACCESS_FBINFO(curr.final_bppShift) = matroxfb_get_final_bppShift(PMINFO var->bits_per_pixel); in matroxfb_set_var()
975 ACCESS_FBINFO(palette[i].red) = default_red[j]; in matroxfb_set_var()
976 ACCESS_FBINFO(palette[i].green) = default_grn[j]; in matroxfb_set_var()
977 ACCESS_FBINFO(palette[i].blue) = default_blu[j]; in matroxfb_set_var()
996 hw = &ACCESS_FBINFO(hw); in matroxfb_set_var()
998 del_timer_sync(&ACCESS_FBINFO(cursor.timer)); in matroxfb_set_var()
999 ACCESS_FBINFO(cursor.state) = CM_ERASE; in matroxfb_set_var()
1001 down_read(&ACCESS_FBINFO(altout).lock); in matroxfb_set_var()
1003 if (ACCESS_FBINFO(outputs[out]).src == MATROXFB_SRC_CRTC1 && in matroxfb_set_var()
1004 ACCESS_FBINFO(outputs[out]).output->compute) { in matroxfb_set_var()
1005 ACCESS_FBINFO(outputs[out]).output->compute(ACCESS_FBINFO(outputs[out]).data, &mt); in matroxfb_set_var()
1008 up_read(&ACCESS_FBINFO(altout).lock); in matroxfb_set_var()
1009 ACCESS_FBINFO(crtc1).pixclock = mt.pixclock; in matroxfb_set_var()
1010 ACCESS_FBINFO(crtc1).mnp = mt.mnp; in matroxfb_set_var()
1011 ACCESS_FBINFO(hw_switch->init(PMINFO &mt, display)); in matroxfb_set_var()
1014 …pos = var->yoffset / fontheight(display) * display->next_line / ACCESS_FBINFO(devflags.textstep) +… in matroxfb_set_var()
1018 … pos = (var->yoffset * var->xres_virtual + var->xoffset) * ACCESS_FBINFO(curr.final_bppShift) / 32; in matroxfb_set_var()
1019 pos += ACCESS_FBINFO(curr.ydstorg.chunks); in matroxfb_set_var()
1027 ACCESS_FBINFO(hw_switch->restore(PMINFO display)); in matroxfb_set_var()
1028 down_read(&ACCESS_FBINFO(altout).lock); in matroxfb_set_var()
1030 if (ACCESS_FBINFO(outputs[out]).src == MATROXFB_SRC_CRTC1 && in matroxfb_set_var()
1031 ACCESS_FBINFO(outputs[out]).output->program) { in matroxfb_set_var()
1032 ACCESS_FBINFO(outputs[out]).output->program(ACCESS_FBINFO(outputs[out]).data); in matroxfb_set_var()
1035 ACCESS_FBINFO(cursor.redraw) = 1; in matroxfb_set_var()
1037 if (ACCESS_FBINFO(outputs[out]).src == MATROXFB_SRC_CRTC1 && in matroxfb_set_var()
1038 ACCESS_FBINFO(outputs[out]).output->start) { in matroxfb_set_var()
1039 ACCESS_FBINFO(outputs[out]).output->start(ACCESS_FBINFO(outputs[out]).data); in matroxfb_set_var()
1042 up_read(&ACCESS_FBINFO(altout).lock); in matroxfb_set_var()
1046 if (console_fb_info == &ACCESS_FBINFO(fbcon)) { in matroxfb_set_var()
1057 strcpy(display_info.name, ACCESS_FBINFO(matrox_name)); in matroxfb_set_var()
1058 display_info.fb_address = ACCESS_FBINFO(video.base); in matroxfb_set_var()
1061 display_info.disp_reg_address = ACCESS_FBINFO(mmio.base); in matroxfb_set_var()
1083 if (regno >= ACCESS_FBINFO(curr.cmap_len)) in matrox_getcolreg()
1086 *red = ACCESS_FBINFO(palette[regno].red); in matrox_getcolreg()
1087 *green = ACCESS_FBINFO(palette[regno].green); in matrox_getcolreg()
1088 *blue = ACCESS_FBINFO(palette[regno].blue); in matrox_getcolreg()
1089 *transp = ACCESS_FBINFO(palette[regno].transp); in matrox_getcolreg()
1098 struct display* dsp = (con < 0) ? ACCESS_FBINFO(fbcon.disp) in matroxfb_get_cmap()
1103 if (ACCESS_FBINFO(dead)) { in matroxfb_get_cmap()
1107 if (con == ACCESS_FBINFO(currcon)) /* current console? */ in matroxfb_get_cmap()
1127 if (ACCESS_FBINFO(dead)) { in matroxfb_set_cmap()
1139 if (con == ACCESS_FBINFO(currcon)) { /* current console? */ in matroxfb_set_cmap()
1164 if (vblank->vcount >= ACCESS_FBINFO(currcon_display)->var.yres) in matroxfb_get_vblank()
1166 if (test_bit(0, &ACCESS_FBINFO(irq_flags))) { in matroxfb_get_vblank()
1170 vblank->count = ACCESS_FBINFO(crtc1).vsync.cnt; in matroxfb_get_vblank()
1187 if (ACCESS_FBINFO(dead)) { in matroxfb_ioctl()
1223 down_read(&ACCESS_FBINFO(altout.lock)); in matroxfb_ioctl()
1224 oproc = ACCESS_FBINFO(outputs[mom.output]).output; in matroxfb_ioctl()
1234 val = oproc->verifymode(ACCESS_FBINFO(outputs[mom.output]).data, mom.mode); in matroxfb_ioctl()
1237 if (ACCESS_FBINFO(outputs[mom.output]).mode != mom.mode) { in matroxfb_ioctl()
1238 ACCESS_FBINFO(outputs[mom.output]).mode = mom.mode; in matroxfb_ioctl()
1242 up_read(&ACCESS_FBINFO(altout.lock)); in matroxfb_ioctl()
1245 switch (ACCESS_FBINFO(outputs[mom.output]).src) { in matroxfb_ioctl()
1247 matroxfb_switch(ACCESS_FBINFO(currcon), info); in matroxfb_ioctl()
1253 down_read(&ACCESS_FBINFO(crtc2.lock)); in matroxfb_ioctl()
1254 crtc2 = ACCESS_FBINFO(crtc2.info); in matroxfb_ioctl()
1257 up_read(&ACCESS_FBINFO(crtc2.lock)); in matroxfb_ioctl()
1273 down_read(&ACCESS_FBINFO(altout.lock)); in matroxfb_ioctl()
1274 oproc = ACCESS_FBINFO(outputs[mom.output]).output; in matroxfb_ioctl()
1278 mom.mode = ACCESS_FBINFO(outputs[mom.output]).mode; in matroxfb_ioctl()
1281 up_read(&ACCESS_FBINFO(altout.lock)); in matroxfb_ioctl()
1300 if (!ACCESS_FBINFO(outputs[i]).output) in matroxfb_ioctl()
1302 switch (ACCESS_FBINFO(outputs[i]).src) { in matroxfb_ioctl()
1311 if (ACCESS_FBINFO(devflags.panellink)) { in matroxfb_ioctl()
1316 if (ACCESS_FBINFO(outputs[i]).src == MATROXFB_SRC_CRTC2) { in matroxfb_ioctl()
1325 if (ACCESS_FBINFO(outputs[i]).src != MATROXFB_SRC_CRTC1) { in matroxfb_ioctl()
1327 ACCESS_FBINFO(outputs[i]).src = MATROXFB_SRC_CRTC1; in matroxfb_ioctl()
1329 } else if (ACCESS_FBINFO(outputs[i]).src == MATROXFB_SRC_CRTC1) { in matroxfb_ioctl()
1331 ACCESS_FBINFO(outputs[i]).src = MATROXFB_SRC_NONE; in matroxfb_ioctl()
1336 matroxfb_switch(ACCESS_FBINFO(currcon), info); in matroxfb_ioctl()
1345 if (ACCESS_FBINFO(outputs[i]).src == MATROXFB_SRC_CRTC1) { in matroxfb_ioctl()
1359 if (ACCESS_FBINFO(outputs[i]).output) { in matroxfb_ioctl()
1360 switch (ACCESS_FBINFO(outputs[i]).src) { in matroxfb_ioctl()
1368 if (ACCESS_FBINFO(devflags.panellink)) { in matroxfb_ioctl()
1384 if (ACCESS_FBINFO(outputs[i]).output) { in matroxfb_ioctl()
1434 down_read(&ACCESS_FBINFO(altout).lock); in matroxfb_ioctl()
1435 if (!ACCESS_FBINFO(outputs[1]).output) { in matroxfb_ioctl()
1437 } else if (ACCESS_FBINFO(outputs[1]).output->getqueryctrl) { in matroxfb_ioctl()
1438 err = ACCESS_FBINFO(outputs[1]).output->getqueryctrl(ACCESS_FBINFO(outputs[1]).data, &qctrl); in matroxfb_ioctl()
1442 up_read(&ACCESS_FBINFO(altout).lock); in matroxfb_ioctl()
1456 down_read(&ACCESS_FBINFO(altout).lock); in matroxfb_ioctl()
1457 if (!ACCESS_FBINFO(outputs[1]).output) { in matroxfb_ioctl()
1459 } else if (ACCESS_FBINFO(outputs[1]).output->getctrl) { in matroxfb_ioctl()
1460 err = ACCESS_FBINFO(outputs[1]).output->getctrl(ACCESS_FBINFO(outputs[1]).data, &ctrl); in matroxfb_ioctl()
1464 up_read(&ACCESS_FBINFO(altout).lock); in matroxfb_ioctl()
1478 down_read(&ACCESS_FBINFO(altout).lock); in matroxfb_ioctl()
1479 if (!ACCESS_FBINFO(outputs[1]).output) { in matroxfb_ioctl()
1481 } else if (ACCESS_FBINFO(outputs[1]).output->setctrl) { in matroxfb_ioctl()
1482 err = ACCESS_FBINFO(outputs[1]).output->setctrl(ACCESS_FBINFO(outputs[1]).data, &ctrl); in matroxfb_ioctl()
1486 up_read(&ACCESS_FBINFO(altout).lock); in matroxfb_ioctl()
1505 if (ACCESS_FBINFO(dead)) in matroxfb_blank()
1554 if (ACCESS_FBINFO(currcon) >= 0) { in matroxfb_switch()
1556 cmap = &(ACCESS_FBINFO(currcon_display)->cmap); in matroxfb_switch()
1557 dprintk(KERN_DEBUG "switch1: con = %d, cmap.len = %d\n", ACCESS_FBINFO(currcon), cmap->len); in matroxfb_switch()
1569 ACCESS_FBINFO(currcon) = con; in matroxfb_switch()
1571 p = ACCESS_FBINFO(fbcon.disp); in matroxfb_switch()
1574 ACCESS_FBINFO(currcon_display) = p; in matroxfb_switch()
1673 vm = ACCESS_FBINFO(video.vbase); in matroxfb_getmemory()
1688 if (ACCESS_FBINFO(features.accel.has_cacheflush)) in matroxfb_getmemory()
1709 ACCESS_FBINFO(interleave) = !(!isMillenium(MINFO) || ((offs - 0x100000) & 0x3FFFFF)); in matroxfb_getmemory()
1934 ACCESS_FBINFO(hw_switch) = b->base->lowlevel; in initMatrox2()
1935 ACCESS_FBINFO(devflags.accelerator) = b->base->accelID; in initMatrox2()
1936 ACCESS_FBINFO(max_pixel_clock) = b->maxclk; in initMatrox2()
1939 ACCESS_FBINFO(capable.plnwt) = 1; in initMatrox2()
1940 ACCESS_FBINFO(chip) = b->chip; in initMatrox2()
1941 ACCESS_FBINFO(capable.srcorg) = b->flags & DEVF_SRCORG; in initMatrox2()
1942 ACCESS_FBINFO(devflags.video64bits) = b->flags & DEVF_VIDEO64BIT; in initMatrox2()
1944 ACCESS_FBINFO(devflags.vgastep) = 4; in initMatrox2()
1945 ACCESS_FBINFO(devflags.textmode) = 4; in initMatrox2()
1946 ACCESS_FBINFO(devflags.text_type_aux) = FB_AUX_TEXT_MGA_STEP16; in initMatrox2()
1948 ACCESS_FBINFO(devflags.vgastep) = 16; in initMatrox2()
1949 ACCESS_FBINFO(devflags.textmode) = 1; in initMatrox2()
1950 ACCESS_FBINFO(devflags.text_type_aux) = FB_AUX_TEXT_MGA_STEP16; in initMatrox2()
1952 ACCESS_FBINFO(devflags.vgastep) = 8; in initMatrox2()
1953 ACCESS_FBINFO(devflags.textmode) = 1; in initMatrox2()
1954 ACCESS_FBINFO(devflags.text_type_aux) = FB_AUX_TEXT_MGA_STEP8; in initMatrox2()
1957 ACCESS_FBINFO(devflags.support32MB) = (b->flags & DEVF_SUPPORT32MB) != 0; in initMatrox2()
1959 ACCESS_FBINFO(devflags.precise_width) = !(b->flags & DEVF_ANY_VXRES); in initMatrox2()
1960 ACCESS_FBINFO(devflags.crtc2) = (b->flags & DEVF_CRTC2) != 0; in initMatrox2()
1961 ACCESS_FBINFO(devflags.maven_capable) = (b->flags & DEVF_MAVEN_CAPABLE) != 0; in initMatrox2()
1962 ACCESS_FBINFO(devflags.dualhead) = (b->flags & DEVF_DUALHEAD) != 0; in initMatrox2()
1964 ACCESS_FBINFO(outputs[2]).data = MINFO; in initMatrox2()
1965 ACCESS_FBINFO(outputs[2]).output = &panellink_output; in initMatrox2()
1967 ACCESS_FBINFO(outputs[2]).src = MATROXFB_SRC_CRTC1; in initMatrox2()
1969 ACCESS_FBINFO(outputs[2]).src = MATROXFB_SRC_NONE; in initMatrox2()
1970 ACCESS_FBINFO(outputs[2]).mode = MATROXFB_OUTPUT_MODE_MONITOR; in initMatrox2()
1971 ACCESS_FBINFO(devflags.panellink) = 1; in initMatrox2()
1973 ACCESS_FBINFO(devflags.dfp_type) = dfp_type; in initMatrox2()
1974 ACCESS_FBINFO(devflags.g450dac) = (b->flags & DEVF_G450DAC) != 0; in initMatrox2()
1975ACCESS_FBINFO(devflags.textstep) = ACCESS_FBINFO(devflags.vgastep) * ACCESS_FBINFO(devflags.textmo… in initMatrox2()
1976 ACCESS_FBINFO(devflags.textvram) = 65536 / ACCESS_FBINFO(devflags.textmode); in initMatrox2()
1978 if (ACCESS_FBINFO(capable.cross4MB) < 0) in initMatrox2()
1979 ACCESS_FBINFO(capable.cross4MB) = b->flags & DEVF_CROSS4MB; in initMatrox2()
1981 ctrlptr_phys = pci_resource_start(ACCESS_FBINFO(pcidev), 1); in initMatrox2()
1982 video_base_phys = pci_resource_start(ACCESS_FBINFO(pcidev), 0); in initMatrox2()
1983 ACCESS_FBINFO(devflags.fbResource) = PCI_BASE_ADDRESS_0; in initMatrox2()
1985 ctrlptr_phys = pci_resource_start(ACCESS_FBINFO(pcidev), 0); in initMatrox2()
1986 video_base_phys = pci_resource_start(ACCESS_FBINFO(pcidev), 1); in initMatrox2()
1987 ACCESS_FBINFO(devflags.fbResource) = PCI_BASE_ADDRESS_1; in initMatrox2()
2005 ACCESS_FBINFO(video.len_maximum) = memsize; in initMatrox2()
2013 if (mga_ioremap(ctrlptr_phys, 16384, MGA_IOREMAP_MMIO, &ACCESS_FBINFO(mmio.vbase))) { in initMatrox2()
2017 ACCESS_FBINFO(mmio.base) = ctrlptr_phys; in initMatrox2()
2018 ACCESS_FBINFO(mmio.len) = 16384; in initMatrox2()
2019 ACCESS_FBINFO(video.base) = video_base_phys; in initMatrox2()
2020 if (mga_ioremap(video_base_phys, memsize, MGA_IOREMAP_FB, &ACCESS_FBINFO(video.vbase))) { in initMatrox2()
2029 pci_read_config_dword(ACCESS_FBINFO(pcidev), PCI_OPTION_REG, &mga_option); in initMatrox2()
2030 pci_read_config_dword(ACCESS_FBINFO(pcidev), PCI_COMMAND, &cmd); in initMatrox2()
2036 if (!(mga_option & 0x20000000) && !ACCESS_FBINFO(devflags.nopciretry)) { in initMatrox2()
2040 ACCESS_FBINFO(devflags.nopciretry) = 1; in initMatrox2()
2042 pci_write_config_dword(ACCESS_FBINFO(pcidev), PCI_COMMAND, cmd); in initMatrox2()
2043 pci_write_config_dword(ACCESS_FBINFO(pcidev), PCI_OPTION_REG, mga_option); in initMatrox2()
2044 ACCESS_FBINFO(hw).MXoptionReg = mga_option; in initMatrox2()
2048 pci_write_config_dword(ACCESS_FBINFO(pcidev), PCI_MGA_INDEX, 0x00003C00); in initMatrox2()
2053 if (ACCESS_FBINFO(hw_switch)->preinit(PMINFO2)) { in initMatrox2()
2058 if (!matroxfb_getmemory(PMINFO memsize, &ACCESS_FBINFO(video.len)) || !ACCESS_FBINFO(video.len)) { in initMatrox2()
2062 ACCESS_FBINFO(devflags.ydstorg) = 0; in initMatrox2()
2064 ACCESS_FBINFO(currcon) = -1; in initMatrox2()
2065 ACCESS_FBINFO(currcon_display) = d; in initMatrox2()
2066 ACCESS_FBINFO(video.base) = video_base_phys; in initMatrox2()
2067 ACCESS_FBINFO(video.len_usable) = ACCESS_FBINFO(video.len); in initMatrox2()
2068 if (ACCESS_FBINFO(video.len_usable) > b->base->maxdisplayable) in initMatrox2()
2069 ACCESS_FBINFO(video.len_usable) = b->base->maxdisplayable; in initMatrox2()
2072ACCESS_FBINFO(mtrr.vram) = mtrr_add(video_base_phys, ACCESS_FBINFO(video.len), MTRR_TYPE_WRCOMB, 1… in initMatrox2()
2073 ACCESS_FBINFO(mtrr.vram_valid) = 1; in initMatrox2()
2078 if (!ACCESS_FBINFO(devflags.novga)) in initMatrox2()
2081 ACCESS_FBINFO(hw_switch->reset(PMINFO2)); in initMatrox2()
2083 ACCESS_FBINFO(fbcon.monspecs.hfmin) = 0; in initMatrox2()
2084 ACCESS_FBINFO(fbcon.monspecs.hfmax) = fh; in initMatrox2()
2085 ACCESS_FBINFO(fbcon.monspecs.vfmin) = 0; in initMatrox2()
2086 ACCESS_FBINFO(fbcon.monspecs.vfmax) = fv; in initMatrox2()
2087 ACCESS_FBINFO(fbcon.monspecs.dpms) = 0; /* TBD */ in initMatrox2()
2090 if ((depth == RSText8) && (!*ACCESS_FBINFO(fbcon.fontname))) { in initMatrox2()
2091 strcpy(ACCESS_FBINFO(fbcon.fontname), "VGA8x8"); in initMatrox2()
2102 strcpy(ACCESS_FBINFO(fbcon.modename), "MATROX VGA"); in initMatrox2()
2103 ACCESS_FBINFO(fbcon.changevar) = NULL; in initMatrox2()
2104 ACCESS_FBINFO(fbcon.node) = NODEV; in initMatrox2()
2105 ACCESS_FBINFO(fbcon.fbops) = &matroxfb_ops; in initMatrox2()
2106 ACCESS_FBINFO(fbcon.disp) = d; in initMatrox2()
2107 ACCESS_FBINFO(fbcon.switch_con) = &matroxfb_switch; in initMatrox2()
2108 ACCESS_FBINFO(fbcon.updatevar) = &matroxfb_updatevar; in initMatrox2()
2109 ACCESS_FBINFO(fbcon.blank) = &matroxfb_blank24; in initMatrox2()
2111 ACCESS_FBINFO(fbcon.flags) = hotplug ? FBINFO_FLAG_MODULE : FBINFO_FLAG_DEFAULT; in initMatrox2()
2112 ACCESS_FBINFO(video.len_usable) &= PAGE_MASK; in initMatrox2()
2117 fb_find_mode(&vesafb_defined, &ACCESS_FBINFO(fbcon), videomode[0]?videomode:NULL, in initMatrox2()
2180 strcpy(ACCESS_FBINFO(matrox_name), "MTRX,"); /* OpenFirmware naming convension */ in initMatrox2()
2181 strncat(ACCESS_FBINFO(matrox_name), b->name, 26); in initMatrox2()
2183 console_fb_info = &ACCESS_FBINFO(fbcon); in initMatrox2()
2213 if (matroxfb_set_var(&vesafb_defined, -2, &ACCESS_FBINFO(fbcon))) { in initMatrox2()
2222 ACCESS_FBINFO(video.base), vaddr_va(ACCESS_FBINFO(video.vbase)), ACCESS_FBINFO(video.len)); in initMatrox2()
2227 if (register_framebuffer(&ACCESS_FBINFO(fbcon)) < 0) { in initMatrox2()
2231 GET_FB_IDX(ACCESS_FBINFO(fbcon.node)), ACCESS_FBINFO(fbcon.modename)); in initMatrox2()
2232 if (ACCESS_FBINFO(currcon) < 0) { in initMatrox2()
2236 GET_FB_IDX(ACCESS_FBINFO(fbcon.node))); in initMatrox2()
2237 matroxfb_set_var(&vesafb_defined, -1, &ACCESS_FBINFO(fbcon)); in initMatrox2()
2242 mga_iounmap(ACCESS_FBINFO(video.vbase)); in initMatrox2()
2244 mga_iounmap(ACCESS_FBINFO(mmio.vbase)); in initMatrox2()
2246 release_mem_region(video_base_phys, ACCESS_FBINFO(video.len_maximum)); in initMatrox2()
2302 list_add(&ACCESS_FBINFO(next_fb), &matroxfb_list); in matroxfb_register_device()
2322 list_del(&ACCESS_FBINFO(next_fb)); in matroxfb_unregister_device()
2386 ACCESS_FBINFO(pcidev) = pdev; in matroxfb_probe()
2387 ACCESS_FBINFO(dead) = 0; in matroxfb_probe()
2388 ACCESS_FBINFO(usecount) = 0; in matroxfb_probe()
2391 memcpy(ACCESS_FBINFO(fbcon.fontname), fontname, sizeof(ACCESS_FBINFO(fbcon.fontname))); in matroxfb_probe()
2393 ACCESS_FBINFO(devflags.inverse) = inverse; in matroxfb_probe()
2394 ACCESS_FBINFO(devflags.memtype) = memtype; in matroxfb_probe()
2398 ACCESS_FBINFO(devflags.novga) = novga; in matroxfb_probe()
2399 ACCESS_FBINFO(devflags.nobios) = nobios; in matroxfb_probe()
2400 ACCESS_FBINFO(devflags.noinit) = noinit; in matroxfb_probe()
2406 ACCESS_FBINFO(devflags.novga) = 1; in matroxfb_probe()
2407 ACCESS_FBINFO(devflags.nobios) = 1; in matroxfb_probe()
2408 ACCESS_FBINFO(devflags.noinit) = 0; in matroxfb_probe()
2411 ACCESS_FBINFO(devflags.nopciretry) = no_pci_retry; in matroxfb_probe()
2412 ACCESS_FBINFO(devflags.mga_24bpp_fix) = inv24; in matroxfb_probe()
2413 ACCESS_FBINFO(devflags.precise_width) = option_precise_width; in matroxfb_probe()
2414 ACCESS_FBINFO(devflags.hwcursor) = hwcursor; in matroxfb_probe()
2415 ACCESS_FBINFO(devflags.blink) = blink; in matroxfb_probe()
2416 ACCESS_FBINFO(devflags.sgram) = sgram; in matroxfb_probe()
2417 ACCESS_FBINFO(capable.cross4MB) = cross4MB; in matroxfb_probe()
2419 ACCESS_FBINFO(fastfont.size) = fastfont; in matroxfb_probe()
2421 ACCESS_FBINFO(cursor.state) = CM_ERASE; in matroxfb_probe()
2422 init_timer (&ACCESS_FBINFO(cursor.timer)); in matroxfb_probe()
2423 ACCESS_FBINFO(cursor.timer.data) = (unsigned long)MINFO; in matroxfb_probe()
2424 spin_lock_init(&ACCESS_FBINFO(lock.DAC)); in matroxfb_probe()
2425 spin_lock_init(&ACCESS_FBINFO(lock.accel)); in matroxfb_probe()
2426 init_rwsem(&ACCESS_FBINFO(crtc2.lock)); in matroxfb_probe()
2427 init_rwsem(&ACCESS_FBINFO(altout.lock)); in matroxfb_probe()
2428 ACCESS_FBINFO(irq_flags) = 0; in matroxfb_probe()
2429 init_waitqueue_head(&ACCESS_FBINFO(crtc1.vsync.wait)); in matroxfb_probe()
2430 init_waitqueue_head(&ACCESS_FBINFO(crtc2.vsync.wait)); in matroxfb_probe()
2431 ACCESS_FBINFO(crtc1.panpos) = -1; in matroxfb_probe()