From efbda7406acc1e5f0749b9af6bf346ab771a2ef0 Mon Sep 17 00:00:00 2001 From: jmmv Date: Wed, 12 Apr 2006 20:06:16 +0000 Subject: [PATCH] Convert to ANSI prototypes. --- sys/dev/ic/pcdisplay_subr.c | 52 ++++++++++--------------------------- 1 file changed, 13 insertions(+), 39 deletions(-) diff --git a/sys/dev/ic/pcdisplay_subr.c b/sys/dev/ic/pcdisplay_subr.c index cd55455ee656..d3e34ea26b53 100644 --- a/sys/dev/ic/pcdisplay_subr.c +++ b/sys/dev/ic/pcdisplay_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: pcdisplay_subr.c,v 1.29 2005/12/11 12:21:28 christos Exp $ */ +/* $NetBSD: pcdisplay_subr.c,v 1.30 2006/04/12 20:06:16 jmmv Exp $ */ /* * Copyright (c) 1995, 1996 Carnegie-Mellon University. @@ -28,7 +28,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pcdisplay_subr.c,v 1.29 2005/12/11 12:21:28 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pcdisplay_subr.c,v 1.30 2006/04/12 20:06:16 jmmv Exp $"); #include "opt_wsdisplay_compat.h" /* for WSDISPLAY_CHARFUNCS */ #include "opt_wsmsgattrs.h" /* for WSDISPLAY_CUSTOM_OUTPUT */ @@ -45,9 +45,7 @@ __KERNEL_RCSID(0, "$NetBSD: pcdisplay_subr.c,v 1.29 2005/12/11 12:21:28 christos #include void -pcdisplay_cursor_init(scr, existing) - struct pcdisplayscreen *scr; - int existing; +pcdisplay_cursor_init(struct pcdisplayscreen *scr, int existing) { #ifdef PCDISPLAY_SOFTCURSOR bus_space_tag_t memt; @@ -89,9 +87,7 @@ pcdisplay_cursor_init(scr, existing) } void -pcdisplay_cursor(id, on, row, col) - void *id; - int on, row, col; +pcdisplay_cursor(void *id, int on, int row, int col) { #ifdef PCDISPLAY_SOFTCURSOR struct pcdisplayscreen *scr = id; @@ -147,9 +143,7 @@ pcdisplay_cursor(id, on, row, col) #if 0 unsigned int -pcdisplay_mapchar_simple(id, uni) - void *id; - int uni; +pcdisplay_mapchar_simple(void *id, int uni) { if (uni < 128) return (uni); @@ -159,11 +153,7 @@ pcdisplay_mapchar_simple(id, uni) #endif void -pcdisplay_putchar(id, row, col, c, attr) - void *id; - int row, col; - u_int c; - long attr; +pcdisplay_putchar(void *id, int row, int col, unsigned int c, long attr) { struct pcdisplayscreen *scr = id; bus_space_tag_t memt = scr->hdl->ph_memt; @@ -182,9 +172,7 @@ pcdisplay_putchar(id, row, col, c, attr) } void -pcdisplay_copycols(id, row, srccol, dstcol, ncols) - void *id; - int row, srccol, dstcol, ncols; +pcdisplay_copycols(void *id, int row, int srccol, int dstcol, int ncols) { struct pcdisplayscreen *scr = id; bus_space_tag_t memt = scr->hdl->ph_memt; @@ -205,10 +193,7 @@ pcdisplay_copycols(id, row, srccol, dstcol, ncols) } void -pcdisplay_erasecols(id, row, startcol, ncols, fillattr) - void *id; - int row, startcol, ncols; - long fillattr; +pcdisplay_erasecols(void *id, int row, int startcol, int ncols, long fillattr) { struct pcdisplayscreen *scr = id; bus_space_tag_t memt = scr->hdl->ph_memt; @@ -230,9 +215,7 @@ pcdisplay_erasecols(id, row, startcol, ncols, fillattr) } void -pcdisplay_copyrows(id, srcrow, dstrow, nrows) - void *id; - int srcrow, dstrow, nrows; +pcdisplay_copyrows(void *id, int srcrow, int dstrow, int nrows) { struct pcdisplayscreen *scr = id; bus_space_tag_t memt = scr->hdl->ph_memt; @@ -254,10 +237,7 @@ pcdisplay_copyrows(id, srcrow, dstrow, nrows) } void -pcdisplay_eraserows(id, startrow, nrows, fillattr) - void *id; - int startrow, nrows; - long fillattr; +pcdisplay_eraserows(void *id, int startrow, int nrows, long fillattr) { struct pcdisplayscreen *scr = id; bus_space_tag_t memt = scr->hdl->ph_memt; @@ -281,9 +261,7 @@ pcdisplay_eraserows(id, startrow, nrows, fillattr) #ifdef WSDISPLAY_CUSTOM_OUTPUT void -pcdisplay_replaceattr(id, oldattr, newattr) - void *id; - long oldattr, newattr; +pcdisplay_replaceattr(void *id, long oldattr, long newattr) { struct pcdisplayscreen *scr = id; bus_space_tag_t memt = scr->hdl->ph_memt; @@ -315,9 +293,7 @@ pcdisplay_replaceattr(id, oldattr, newattr) #ifdef WSDISPLAY_CHARFUNCS int -pcdisplay_getwschar(id, wschar) - void *id; - struct wsdisplay_char *wschar; +pcdisplay_getwschar(void *id, struct wsdisplay_char *wschar) { struct pcdisplayscreen *scr = id; bus_space_tag_t memt = scr->hdl->ph_memt; @@ -348,9 +324,7 @@ pcdisplay_getwschar(id, wschar) } int -pcdisplay_putwschar(id, wschar) - void *id; - struct wsdisplay_char *wschar; +pcdisplay_putwschar(void *id, struct wsdisplay_char *wschar) { struct pcdisplayscreen *scr = id; bus_space_tag_t memt = scr->hdl->ph_memt;