Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Cosmetic cleanups:



details:   https://anonhg.NetBSD.org/src/rev/88f17deb5959
branches:  trunk
changeset: 514093:88f17deb5959
user:      simonb <simonb%NetBSD.org@localhost>
date:      Wed Aug 22 12:44:10 2001 +0000

description:
Cosmetic cleanups:
  - cominit() is local to com.c, remove prototype from comvar.h.
  - Don't prototype comstop(), cdev_decl(com) does this.
  - Don't use a block device switch table declaration(!).
  - No need to include "com.h".

diffstat:

 sys/dev/ic/com.c    |  11 +++++------
 sys/dev/ic/comvar.h |   4 +---
 2 files changed, 6 insertions(+), 9 deletions(-)

diffs (58 lines):

diff -r 21222d5cbb8a -r 88f17deb5959 sys/dev/ic/com.c
--- a/sys/dev/ic/com.c  Wed Aug 22 09:43:15 2001 +0000
+++ b/sys/dev/ic/com.c  Wed Aug 22 12:44:10 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: com.c,v 1.186 2001/06/20 03:07:25 uwe Exp $    */
+/*     $NetBSD: com.c,v 1.187 2001/08/22 12:44:10 simonb Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -129,8 +129,6 @@
 #define        com_lcr com_cfcr
 #include <dev/cons.h>
 
-#include "com.h"
-
 #ifdef COM_HAYESP
 int comprobeHAYESP __P((bus_space_handle_t hayespioh, struct com_softc *sc));
 #endif
@@ -143,7 +141,6 @@
 static u_char  cflag2lcr __P((tcflag_t));
 int    comparam        __P((struct tty *, struct termios *));
 void   comstart        __P((struct tty *));
-void   comstop         __P((struct tty *, int));
 int    comhwiflow      __P((struct tty *, int));
 
 void   com_loadchannelregs __P((struct com_softc *));
@@ -157,9 +154,11 @@
 int    com_common_getc __P((dev_t, bus_space_tag_t, bus_space_handle_t));
 void   com_common_putc __P((dev_t, bus_space_tag_t, bus_space_handle_t, int));
 
-/* XXX: These belong elsewhere */
+int cominit            __P((bus_space_tag_t, bus_addr_t, int, int, tcflag_t,
+                            bus_space_handle_t *));
+
+/* XXX: This belongs elsewhere */
 cdev_decl(com);
-bdev_decl(com);
 
 int    comcngetc       __P((dev_t));
 void   comcnputc       __P((dev_t, int));
diff -r 21222d5cbb8a -r 88f17deb5959 sys/dev/ic/comvar.h
--- a/sys/dev/ic/comvar.h       Wed Aug 22 09:43:15 2001 +0000
+++ b/sys/dev/ic/comvar.h       Wed Aug 22 12:44:10 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: comvar.h,v 1.40 2001/05/30 15:24:23 lukem Exp $        */
+/*     $NetBSD: comvar.h,v 1.41 2001/08/22 12:44:10 simonb Exp $       */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -146,8 +146,6 @@
 int comprobe1 __P((bus_space_tag_t, bus_space_handle_t));
 int comintr __P((void *));
 void com_attach_subr __P((struct com_softc *));
-int cominit __P((bus_space_tag_t, bus_addr_t, int, int, tcflag_t,
-       bus_space_handle_t *));
 int com_detach __P((struct device *, int));
 int com_activate __P((struct device *, enum devact));
 



Home | Main Index | Thread Index | Old Index