Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/kqueue]: src/sys/arch/mac68k/obio use cdev_decl(), make compile



details:   https://anonhg.NetBSD.org/src/rev/ac2ecc70fe11
branches:  kqueue
changeset: 512477:ac2ecc70fe11
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Tue Jun 18 19:37:16 2002 +0000

description:
use cdev_decl(), make compile

diffstat:

 sys/arch/mac68k/obio/asc.c    |   9 ++++++---
 sys/arch/mac68k/obio/ascvar.h |  10 +---------
 2 files changed, 7 insertions(+), 12 deletions(-)

diffs (65 lines):

diff -r 2c19cd7afff6 -r ac2ecc70fe11 sys/arch/mac68k/obio/asc.c
--- a/sys/arch/mac68k/obio/asc.c        Tue Jun 18 19:35:06 2002 +0000
+++ b/sys/arch/mac68k/obio/asc.c        Tue Jun 18 19:37:16 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: asc.c,v 1.39.4.1 2001/09/12 19:07:13 thorpej Exp $     */
+/*     $NetBSD: asc.c,v 1.39.4.2 2002/06/18 19:37:17 jdolecek Exp $    */
 
 /*
  * Copyright (C) 1997 Scott Reynolds
@@ -71,6 +71,7 @@
 #include <sys/param.h>
 #include <sys/device.h>
 #include <sys/poll.h>
+#include <sys/conf.h>
 
 #include <uvm/uvm_extern.h>
 
@@ -106,6 +107,8 @@
 static int     ascmatch __P((struct device *, struct cfdata *, void *));
 static void    ascattach __P((struct device *, struct device *, void *));
 
+cdev_decl(asc);
+
 struct cfattach asc_ca = {
        sizeof(struct asc_softc), ascmatch, ascattach
 };
@@ -257,7 +260,7 @@
 int
 ascioctl(dev, cmd, data, flag, p)
        dev_t dev;
-       int cmd;
+       u_long cmd;
        caddr_t data;
        int flag;
        struct proc *p;
@@ -287,7 +290,7 @@
 }
 
 int
-asckqfilter(dev_t dev, struct knote *)
+asckqfilter(dev_t dev, struct knote *kn)
 {
 
        /* XXXLUKEM (thorpej): not supported (why is poll?) */
diff -r 2c19cd7afff6 -r ac2ecc70fe11 sys/arch/mac68k/obio/ascvar.h
--- a/sys/arch/mac68k/obio/ascvar.h     Tue Jun 18 19:35:06 2002 +0000
+++ b/sys/arch/mac68k/obio/ascvar.h     Tue Jun 18 19:37:16 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ascvar.h,v 1.6 2000/06/26 04:55:48 simonb Exp $        */
+/*     $NetBSD: ascvar.h,v 1.6.4.1 2002/06/18 19:37:16 jdolecek Exp $  */
 
 /*
  * Copyright (C) 1997 Scott Reynolds.  All rights reserved.
@@ -38,11 +38,3 @@
        int                     sc_ringing;
        struct callout          sc_bell_ch;
 };
-
-int    ascopen __P((dev_t dev, int flag, int mode, struct proc *p));
-int    ascclose __P((dev_t dev, int flag, int mode, struct proc *p));
-int    ascread __P((dev_t, struct uio *, int));
-int    ascwrite __P((dev_t, struct uio *, int));
-int    ascioctl __P((dev_t, int, caddr_t, int, struct proc *p));
-int    ascpoll __P((dev_t dev, int events, struct proc *p));
-paddr_t        ascmmap __P((dev_t dev, off_t off, int prot));



Home | Main Index | Thread Index | Old Index