diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-01-12 19:52:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2009-01-12 19:52:40 +0000 |
commit | 6e2a318ba34b89a014a706440792cddf8d0b758d (patch) | |
tree | 0dc84e21dde76c4c27404d920ab0321bc71f1b44 /sys | |
parent | 74a4a7a1ff9ad79302224ff8ec6b01c56b44d523 (diff) |
Add padding to some message structs since the Solaris virtual disk servers
seems to want it. Also add 'struct vio_rdx' to make sure we use the proper
padding there too.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc64/dev/viovar.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/viovar.h b/sys/arch/sparc64/dev/viovar.h index bd755125e78..89573b9425d 100644 --- a/sys/arch/sparc64/dev/viovar.h +++ b/sys/arch/sparc64/dev/viovar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: viovar.h,v 1.1 2009/01/10 20:32:37 kettenis Exp $ */ +/* $OpenBSD: viovar.h,v 1.2 2009/01/12 19:52:39 kettenis Exp $ */ /* * Copyright (c) 2009 Mark Kettenis * @@ -63,6 +63,8 @@ struct vio_ver_info { uint16_t major; uint16_t minor; uint8_t dev_class; + uint8_t _reserved1[3]; + uint64_t _reserved2[5]; }; /* Device types. */ @@ -110,9 +112,16 @@ struct vio_dring_msg { uint32_t start_idx; uint32_t end_idx; uint8_t proc_state; - uint8_t _reserved[7]; + uint8_t _reserved1[7]; + uint64_t _reserved2[2]; }; /* Ring states. */ #define VIO_DP_ACTIVE 0x01 #define VIO_DP_STOPPED 0x02 + +struct vio_rdx { + struct vio_msg_tag tag; + uint64_t _reserved[6]; +}; + |