diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-08-28 12:48:15 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-08-28 12:48:15 +0000 |
commit | f7cf4d10949f12edbb81d9835b916e5b64a064a4 (patch) | |
tree | 6e8add779a9b52ef82d5b39264f95b539f1a29f0 /sys/dev/ic/vga_subr.c | |
parent | e141fb7001e71fe81f6968549e363c111add17b2 (diff) |
ansify function definitions, and constify a few arrays while there.
no functional change.
Diffstat (limited to 'sys/dev/ic/vga_subr.c')
-rw-r--r-- | sys/dev/ic/vga_subr.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/sys/dev/ic/vga_subr.c b/sys/dev/ic/vga_subr.c index bff1afc56da..1cec569f1b5 100644 --- a/sys/dev/ic/vga_subr.c +++ b/sys/dev/ic/vga_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vga_subr.c,v 1.3 2004/04/02 04:39:50 deraadt Exp $ */ +/* $OpenBSD: vga_subr.c,v 1.4 2010/08/28 12:48:14 miod Exp $ */ /* $NetBSD: vga_subr.c,v 1.6 2000/01/25 02:44:03 ad Exp $ */ /* @@ -44,8 +44,7 @@ static void fontram(struct vga_handle *); static void textram(struct vga_handle *); static void -fontram(vh) - struct vga_handle *vh; +fontram(struct vga_handle *vh) { /* program sequencer to access character generator */ @@ -62,8 +61,7 @@ fontram(vh) } static void -textram(vh) - struct vga_handle *vh; +textram(struct vga_handle *vh) { /* program sequencer to access video ram */ @@ -81,11 +79,8 @@ textram(vh) } void -vga_loadchars(vh, fontset, first, num, lpc, data) - struct vga_handle *vh; - int fontset, first, num; - int lpc; - char *data; +vga_loadchars(struct vga_handle *vh, int fontset, int first, int num, int lpc, + char *data) { int offset, i, j, s; @@ -106,16 +101,14 @@ vga_loadchars(vh, fontset, first, num, lpc, data) } void -vga_setfontset(vh, fontset1, fontset2) - struct vga_handle *vh; - int fontset1, fontset2; +vga_setfontset(struct vga_handle *vh, int fontset1, int fontset2) { u_int8_t cmap; - static u_int8_t cmaptaba[] = { + static const u_int8_t cmaptaba[] = { 0x00, 0x10, 0x01, 0x11, 0x02, 0x12, 0x03, 0x13 }; - static u_int8_t cmaptabb[] = { + static const u_int8_t cmaptabb[] = { 0x00, 0x20, 0x04, 0x24, 0x08, 0x28, 0x0c, 0x2c }; @@ -127,9 +120,7 @@ vga_setfontset(vh, fontset1, fontset2) } void -vga_setscreentype(vh, type) - struct vga_handle *vh; - const struct wsscreen_descr *type; +vga_setscreentype(struct vga_handle *vh, const struct wsscreen_descr *type) { vga_6845_write(vh, maxrow, type->fontheight - 1); |