diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 06:12:45 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 06:12:45 +0000 |
| commit | 5ebc7e6281887681c3a348a5a4c902e262ccd656 (patch) | |
| tree | 4d38911cf1e5e1ef56a662eddcbe2f706b2e6973 /sys/dev/syscons/green | |
| parent | 6c06b4e2aa2a28d1f0bbd29ecdce35aaaf600ce8 (diff) | |
Notes
Diffstat (limited to 'sys/dev/syscons/green')
| -rw-r--r-- | sys/dev/syscons/green/green_saver.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/syscons/green/green_saver.c b/sys/dev/syscons/green/green_saver.c index e6ed0742b6fa..8dfe086ef4c9 100644 --- a/sys/dev/syscons/green/green_saver.c +++ b/sys/dev/syscons/green/green_saver.c @@ -6,7 +6,7 @@ * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer + * notice, this list of conditions and the following disclaimer * in this position and unchanged. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: green_saver.c,v 1.1 1995/02/22 13:47:14 sos Exp $ */ #include <sys/param.h> @@ -42,19 +42,19 @@ MOD_MISC("green_saver") void (*current_saver)(); void (*old_saver)(); -static void +static void green_saver(int blank) { u_char val; if (blank) { scrn_blanked = 1; - outb(TSIDX, 0x01); val = inb(TSREG); + outb(TSIDX, 0x01); val = inb(TSREG); outb(TSIDX, 0x01); outb(TSREG, val | 0x20); outb(crtc_addr, 0x17); val = inb(crtc_addr + 1); outb(crtc_addr + 1, val & ~0x80); } else { - outb(TSIDX, 0x01); val = inb(TSREG); + outb(TSIDX, 0x01); val = inb(TSREG); outb(TSIDX, 0x01); outb(TSREG, val & 0xDF); outb(crtc_addr, 0x17); val = inb(crtc_addr + 1); outb(crtc_addr + 1, val | 0x80); |
