Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/isa Remove __P.
details: https://anonhg.NetBSD.org/src/rev/3f6ba21e9987
branches: trunk
changeset: 533677:3f6ba21e9987
user: junyoung <junyoung%NetBSD.org@localhost>
date: Sun Jul 07 07:05:40 2002 +0000
description:
Remove __P.
diffstat:
sys/dev/isa/ega.c | 54 +++++++++++++++++++++++++--------------------------
sys/dev/isa/egavar.h | 4 +-
2 files changed, 28 insertions(+), 30 deletions(-)
diffs (113 lines):
diff -r 00cc06865c80 -r 3f6ba21e9987 sys/dev/isa/ega.c
--- a/sys/dev/isa/ega.c Sun Jul 07 06:49:22 2002 +0000
+++ b/sys/dev/isa/ega.c Sun Jul 07 07:05:40 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ega.c,v 1.11 2002/07/07 06:36:34 junyoung Exp $ */
+/* $NetBSD: ega.c,v 1.12 2002/07/07 07:05:40 junyoung Exp $ */
/*
* Copyright (c) 1999
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ega.c,v 1.11 2002/07/07 06:36:34 junyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ega.c,v 1.12 2002/07/07 07:05:40 junyoung Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -89,7 +89,7 @@
struct egafont *vc_fonts[4];
struct egascreen *wantedscreen;
- void (*switchcb) __P((void *, int, int));
+ void (*switchcb)(void *, int, int);
void *switchcbarg;
struct callout switch_callout;
@@ -105,22 +105,20 @@
static struct egascreen ega_console_screen;
static struct ega_config ega_console_dc;
-int ega_match __P((struct device *, struct cfdata *, void *));
-void ega_attach __P((struct device *, struct device *, void *));
+int ega_match(struct device *, struct cfdata *, void *);
+void ega_attach(struct device *, struct device *, void *);
-static int ega_is_console __P((bus_space_tag_t));
-static int ega_probe_col __P((bus_space_tag_t, bus_space_tag_t));
-static int ega_probe_mono __P((bus_space_tag_t, bus_space_tag_t));
-int ega_selectfont __P((struct ega_config *, struct egascreen *,
- char *, char *));
-void ega_init_screen __P((struct ega_config *, struct egascreen *,
- const struct wsscreen_descr *,
- int, long *));
-static void ega_init __P((struct ega_config *,
- bus_space_tag_t, bus_space_tag_t, int));
-static void ega_setfont __P((struct ega_config *, struct egascreen *));
-static int ega_allocattr __P((void *, int, int, int, long *));
-void ega_copyrows __P((void *, int, int, int));
+static int ega_is_console(bus_space_tag_t);
+static int ega_probe_col(bus_space_tag_t, bus_space_tag_t);
+static int ega_probe_mono(bus_space_tag_t, bus_space_tag_t);
+int ega_selectfont(struct ega_config *, struct egascreen *, char *, char *);
+void ega_init_screen(struct ega_config *, struct egascreen *,
+ const struct wsscreen_descr *, int, long *);
+static void ega_init(struct ega_config *, bus_space_tag_t, bus_space_tag_t,
+ int);
+static void ega_setfont(struct ega_config *, struct egascreen *);
+static int ega_allocattr(void *, int, int, int, long *);
+void ega_copyrows(void *, int, int, int);
struct cfattach ega_ca = {
sizeof(struct ega_softc), ega_match, ega_attach,
@@ -219,16 +217,16 @@
_ega_scrlist_mono
};
-static int ega_ioctl __P((void *, u_long, caddr_t, int, struct proc *));
-static paddr_t ega_mmap __P((void *, off_t, int));
-static int ega_alloc_screen __P((void *, const struct wsscreen_descr *,
- void **, int *, int *, long *));
-static void ega_free_screen __P((void *, void *));
-static int ega_show_screen __P((void *, void *, int,
- void (*) (void *, int, int), void *));
-static int ega_load_font __P((void *, void *, struct wsdisplay_font *));
+static int ega_ioctl(void *, u_long, caddr_t, int, struct proc *);
+static paddr_t ega_mmap(void *, off_t, int);
+static int ega_alloc_screen(void *, const struct wsscreen_descr *,
+ void **, int *, int *, long *);
+static void ega_free_screen(void *, void *);
+static int ega_show_screen(void *, void *, int,
+ void (*) (void *, int, int), void *);
+static int ega_load_font(void *, void *, struct wsdisplay_font *);
-void ega_doswitch __P((struct ega_config *));
+void ega_doswitch(struct ega_config *);
const struct wsdisplay_accessops ega_accessops = {
ega_ioctl,
@@ -696,7 +694,7 @@
void *v;
void *cookie;
int waitok;
- void (*cb) __P((void *, int, int));
+ void (*cb)(void *, int, int);
void *cbarg;
{
struct egascreen *scr = cookie, *oldscr;
diff -r 00cc06865c80 -r 3f6ba21e9987 sys/dev/isa/egavar.h
--- a/sys/dev/isa/egavar.h Sun Jul 07 06:49:22 2002 +0000
+++ b/sys/dev/isa/egavar.h Sun Jul 07 07:05:40 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: egavar.h,v 1.1 1999/12/13 16:28:57 drochner Exp $ */
+/* $NetBSD: egavar.h,v 1.2 2002/07/07 07:05:40 junyoung Exp $ */
/*
* Copyright (c) 1999
@@ -32,4 +32,4 @@
*
*/
-int ega_cnattach __P((bus_space_tag_t, bus_space_tag_t));
+int ega_cnattach(bus_space_tag_t, bus_space_tag_t);
Home |
Main Index |
Thread Index |
Old Index