Lines Matching refs:regs

110 #define wb_64(regs,reg,dat) (*(((volatile unsigned char *)regs) + reg) = dat)  argument
111 #define rb_64(regs, reg) (*(((volatile unsigned char *)regs) + reg)) argument
113 #define ww_64(regs,reg,dat) (*(volatile unsigned short *)(regs + reg) = dat) argument
331 volatile unsigned char *regs = CyberRegs; in Cyber_init() local
355 wb_64(regs, S3_CRTC_ADR, S3_REG_LOCK2); in Cyber_init()
356 wb_64(regs, S3_CRTC_DATA, 0xa0); in Cyber_init()
357 wb_64(regs, S3_CRTC_ADR, S3_HGC_MODE); in Cyber_init()
358 wb_64(regs, S3_CRTC_DATA, 0x00); in Cyber_init()
359 wb_64(regs, S3_CRTC_ADR, S3_HWGC_DX); in Cyber_init()
360 wb_64(regs, S3_CRTC_DATA, 0x00); in Cyber_init()
361 wb_64(regs, S3_CRTC_ADR, S3_HWGC_DY); in Cyber_init()
362 wb_64(regs, S3_CRTC_DATA, 0x00); in Cyber_init()
523 volatile unsigned char *regs = CyberRegs; in Cyber_setcolreg() local
531 wb_64(regs, 0x3c8, (unsigned char) regno); in Cyber_setcolreg()
541 wb_64(regs, 0x3c9, red); in Cyber_setcolreg()
542 wb_64(regs, 0x3c9, green); in Cyber_setcolreg()
543 wb_64(regs, 0x3c9, blue); in Cyber_setcolreg()
586 volatile unsigned char *regs = CyberRegs; in Cyberfb_blank() local
592 gfx_on_off (1, regs); in Cyberfb_blank()
596 wb_64(regs, 0x3c8, (unsigned char) i); in Cyberfb_blank()
598 wb_64(regs, 0x3c9, 48); in Cyberfb_blank()
599 wb_64(regs, 0x3c9, 0); in Cyberfb_blank()
600 wb_64(regs, 0x3c9, 0); in Cyberfb_blank()
604 wb_64(regs, 0x3c8, (unsigned char) i); in Cyberfb_blank()
605 wb_64(regs, 0x3c9, Cyber_colour_table[i][0]); in Cyberfb_blank()
606 wb_64(regs, 0x3c9, Cyber_colour_table[i][1]); in Cyberfb_blank()
607 wb_64(regs, 0x3c9, Cyber_colour_table[i][2]); in Cyberfb_blank()
650 volatile unsigned char *regs = CyberRegs; in Cyber_BitBLT() local
672 *((u_short volatile *)(regs + S3_PIXEL_CNTL)) = 0xa000; in Cyber_BitBLT()
673 *((u_short volatile *)(regs + S3_FRGD_MIX)) = (0x0060 | mode); in Cyber_BitBLT()
675 *((u_short volatile *)(regs + S3_CUR_X)) = curx; in Cyber_BitBLT()
676 *((u_short volatile *)(regs + S3_CUR_Y)) = cury; in Cyber_BitBLT()
678 *((u_short volatile *)(regs + S3_DESTX_DIASTP)) = destx; in Cyber_BitBLT()
679 *((u_short volatile *)(regs + S3_DESTY_AXSTP)) = desty; in Cyber_BitBLT()
681 *((u_short volatile *)(regs + S3_MIN_AXIS_PCNT)) = height - 1; in Cyber_BitBLT()
682 *((u_short volatile *)(regs + S3_MAJ_AXIS_PCNT)) = width - 1; in Cyber_BitBLT()
684 *((u_short volatile *)(regs + S3_CMD)) = blitcmd; in Cyber_BitBLT()
694 volatile unsigned char *regs = CyberRegs; in Cyber_RectFill() local
700 *((u_short volatile *)(regs + S3_PIXEL_CNTL)) = 0xa000; in Cyber_RectFill()
701 *((u_short volatile *)(regs + S3_FRGD_MIX)) = (0x0020 | mode); in Cyber_RectFill()
703 *((u_short volatile *)(regs + S3_MULT_MISC)) = 0xe000; in Cyber_RectFill()
704 *((u_short volatile *)(regs + S3_FRGD_COLOR)) = color; in Cyber_RectFill()
706 *((u_short volatile *)(regs + S3_CUR_X)) = x; in Cyber_RectFill()
707 *((u_short volatile *)(regs + S3_CUR_Y)) = y; in Cyber_RectFill()
709 *((u_short volatile *)(regs + S3_MIN_AXIS_PCNT)) = height - 1; in Cyber_RectFill()
710 *((u_short volatile *)(regs + S3_MAJ_AXIS_PCNT)) = width - 1; in Cyber_RectFill()
712 *((u_short volatile *)(regs + S3_CMD)) = blitcmd; in Cyber_RectFill()
723 volatile unsigned char *regs = CyberRegs;
725 *(regs + S3_CRTC_ADR) = 0x39;
726 *(regs + S3_CRTC_DATA) = 0xa0;
728 *(regs + S3_CRTC_ADR) = S3_HWGC_ORGX_H;
729 *(regs + S3_CRTC_DATA) = (char)((x & 0x0700) >> 8);
730 *(regs + S3_CRTC_ADR) = S3_HWGC_ORGX_L;
731 *(regs + S3_CRTC_DATA) = (char)(x & 0x00ff);
733 *(regs + S3_CRTC_ADR) = S3_HWGC_ORGY_H;
734 *(regs + S3_CRTC_DATA) = (char)((y & 0x0700) >> 8);
735 *(regs + S3_CRTC_ADR) = S3_HWGC_ORGY_L;
736 *(regs + S3_CRTC_DATA) = (char)(y & 0x00ff);
1378 inline unsigned char RAttr (volatile unsigned char *regs, short idx) in RAttr() argument
1380 wb_64 (regs, ACT_ADDRESS_W, idx); in RAttr()
1383 return (rb_64(regs, ACT_ADDRESS_R)); in RAttr()
1387 inline unsigned char RSeq (volatile unsigned char *regs, short idx) in RSeq() argument
1389 wb_64 (regs, SEQ_ADDRESS, idx); in RSeq()
1391 return (rb_64(regs, SEQ_ADDRESS_R)); in RSeq()
1395 inline unsigned char RCrt (volatile unsigned char *regs, short idx) in RCrt() argument
1397 wb_64 (regs, CRT_ADDRESS, idx); in RCrt()
1399 return (rb_64(regs, CRT_ADDRESS_R)); in RCrt()
1403 inline unsigned char RGfx (volatile unsigned char *regs, short idx) in RGfx() argument
1405 wb_64 (regs, GCT_ADDRESS, idx); in RGfx()
1407 return (rb_64(regs, GCT_ADDRESS_R)); in RGfx()
1461 inline void gfx_on_off(int toggle, volatile unsigned char *regs) in gfx_on_off() argument
1470 r = (int) RSeq(regs, SEQ_ID_CLOCKING_MODE); in gfx_on_off()
1473 WSeq (regs, SEQ_ID_CLOCKING_MODE, r | toggle); in gfx_on_off()
1576 volatile unsigned char *regs = CyberRegs; in cv64_board_init() local
1597 wb_64 (regs, SREG_VIDEO_SUBS_ENABLE, 0x10); in cv64_board_init()
1599 wb_64 (regs, SREG_OPTION_SELECT, 0x1); in cv64_board_init()
1601 wb_64 (regs, SREG_VIDEO_SUBS_ENABLE, 0x8); in cv64_board_init()
1603 wb_64 (regs, GREG_MISC_OUTPUT_W, 0x03); in cv64_board_init()
1605 WCrt (regs, CRT_ID_REGISTER_LOCK_1, 0x48); in cv64_board_init()
1607 WCrt (regs, CRT_ID_REGISTER_LOCK_2, 0xA5); in cv64_board_init()
1610 test = RCrt (regs, CRT_ID_SYSTEM_CONFIG); in cv64_board_init()
1613 WCrt (regs, CRT_ID_SYSTEM_CONFIG, test); in cv64_board_init()
1620 wb_64 (regs, ECR_ADV_FUNC_CNTL, 0x31); in cv64_board_init()
1627 wb_64 (regs, GREG_MISC_OUTPUT_W, 0x23); in cv64_board_init()
1630 WCrt (regs, CRT_ID_EXT_SYS_CNTL_4, 0x0); in cv64_board_init()
1635 WSeq (regs, SEQ_ID_CLOCKING_MODE, 0x01); in cv64_board_init()
1637 WSeq (regs, SEQ_ID_MAP_MASK, 0x0F); in cv64_board_init()
1639 WSeq (regs, SEQ_ID_CHAR_MAP_SELECT, 0x0); in cv64_board_init()
1641 WSeq (regs, SEQ_ID_MEMORY_MODE, 0x2); in cv64_board_init()
1643 WSeq (regs, SEQ_ID_UNLOCK_EXT, 0x6); in cv64_board_init()
1646 test = RSeq (regs, SEQ_ID_BUS_REQ_CNTL); in cv64_board_init()
1648 WSeq (regs, SEQ_ID_BUS_REQ_CNTL, test); in cv64_board_init()
1651 WSeq (regs, SEQ_ID_RAMDAC_CNTL, 0xC0); in cv64_board_init()
1654 test = RSeq (regs, SEQ_ID_CLKSYN_CNTL_2); in cv64_board_init()
1660 WSeq (regs, SEQ_ID_CLKSYN_CNTL_2, test); in cv64_board_init()
1665 WSeq (regs, SEQ_ID_MCLK_HI, test); in cv64_board_init()
1667 WSeq (regs, SEQ_ID_MCLK_LO, test); in cv64_board_init()
1670 if (RCrt (regs, CRT_ID_REVISION) == 0x10) in cv64_board_init()
1671 WSeq (regs, SEQ_ID_MORE_MAGIC, test); in cv64_board_init()
1676 WSeq (regs, SEQ_ID_DCLK_HI, 0x13); in cv64_board_init()
1677 WSeq (regs, SEQ_ID_DCLK_LO, 0x41); in cv64_board_init()
1680 test = RSeq (regs, SEQ_ID_CLKSYN_CNTL_2); in cv64_board_init()
1682 WSeq (regs, SEQ_ID_CLKSYN_CNTL_2, test); in cv64_board_init()
1685 test = rb_64(regs, GREG_MISC_OUTPUT_R); in cv64_board_init()
1687 wb_64 (regs, GREG_MISC_OUTPUT_W, test); in cv64_board_init()
1690 WSeq (regs, SEQ_ID_CLKSYN_CNTL_2, 0x2); in cv64_board_init()
1694 WCrt (regs, CRT_ID_HOR_TOTAL, 0x5F); in cv64_board_init()
1696 WCrt (regs, CRT_ID_HOR_DISP_ENA_END, 0x4F); in cv64_board_init()
1698 WCrt (regs, CRT_ID_START_HOR_BLANK, 0x50); in cv64_board_init()
1700 WCrt (regs, CRT_ID_END_HOR_BLANK, 0x82); in cv64_board_init()
1702 WCrt (regs, CRT_ID_START_HOR_RETR, 0x54); in cv64_board_init()
1704 WCrt (regs, CRT_ID_END_HOR_RETR, 0x80); in cv64_board_init()
1705 WCrt (regs, CRT_ID_VER_TOTAL, 0xBF); in cv64_board_init()
1706 WCrt (regs, CRT_ID_OVERFLOW, 0x1F); in cv64_board_init()
1707 WCrt (regs, CRT_ID_PRESET_ROW_SCAN, 0x0); in cv64_board_init()
1708 WCrt (regs, CRT_ID_MAX_SCAN_LINE, 0x40); in cv64_board_init()
1709 WCrt (regs, CRT_ID_CURSOR_START, 0x00); in cv64_board_init()
1710 WCrt (regs, CRT_ID_CURSOR_END, 0x00); in cv64_board_init()
1711 WCrt (regs, CRT_ID_START_ADDR_HIGH, 0x00); in cv64_board_init()
1712 WCrt (regs, CRT_ID_START_ADDR_LOW, 0x00); in cv64_board_init()
1713 WCrt (regs, CRT_ID_CURSOR_LOC_HIGH, 0x00); in cv64_board_init()
1714 WCrt (regs, CRT_ID_CURSOR_LOC_LOW, 0x00); in cv64_board_init()
1715 WCrt (regs, CRT_ID_START_VER_RETR, 0x9C); in cv64_board_init()
1716 WCrt (regs, CRT_ID_END_VER_RETR, 0x0E); in cv64_board_init()
1717 WCrt (regs, CRT_ID_VER_DISP_ENA_END, 0x8F); in cv64_board_init()
1718 WCrt (regs, CRT_ID_SCREEN_OFFSET, 0x50); in cv64_board_init()
1719 WCrt (regs, CRT_ID_UNDERLINE_LOC, 0x00); in cv64_board_init()
1720 WCrt (regs, CRT_ID_START_VER_BLANK, 0x96); in cv64_board_init()
1721 WCrt (regs, CRT_ID_END_VER_BLANK, 0xB9); in cv64_board_init()
1722 WCrt (regs, CRT_ID_MODE_CONTROL, 0xE3); in cv64_board_init()
1723 WCrt (regs, CRT_ID_LINE_COMPARE, 0xFF); in cv64_board_init()
1724 WCrt (regs, CRT_ID_BACKWAD_COMP_3, 0x10); /* FIFO enabled */ in cv64_board_init()
1725 WCrt (regs, CRT_ID_MISC_1, 0x35); in cv64_board_init()
1726 WCrt (regs, CRT_ID_DISPLAY_FIFO, 0x5A); in cv64_board_init()
1727 WCrt (regs, CRT_ID_EXT_MEM_CNTL_2, 0x70); in cv64_board_init()
1728 WCrt (regs, CRT_ID_LAW_POS_LO, 0x40); in cv64_board_init()
1729 WCrt (regs, CRT_ID_EXT_MEM_CNTL_3, 0xFF); in cv64_board_init()
1731 WGfx (regs, GCT_ID_SET_RESET, 0x0); in cv64_board_init()
1732 WGfx (regs, GCT_ID_ENABLE_SET_RESET, 0x0); in cv64_board_init()
1733 WGfx (regs, GCT_ID_COLOR_COMPARE, 0x0); in cv64_board_init()
1734 WGfx (regs, GCT_ID_DATA_ROTATE, 0x0); in cv64_board_init()
1735 WGfx (regs, GCT_ID_READ_MAP_SELECT, 0x0); in cv64_board_init()
1736 WGfx (regs, GCT_ID_GRAPHICS_MODE, 0x40); in cv64_board_init()
1737 WGfx (regs, GCT_ID_MISC, 0x01); in cv64_board_init()
1738 WGfx (regs, GCT_ID_COLOR_XCARE, 0x0F); in cv64_board_init()
1739 WGfx (regs, GCT_ID_BITMASK, 0xFF); in cv64_board_init()
1743 WAttr (regs, i, i); in cv64_board_init()
1745 WAttr (regs, ACT_ID_ATTR_MODE_CNTL, 0x41); in cv64_board_init()
1746 WAttr (regs, ACT_ID_OVERSCAN_COLOR, 0x01); in cv64_board_init()
1747 WAttr (regs, ACT_ID_COLOR_PLANE_ENA, 0x0F); in cv64_board_init()
1748 WAttr (regs, ACT_ID_HOR_PEL_PANNING, 0x0); in cv64_board_init()
1749 WAttr (regs, ACT_ID_COLOR_SELECT, 0x0); in cv64_board_init()
1751 wb_64 (regs, VDAC_MASK, 0xFF); in cv64_board_init()
1753 *((unsigned long *) (regs + ECR_FRGD_COLOR)) = 0xFF; in cv64_board_init()
1754 *((unsigned long *) (regs + ECR_BKGD_COLOR)) = 0; in cv64_board_init()
1758 wb_64 (regs, VDAC_ADDRESS_W, 0); in cv64_board_init()
1760 wb_64(regs, VDAC_DATA, i); in cv64_board_init()
1761 wb_64(regs, VDAC_DATA, i); in cv64_board_init()
1762 wb_64(regs, VDAC_DATA, i); in cv64_board_init()
1766 WCrt (regs, CRT_ID_HWGC_MODE, 0x00); in cv64_board_init()
1769 WCrt (regs, CRT_ID_LAW_CNTL, 0x13); in cv64_board_init()
1773 WCrt (regs, CRT_ID_LAW_CNTL, 0x13); in cv64_board_init()
1777 WCrt (regs, CRT_ID_LAW_CNTL, 0x12); in cv64_board_init()
1783 vgaw16 (regs, ECR_FRGD_MIX, 0x27); in cv64_board_init()
1784 vgaw16 (regs, ECR_BKGD_MIX, 0x07); in cv64_board_init()
1785 vgaw16 (regs, ECR_READ_REG_DATA, 0x1000); in cv64_board_init()
1787 vgaw16 (regs, ECR_READ_REG_DATA, 0x2000); in cv64_board_init()
1789 vgaw16 (regs, ECR_READ_REG_DATA, 0x3FFF); in cv64_board_init()
1792 vgaw16 (regs, ECR_READ_REG_DATA, 0x4FFF); in cv64_board_init()
1794 vgaw16 (regs, ECR_BITPLANE_WRITE_MASK, ~0); in cv64_board_init()
1796 vgaw16 (regs, ECR_READ_REG_DATA, 0xE000); in cv64_board_init()
1797 vgaw16 (regs, ECR_CURRENT_Y_POS2, 0x00); in cv64_board_init()
1798 vgaw16 (regs, ECR_CURRENT_X_POS2, 0x00); in cv64_board_init()
1799 vgaw16 (regs, ECR_READ_REG_DATA, 0xA000); in cv64_board_init()
1800 vgaw16 (regs, ECR_DEST_Y__AX_STEP, 0x00); in cv64_board_init()
1801 vgaw16 (regs, ECR_DEST_Y2__AX_STEP2, 0x00); in cv64_board_init()
1802 vgaw16 (regs, ECR_DEST_X__DIA_STEP, 0x00); in cv64_board_init()
1803 vgaw16 (regs, ECR_DEST_X2__DIA_STEP2, 0x00); in cv64_board_init()
1804 vgaw16 (regs, ECR_SHORT_STROKE, 0x00); in cv64_board_init()
1805 vgaw16 (regs, ECR_DRAW_CMD, 0x01); in cv64_board_init()
1809 vgaw16 (regs, ECR_READ_REG_DATA, 0x4FFF); in cv64_board_init()
1810 vgaw16 (regs, ECR_BKGD_COLOR, 0x01); in cv64_board_init()
1811 vgaw16 (regs, ECR_FRGD_COLOR, 0x00); in cv64_board_init()
1818 WAttr (regs, 0x33, 0); in cv64_board_init()
1823 gfx_on_off (0, regs); in cv64_board_init()
1833 volatile unsigned char *regs = CyberRegs; local
1860 gfx_on_off (1, regs);
1932 wb_64 (regs, ECR_ADV_FUNC_CNTL, (TEXT ? 0x00 : 0x31));
1941 WCrt (regs, CRT_ID_HWGC_MODE, 0x00);
1942 WCrt (regs, CRT_ID_EXT_DAC_CNTL, 0x00);
1944 WSeq (regs, SEQ_ID_MEMORY_MODE,
1946 WGfx (regs, GCT_ID_READ_MAP_SELECT, 0x00);
1947 WSeq (regs, SEQ_ID_MAP_MASK,
1949 WSeq (regs, SEQ_ID_CHAR_MAP_SELECT, 0x00);
1964 WSeq (regs, SEQ_ID_DCLK_HI, ((mnr & 0xFF00) >> 8));
1965 WSeq (regs, SEQ_ID_DCLK_LO, (mnr & 0xFF));
1968 WCrt (regs, CRT_ID_EXT_HOR_OVF,
1978 WCrt (regs, CRT_ID_EXT_VER_OVF,
1986 WCrt (regs, CRT_ID_HOR_TOTAL, HT);
1987 WCrt (regs, CRT_ID_DISPLAY_FIFO, HT - 5);
1988 WCrt (regs, CRT_ID_HOR_DISP_ENA_END, ((HDE >= HBS) ? (HBS - 1) : HDE));
1989 WCrt (regs, CRT_ID_START_HOR_BLANK, HBS);
1990 WCrt (regs, CRT_ID_END_HOR_BLANK, ((HBE & 0x1F) | 0x80));
1991 WCrt (regs, CRT_ID_START_HOR_RETR, HSS);
1992 WCrt (regs, CRT_ID_END_HOR_RETR,
1996 WCrt (regs, CRT_ID_VER_TOTAL, VT);
1997 WCrt (regs, CRT_ID_OVERFLOW,
2007 WCrt (regs, CRT_ID_MAX_SCAN_LINE,
2014 WCrt (regs, CRT_ID_MODE_CONTROL, 0xE3);
2020 WCrt (regs, CRT_ID_CURSOR_START, (fy & 0x1f) - 2);
2021 WCrt (regs, CRT_ID_CURSOR_END, (fy & 0x1F) - 1);
2023 WCrt (regs, CRT_ID_CURSOR_START, 0x00);
2024 WCrt (regs, CRT_ID_CURSOR_END, fy & 0x1F);
2026 WCrt (regs, CRT_ID_UNDERLINE_LOC, (fy - 1) & 0x1F);
2027 WCrt (regs, CRT_ID_CURSOR_LOC_HIGH, 0x00);
2028 WCrt (regs, CRT_ID_CURSOR_LOC_LOW, 0x00);
2031 WCrt (regs, CRT_ID_START_ADDR_HIGH, 0x00);
2032 WCrt (regs, CRT_ID_START_ADDR_LOW, 0x00);
2033 WCrt (regs, CRT_ID_START_VER_RETR, VSS);
2034 WCrt (regs, CRT_ID_END_VER_RETR, (VSE & 0x0F));
2035 WCrt (regs, CRT_ID_VER_DISP_ENA_END, VDE);
2036 WCrt (regs, CRT_ID_START_VER_BLANK, VBS);
2037 WCrt (regs, CRT_ID_END_VER_BLANK, VBE);
2038 WCrt (regs, CRT_ID_LINE_COMPARE, 0xFF);
2039 WCrt (regs, CRT_ID_LACE_RETR_START, HT / 2);
2040 WCrt (regs, CRT_ID_LACE_CONTROL, (LACE ? 0x20 : 0x00));
2041 WGfx (regs, GCT_ID_GRAPHICS_MODE,
2043 WGfx (regs, GCT_ID_MISC, (TEXT ? 0x04 : 0x01));
2044 WSeq (regs, SEQ_ID_MEMORY_MODE,
2047 wb_64 (regs, VDAC_MASK, 0xFF);
2050 test = RCrt (regs, CRT_ID_BACKWAD_COMP_2);
2051 WCrt (regs, CRT_ID_BACKWAD_COMP_2, (test | 0x20));
2053 sr15 = RSeq (regs, SEQ_ID_CLKSYN_CNTL_2);
2055 sr18 = RSeq (regs, SEQ_ID_RAMDAC_CNTL);
2060 test = RCrt (regs, CRT_ID_EXT_MISC_CNTL_2);
2106 WCrt (regs, CRT_ID_EXT_MISC_CNTL_2, clock_mode | test);
2107 WSeq (regs, SEQ_ID_CLKSYN_CNTL_2, sr15);
2108 WSeq (regs, SEQ_ID_RAMDAC_CNTL, sr18);
2109 WCrt (regs, CRT_ID_SCREEN_OFFSET, HDE);
2111 WCrt (regs, CRT_ID_MISC_1, (TEXT ? 0x05 : 0x35));
2113 test = RCrt (regs, CRT_ID_EXT_SYS_CNTL_2);
2116 WCrt (regs, CRT_ID_EXT_SYS_CNTL_2, test);
2148 WCrt (regs, CRT_ID_EXT_SYS_CNTL_1, cr50);
2151 WAttr (regs, ACT_ID_ATTR_MODE_CNTL, (TEXT ? 0x08 : 0x41));
2153 WAttr (regs, ACT_ID_COLOR_PLANE_ENA,
2184 WCrt (regs, CRT_ID_EXT_MEM_CNTL_2, m);
2185 WCrt (regs, CRT_ID_EXT_MEM_CNTL_3, n);
2196 wb_64 (regs, VDAC_ADDRESS_W, 0);
2198 wb_64 (regs, VDAC_DATA, cvconscolors [i][0]);
2199 wb_64 (regs, VDAC_DATA, cvconscolors [i][1]);
2200 wb_64 (regs, VDAC_DATA, cvconscolors [i][2]);
2204 WAttr (regs, 0x33, 0);
2207 gfx_on_off (0, (volatile unsigned char *) regs);
2218 volatile unsigned char *regs = CyberRegs; local
2237 vgaw16 (regs, ECR_READ_REG_DATA, 0xA000);
2238 vgaw16 (regs, ECR_BKGD_MIX, 0x7);
2239 vgaw16 (regs, ECR_FRGD_MIX, 0x67);
2240 vgaw16 (regs, ECR_BKGD_COLOR, 0x0);
2241 vgaw16 (regs, ECR_FRGD_COLOR, 0x1);
2242 vgaw16 (regs, ECR_BITPLANE_READ_MASK, 0x1);
2243 vgaw16 (regs, ECR_BITPLANE_WRITE_MASK, 0xFFF);
2244 vgaw16 (regs, ECR_CURRENT_Y_POS, sy);
2245 vgaw16 (regs, ECR_CURRENT_X_POS, sx);
2246 vgaw16 (regs, ECR_DEST_Y__AX_STEP, dy);
2247 vgaw16 (regs, ECR_DEST_X__DIA_STEP, dx);
2248 vgaw16 (regs, ECR_READ_REG_DATA, h - 1);
2249 vgaw16 (regs, ECR_MAJ_AXIS_PIX_CNT, w - 1);
2250 vgaw16 (regs, ECR_DRAW_CMD, 0xC051 | drawdir);
2256 volatile unsigned char *regs = CyberRegs; local
2259 vgaw16 (regs, ECR_FRGD_MIX, 0x0027);
2260 vgaw16 (regs, ECR_FRGD_COLOR, bg);
2261 vgaw16 (regs, ECR_READ_REG_DATA, 0xA000);
2262 vgaw16 (regs, ECR_CURRENT_Y_POS, dy);
2263 vgaw16 (regs, ECR_CURRENT_X_POS, dx);
2264 vgaw16 (regs, ECR_READ_REG_DATA, h - 1);
2265 vgaw16 (regs, ECR_MAJ_AXIS_PIX_CNT, w - 1);
2266 vgaw16 (regs, ECR_DRAW_CMD, 0x40B1);
2276 volatile unsigned char *regs = CyberRegs; local
2279 *(regs + S3_CRTC_ADR) = 0x00;
2280 DPRINTK("CR00 = %x\n", *(regs + S3_CRTC_DATA));
2281 *(regs + S3_CRTC_ADR) = 0x01;
2282 DPRINTK("CR01 = %x\n", *(regs + S3_CRTC_DATA));
2283 *(regs + S3_CRTC_ADR) = 0x02;
2284 DPRINTK("CR02 = %x\n", *(regs + S3_CRTC_DATA));
2285 *(regs + S3_CRTC_ADR) = 0x03;
2286 DPRINTK("CR03 = %x\n", *(regs + S3_CRTC_DATA));
2287 *(regs + S3_CRTC_ADR) = 0x04;
2288 DPRINTK("CR04 = %x\n", *(regs + S3_CRTC_DATA));
2289 *(regs + S3_CRTC_ADR) = 0x05;
2290 DPRINTK("CR05 = %x\n", *(regs + S3_CRTC_DATA));
2291 *(regs + S3_CRTC_ADR) = 0x06;
2292 DPRINTK("CR06 = %x\n", *(regs + S3_CRTC_DATA));
2293 *(regs + S3_CRTC_ADR) = 0x07;
2294 DPRINTK("CR07 = %x\n", *(regs + S3_CRTC_DATA));
2295 *(regs + S3_CRTC_ADR) = 0x08;
2296 DPRINTK("CR08 = %x\n", *(regs + S3_CRTC_DATA));
2297 *(regs + S3_CRTC_ADR) = 0x09;
2298 DPRINTK("CR09 = %x\n", *(regs + S3_CRTC_DATA));
2299 *(regs + S3_CRTC_ADR) = 0x10;
2300 DPRINTK("CR10 = %x\n", *(regs + S3_CRTC_DATA));
2301 *(regs + S3_CRTC_ADR) = 0x11;
2302 DPRINTK("CR11 = %x\n", *(regs + S3_CRTC_DATA));
2303 *(regs + S3_CRTC_ADR) = 0x12;
2304 DPRINTK("CR12 = %x\n", *(regs + S3_CRTC_DATA));
2305 *(regs + S3_CRTC_ADR) = 0x13;
2306 DPRINTK("CR13 = %x\n", *(regs + S3_CRTC_DATA));
2307 *(regs + S3_CRTC_ADR) = 0x15;
2308 DPRINTK("CR15 = %x\n", *(regs + S3_CRTC_DATA));
2309 *(regs + S3_CRTC_ADR) = 0x16;
2310 DPRINTK("CR16 = %x\n", *(regs + S3_CRTC_DATA));
2311 *(regs + S3_CRTC_ADR) = 0x36;
2312 DPRINTK("CR36 = %x\n", *(regs + S3_CRTC_DATA));
2313 *(regs + S3_CRTC_ADR) = 0x37;
2314 DPRINTK("CR37 = %x\n", *(regs + S3_CRTC_DATA));
2315 *(regs + S3_CRTC_ADR) = 0x42;
2316 DPRINTK("CR42 = %x\n", *(regs + S3_CRTC_DATA));
2317 *(regs + S3_CRTC_ADR) = 0x43;
2318 DPRINTK("CR43 = %x\n", *(regs + S3_CRTC_DATA));
2319 *(regs + S3_CRTC_ADR) = 0x50;
2320 DPRINTK("CR50 = %x\n", *(regs + S3_CRTC_DATA));
2321 *(regs + S3_CRTC_ADR) = 0x51;
2322 DPRINTK("CR51 = %x\n", *(regs + S3_CRTC_DATA));
2323 *(regs + S3_CRTC_ADR) = 0x53;
2324 DPRINTK("CR53 = %x\n", *(regs + S3_CRTC_DATA));
2325 *(regs + S3_CRTC_ADR) = 0x58;
2326 DPRINTK("CR58 = %x\n", *(regs + S3_CRTC_DATA));
2327 *(regs + S3_CRTC_ADR) = 0x59;
2328 DPRINTK("CR59 = %x\n", *(regs + S3_CRTC_DATA));
2329 *(regs + S3_CRTC_ADR) = 0x5A;
2330 DPRINTK("CR5A = %x\n", *(regs + S3_CRTC_DATA));
2331 *(regs + S3_CRTC_ADR) = 0x5D;
2332 DPRINTK("CR5D = %x\n", *(regs + S3_CRTC_DATA));
2333 *(regs + S3_CRTC_ADR) = 0x5E;
2334 DPRINTK("CR5E = %x\n", *(regs + S3_CRTC_DATA));
2335 DPRINTK("MISC = %x\n", *(regs + GREG_MISC_OUTPUT_R));
2336 *(regs + SEQ_ADDRESS) = 0x01;
2337 DPRINTK("SR01 = %x\n", *(regs + SEQ_ADDRESS_R));
2338 *(regs + SEQ_ADDRESS) = 0x02;
2339 DPRINTK("SR02 = %x\n", *(regs + SEQ_ADDRESS_R));
2340 *(regs + SEQ_ADDRESS) = 0x03;
2341 DPRINTK("SR03 = %x\n", *(regs + SEQ_ADDRESS_R));
2342 *(regs + SEQ_ADDRESS) = 0x09;
2343 DPRINTK("SR09 = %x\n", *(regs + SEQ_ADDRESS_R));
2344 *(regs + SEQ_ADDRESS) = 0x10;
2345 DPRINTK("SR10 = %x\n", *(regs + SEQ_ADDRESS_R));
2346 *(regs + SEQ_ADDRESS) = 0x11;
2347 DPRINTK("SR11 = %x\n", *(regs + SEQ_ADDRESS_R));
2348 *(regs + SEQ_ADDRESS) = 0x12;
2349 DPRINTK("SR12 = %x\n", *(regs + SEQ_ADDRESS_R));
2350 *(regs + SEQ_ADDRESS) = 0x13;
2351 DPRINTK("SR13 = %x\n", *(regs + SEQ_ADDRESS_R));
2352 *(regs + SEQ_ADDRESS) = 0x15;
2353 DPRINTK("SR15 = %x\n", *(regs + SEQ_ADDRESS_R));