Lines Matching refs:regRec
505 Savage_WriteMode(const DisplayModeEx& mode, const SavageRegRec& regRec) in Savage_WriteMode() argument
525 WriteCrtcReg(0x67, regRec.CR67 & ~0x0e); // no STREAMS yet old and new in Savage_WriteMode()
547 WriteCrtcReg(0x66, regRec.CR66); in Savage_WriteMode()
548 WriteCrtcReg(0x3a, regRec.CR3A); in Savage_WriteMode()
549 WriteCrtcReg(0x58, regRec.CR58); in Savage_WriteMode()
550 WriteCrtcReg(0x53, regRec.CR53 & 0x7f); in Savage_WriteMode()
568 for (int j = 0; j < (int)B_COUNT_OF(regRec.CRTC); j++) in Savage_WriteMode()
569 WriteCrtcReg(j, regRec.CRTC[j]); in Savage_WriteMode()
583 WriteCrtcReg(0x53, regRec.CR53); in Savage_WriteMode()
584 WriteCrtcReg(0x5d, regRec.CR5D); in Savage_WriteMode()
585 WriteCrtcReg(0x5e, regRec.CR5E); in Savage_WriteMode()
586 WriteCrtcReg(0x3b, regRec.CR3B); in Savage_WriteMode()
587 WriteCrtcReg(0x3c, regRec.CR3C); in Savage_WriteMode()
588 WriteCrtcReg(0x43, regRec.CR43); in Savage_WriteMode()
589 WriteCrtcReg(0x65, regRec.CR65); in Savage_WriteMode()
592 WriteCrtcReg(0x67, regRec.CR67 & ~0x0e); // no streams for new and old streams engines in Savage_WriteMode()
595 WriteCrtcReg(0x34, regRec.CR34); in Savage_WriteMode()
596 WriteCrtcReg(0x42, regRec.CR42); in Savage_WriteMode()
597 WriteCrtcReg(0x45, regRec.CR45); in Savage_WriteMode()
598 WriteCrtcReg(0x50, regRec.CR50); in Savage_WriteMode()
599 WriteCrtcReg(0x51, regRec.CR51); in Savage_WriteMode()
603 WriteCrtcReg(0x69, regRec.CR69); in Savage_WriteMode()
605 WriteCrtcReg(0x33, regRec.CR33); in Savage_WriteMode()
606 WriteCrtcReg(0x86, regRec.CR86); in Savage_WriteMode()
607 WriteCrtcReg(0x88, regRec.CR88); in Savage_WriteMode()
608 WriteCrtcReg(0x90, regRec.CR90); in Savage_WriteMode()
609 WriteCrtcReg(0x91, regRec.CR91); in Savage_WriteMode()
612 WriteCrtcReg(0xb0, regRec.CRB0); in Savage_WriteMode()
614 WriteSeqReg(0x1b, regRec.SR1B); in Savage_WriteMode()
618 WriteSeqReg(0x12, regRec.SR12); in Savage_WriteMode()
619 WriteSeqReg(0x13, regRec.SR13); in Savage_WriteMode()
620 WriteSeqReg(0x29, regRec.SR29); in Savage_WriteMode()
632 WriteCrtcReg(0x67, regRec.CR67); in Savage_WriteMode()
663 SavageRegRec regRec; in Savage_ModeInit() local
670 InitCrtcTimingValues(mode, horizScaleFactor, regRec.CRTC, in Savage_ModeInit()
671 regRec.CR3B, regRec.CR3C, regRec.CR5D, regRec.CR5E); in Savage_ModeInit()
672 regRec.CRTC[0x17] = 0xEB; in Savage_ModeInit()
675 regRec.CR67 = 0x00; in Savage_ModeInit()
680 regRec.CR67 = 0x10; // 8bpp, 2 pixels/clock in Savage_ModeInit()
682 regRec.CR67 = 0x00; // 8bpp, 1 pixel/clock in Savage_ModeInit()
688 regRec.CR67 = 0x30; // 15bpp, 2 pixel/clock in Savage_ModeInit()
690 regRec.CR67 = 0x20; // 15bpp, 1 pixels/clock in Savage_ModeInit()
696 regRec.CR67 = 0x50; // 16bpp, 2 pixel/clock in Savage_ModeInit()
698 regRec.CR67 = 0x40; // 16bpp, 1 pixels/clock in Savage_ModeInit()
702 regRec.CR67 = 0xd0; in Savage_ModeInit()
706 regRec.CR3A = (ReadCrtcReg(0x3a) & 0x7f) | 0x15; in Savage_ModeInit()
707 regRec.CR53 = 0x00; in Savage_ModeInit()
708 regRec.CR66 = 0x89; in Savage_ModeInit()
709 regRec.CR58 = (ReadCrtcReg(0x58) & 0x80) | 0x13; in Savage_ModeInit()
711 regRec.SR1B = ReadSeqReg(0x1b) | 0x10; // enable 8-bit Color Lookup Table in Savage_ModeInit()
713 regRec.CR43 = regRec.CR45 = regRec.CR65 = 0x00; in Savage_ModeInit()
717 regRec.SR12 = (r << 6) | (n & 0x3f); in Savage_ModeInit()
718 regRec.SR13 = m & 0xff; in Savage_ModeInit()
719 regRec.SR29 = (r & 4) | (m & 0x100) >> 5 | (n & 0x40) >> 2; in Savage_ModeInit()
723 regRec.CR42 = 0x00; in Savage_ModeInit()
724 regRec.CR34 = 0x10; in Savage_ModeInit()
727 regRec.CR91 = 0xff & width; in Savage_ModeInit()
728 regRec.CR51 = (0x300 & width) >> 4; in Savage_ModeInit()
729 regRec.CR90 = 0x80 | (width >> 8); in Savage_ModeInit()
734 regRec.CR50 = 0; in Savage_ModeInit()
736 regRec.CR50 = 0x10; in Savage_ModeInit()
738 regRec.CR50 = 0x30; in Savage_ModeInit()
743 regRec.CR50 |= 0x40; in Savage_ModeInit()
745 regRec.CR50 |= 0x80; in Savage_ModeInit()
747 regRec.CR50 |= 0x00; in Savage_ModeInit()
749 regRec.CR50 |= 0x01; in Savage_ModeInit()
751 regRec.CR50 |= 0xc0; in Savage_ModeInit()
753 regRec.CR50 |= 0x81; in Savage_ModeInit()
755 regRec.CR50 |= 0xc1; // use GBD in Savage_ModeInit()
758 regRec.CR33 = 0x00; in Savage_ModeInit()
760 regRec.CR33 = 0x08; in Savage_ModeInit()
762 regRec.CR69 = 0; in Savage_ModeInit()
763 regRec.CR86 = ReadCrtcReg(0x86) | 0x08; in Savage_ModeInit()
764 regRec.CR88 = ReadCrtcReg(0x88) | DISABLE_BLOCK_WRITE_2D; in Savage_ModeInit()
765 regRec.CRB0 = ReadCrtcReg(0xb0) | 0x80; in Savage_ModeInit()
767 Savage_WriteMode(mode, regRec); // write registers to set mode in Savage_ModeInit()