Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic KNF.
details: https://anonhg.NetBSD.org/src/rev/0eed24c6c303
branches: trunk
changeset: 519879:0eed24c6c303
user: junyoung <junyoung%NetBSD.org@localhost>
date: Sat Dec 29 17:06:50 2001 +0000
description:
KNF.
diffstat:
sys/dev/ic/vgavar.h | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 3729270df72b -r 0eed24c6c303 sys/dev/ic/vgavar.h
--- a/sys/dev/ic/vgavar.h Sat Dec 29 16:15:42 2001 +0000
+++ b/sys/dev/ic/vgavar.h Sat Dec 29 17:06:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vgavar.h,v 1.8 2001/12/13 08:35:38 junyoung Exp $ */
+/* $NetBSD: vgavar.h,v 1.9 2001/12/29 17:06:50 junyoung Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -83,7 +83,8 @@
static inline u_int8_t _vga_gdc_read(struct vga_handle *, int);
static inline void _vga_gdc_write(struct vga_handle *, int, u_int8_t);
-static inline u_int8_t _vga_attr_read(struct vga_handle *vh, int reg)
+static inline u_int8_t
+_vga_attr_read(struct vga_handle *vh, int reg)
{
u_int8_t res;
@@ -102,7 +103,8 @@
return (res);
}
-static inline void _vga_attr_write(struct vga_handle *vh, int reg, u_int8_t val)
+static inline void
+_vga_attr_write(struct vga_handle *vh, int reg, u_int8_t val)
{
/* reset state */
(void) bus_space_read_1(vh->vh_iot, vh->vh_ioh_6845, 10);
@@ -117,25 +119,29 @@
bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, 0, 0x20);
}
-static inline u_int8_t _vga_ts_read(struct vga_handle *vh, int reg)
+static inline u_int8_t
+_vga_ts_read(struct vga_handle *vh, int reg)
{
bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_TS_INDEX, reg);
return (bus_space_read_1(vh->vh_iot, vh->vh_ioh_vga, VGA_TS_DATA));
}
-static inline void _vga_ts_write(struct vga_handle *vh, int reg, u_int8_t val)
+static inline void
+_vga_ts_write(struct vga_handle *vh, int reg, u_int8_t val)
{
bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_TS_INDEX, reg);
bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_TS_DATA, val);
}
-static inline u_int8_t _vga_gdc_read(struct vga_handle *vh, int reg)
+static inline u_int8_t
+_vga_gdc_read(struct vga_handle *vh, int reg)
{
bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_GDC_INDEX, reg);
return (bus_space_read_1(vh->vh_iot, vh->vh_ioh_vga, VGA_GDC_DATA));
}
-static inline void _vga_gdc_write(struct vga_handle *vh, int reg, u_int8_t val)
+static inline void
+_vga_gdc_write(struct vga_handle *vh, int reg, u_int8_t val)
{
bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_GDC_INDEX, reg);
bus_space_write_1(vh->vh_iot, vh->vh_ioh_vga, VGA_GDC_DATA, val);
Home |
Main Index |
Thread Index |
Old Index