diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-10-21 12:14:54 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-10-21 12:14:54 +0000 |
commit | a6be094cde992072567c10146b1caffc51c4623c (patch) | |
tree | 0a8af7309789a38da34bbe4e420bc4cfc12d6c36 /sys/arch/sparc/dev | |
parent | 1da94e2b155f35110f0ee5f3426a2209db7532e5 (diff) |
Fix lies in comments, and apply some KNF and unused or duplicate prototype
removals.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r-- | sys/arch/sparc/dev/zs.c | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sys/arch/sparc/dev/zs.c b/sys/arch/sparc/dev/zs.c index cde41bde908..237f663f2c5 100644 --- a/sys/arch/sparc/dev/zs.c +++ b/sys/arch/sparc/dev/zs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: zs.c,v 1.52 2013/09/15 09:49:21 miod Exp $ */ +/* $OpenBSD: zs.c,v 1.53 2013/10/21 12:14:52 miod Exp $ */ /* $NetBSD: zs.c,v 1.50 1997/10/18 00:00:40 gwr Exp $ */ /*- @@ -34,8 +34,8 @@ * Zilog Z8530 Dual UART driver (machine-dependent part) * * Runs two serial lines per chip using slave drivers. - * Plain tty/async lines use the zs_async slave. - * Sun keyboard/mouse uses the zs_kbd/zs_ms slaves. + * Plain tty/async lines use the zstty slave. + * Sun keyboard/mouse uses the zskbd/zsms slaves. */ #include <sys/param.h> @@ -503,7 +503,7 @@ zs_set_speed(cs, bps) int zs_set_modes(cs, cflag) struct zs_chanstate *cs; - int cflag; /* bits per second */ + int cflag; { int s; @@ -577,7 +577,8 @@ zs_write_reg(cs, reg, val) ZS_DELAY(); } -u_char zs_read_csr(cs) +u_char +zs_read_csr(cs) struct zs_chanstate *cs; { register u_char val; @@ -587,7 +588,8 @@ u_char zs_read_csr(cs) return val; } -void zs_write_csr(cs, val) +void +zs_write_csr(cs, val) struct zs_chanstate *cs; u_char val; { @@ -595,7 +597,8 @@ void zs_write_csr(cs, val) ZS_DELAY(); } -u_char zs_read_data(cs) +u_char +zs_read_data(cs) struct zs_chanstate *cs; { register u_char val; @@ -605,7 +608,8 @@ u_char zs_read_data(cs) return val; } -void zs_write_data(cs, val) +void +zs_write_data(cs, val) struct zs_chanstate *cs; u_char val; { |