diff options
| author | simonb <simonb@NetBSD.org> | 2001-08-22 12:44:10 +0000 |
|---|---|---|
| committer | simonb <simonb@NetBSD.org> | 2001-08-22 12:44:10 +0000 |
| commit | dc0e4c0679d45f6310edfa765bd6255ec19d7360 (patch) | |
| tree | 54738573a5a386990cc0d843cea5441ecb245d5d /sys/dev/ic | |
| parent | a0fdfb54e0e6af6eecb31c99bd4e15aacde2e62a (diff) | |
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 (limited to 'sys/dev/ic')
| -rw-r--r-- | sys/dev/ic/com.c | 11 | ||||
| -rw-r--r-- | sys/dev/ic/comvar.h | 4 |
2 files changed, 6 insertions, 9 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index 1126fa32678..b9915493674 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -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 @@ int comspeed __P((long, long)); 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 @@ void com_iflush __P((struct com_softc *)); 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 --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index c4c330c44fa..2a52e41d7c8 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -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 @@ struct com_softc { 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)); |
