vga.c (2ce7d7a0335f8424a2645ec044a0202ebef230d8) | vga.c (93b0017f88462f9af15368440324aa3be58eb18f) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * Copyright (c) 1992-1998 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1523 unchanged lines hidden (view full) --- 1532 1533 params.sig = V_STATE_SIG; 1534 bcopy(get_mode_param(mode), params.regs, sizeof(params.regs)); 1535 1536 switch (mode) { 1537#ifdef VGA_WIDTH90 1538 case M_VGA_C90x60: case M_VGA_M90x60: 1539 set_width90(¶ms); | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * Copyright (c) 1992-1998 S�ren Schmidt 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 1523 unchanged lines hidden (view full) --- 1532 1533 params.sig = V_STATE_SIG; 1534 bcopy(get_mode_param(mode), params.regs, sizeof(params.regs)); 1535 1536 switch (mode) { 1537#ifdef VGA_WIDTH90 1538 case M_VGA_C90x60: case M_VGA_M90x60: 1539 set_width90(¶ms); |
1540 /* FALL THROUGH */ | 1540 /* FALLTHROUGH */ |
1541#endif 1542 case M_VGA_C80x60: case M_VGA_M80x60: 1543 params.regs[2] = 0x08; 1544 params.regs[19] = 0x47; 1545 goto special_480l; 1546 1547#ifdef VGA_WIDTH90 1548 case M_VGA_C90x30: case M_VGA_M90x30: 1549 set_width90(¶ms); | 1541#endif 1542 case M_VGA_C80x60: case M_VGA_M80x60: 1543 params.regs[2] = 0x08; 1544 params.regs[19] = 0x47; 1545 goto special_480l; 1546 1547#ifdef VGA_WIDTH90 1548 case M_VGA_C90x30: case M_VGA_M90x30: 1549 set_width90(¶ms); |
1550 /* FALL THROUGH */ | 1550 /* FALLTHROUGH */ |
1551#endif 1552 case M_VGA_C80x30: case M_VGA_M80x30: 1553 params.regs[19] = 0x4f; 1554special_480l: 1555 params.regs[9] |= 0xc0; 1556 params.regs[16] = 0x08; 1557 params.regs[17] = 0x3e; 1558 params.regs[26] = 0xea; 1559 params.regs[28] = 0xdf; 1560 params.regs[31] = 0xe7; 1561 params.regs[32] = 0x04; 1562 goto setup_mode; 1563 1564#ifdef VGA_WIDTH90 1565 case M_VGA_C90x43: case M_VGA_M90x43: 1566 set_width90(¶ms); | 1551#endif 1552 case M_VGA_C80x30: case M_VGA_M80x30: 1553 params.regs[19] = 0x4f; 1554special_480l: 1555 params.regs[9] |= 0xc0; 1556 params.regs[16] = 0x08; 1557 params.regs[17] = 0x3e; 1558 params.regs[26] = 0xea; 1559 params.regs[28] = 0xdf; 1560 params.regs[31] = 0xe7; 1561 params.regs[32] = 0x04; 1562 goto setup_mode; 1563 1564#ifdef VGA_WIDTH90 1565 case M_VGA_C90x43: case M_VGA_M90x43: 1566 set_width90(¶ms); |
1567 /* FALL THROUGH */ | 1567 /* FALLTHROUGH */ |
1568#endif 1569 case M_ENH_C80x43: case M_ENH_B80x43: 1570 params.regs[28] = 87; 1571 goto special_80x50; 1572 1573#ifdef VGA_WIDTH90 1574 case M_VGA_C90x50: case M_VGA_M90x50: 1575 set_width90(¶ms); | 1568#endif 1569 case M_ENH_C80x43: case M_ENH_B80x43: 1570 params.regs[28] = 87; 1571 goto special_80x50; 1572 1573#ifdef VGA_WIDTH90 1574 case M_VGA_C90x50: case M_VGA_M90x50: 1575 set_width90(¶ms); |
1576 /* FALL THROUGH */ | 1576 /* FALLTHROUGH */ |
1577#endif 1578 case M_VGA_C80x50: case M_VGA_M80x50: 1579special_80x50: 1580 params.regs[2] = 8; 1581 params.regs[19] = 7; 1582 goto setup_mode; 1583 1584#ifdef VGA_WIDTH90 1585 case M_VGA_C90x25: case M_VGA_M90x25: 1586 set_width90(¶ms); | 1577#endif 1578 case M_VGA_C80x50: case M_VGA_M80x50: 1579special_80x50: 1580 params.regs[2] = 8; 1581 params.regs[19] = 7; 1582 goto setup_mode; 1583 1584#ifdef VGA_WIDTH90 1585 case M_VGA_C90x25: case M_VGA_M90x25: 1586 set_width90(¶ms); |
1587 /* FALL THROUGH */ | 1587 /* FALLTHROUGH */ |
1588#endif 1589 case M_VGA_C40x25: case M_VGA_C80x25: 1590 case M_VGA_M80x25: 1591 case M_B40x25: case M_C40x25: 1592 case M_B80x25: case M_C80x25: 1593 case M_ENH_B40x25: case M_ENH_C40x25: 1594 case M_ENH_B80x25: case M_ENH_C80x25: 1595 case M_EGAMONO80x25: --- 1455 unchanged lines hidden --- | 1588#endif 1589 case M_VGA_C40x25: case M_VGA_C80x25: 1590 case M_VGA_M80x25: 1591 case M_B40x25: case M_C40x25: 1592 case M_B80x25: case M_C80x25: 1593 case M_ENH_B40x25: case M_ENH_C40x25: 1594 case M_ENH_B80x25: case M_ENH_C80x25: 1595 case M_EGAMONO80x25: --- 1455 unchanged lines hidden --- |