summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2011-07-08 08:26:42 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2011-07-08 08:26:42 +0000
commit0862b1eef08fddca9627bed690963cd6d39f139e (patch)
tree013d96db99aef19755e74b57944b2f4a67ebab6f /sys/dev/ic
parent5eb16bed8c5763bf167ca2cb4509b4118a55e243 (diff)
ansi, no binary change
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/gdtvar.h23
1 files changed, 7 insertions, 16 deletions
diff --git a/sys/dev/ic/gdtvar.h b/sys/dev/ic/gdtvar.h
index d2cd6c9567a..ef3e8dc071f 100644
--- a/sys/dev/ic/gdtvar.h
+++ b/sys/dev/ic/gdtvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: gdtvar.h,v 1.19 2011/04/19 23:59:11 krw Exp $ */
+/* $OpenBSD: gdtvar.h,v 1.20 2011/07/08 08:26:41 jsg Exp $ */
/*
* Copyright (c) 1999, 2000 Niklas Hallqvist. All rights reserved.
@@ -253,9 +253,7 @@ struct gdt_ccb {
static inline int gdt_ccb_set_cmd(struct gdt_ccb *, int);
static inline int
-gdt_ccb_set_cmd(ccb, flag)
- struct gdt_ccb *ccb;
- int flag;
+gdt_ccb_set_cmd(struct gdt_ccb *ccb, int flag)
{
int rv = ccb->gc_flags & GDT_GCF_CMD_MASK;
@@ -412,38 +410,31 @@ static inline u_int16_t gdt_dec16(u_int8_t *);
static inline u_int32_t gdt_dec32(u_int8_t *);
static inline void
-gdt_enc16(addr, value)
- u_int8_t *addr;
- u_int16_t value;
+gdt_enc16(u_int8_t *addr, u_int16_t value)
{
*(u_int16_t *)addr = htole16(value);
}
static inline void
-gdt_enc32(addr, value)
- u_int8_t *addr;
- u_int32_t value;
+gdt_enc32(u_int8_t *addr, u_int32_t value)
{
*(u_int32_t *)addr = htole32(value);
}
static inline u_int8_t
-gdt_dec8(addr)
- u_int8_t *addr;
+gdt_dec8(u_int8_t *addr)
{
return *(u_int8_t *)addr;
}
static inline u_int16_t
-gdt_dec16(addr)
- u_int8_t *addr;
+gdt_dec16(u_int8_t *addr)
{
return letoh16(*(u_int16_t *)addr);
}
static inline u_int32_t
-gdt_dec32(addr)
- u_int8_t *addr;
+gdt_dec32(u_int8_t *addr)
{
return letoh32(*(u_int32_t *)addr);
}