diff options
author | 2014-03-27 09:42:57 +0000 | |
---|---|---|
committer | 2014-03-27 09:42:57 +0000 | |
commit | ad2e4b32933b6ad096a9f7012d2bda77b095a498 (patch) | |
tree | b80607ead6d2a4e2389f7f0c1bb104e23c3da4b6 /sys/dev/pci/mpiireg.h | |
parent | zap dead code; OK lteo@ (diff) | |
download | wireguard-openbsd-ad2e4b32933b6ad096a9f7012d2bda77b095a498.tar.xz wireguard-openbsd-ad2e4b32933b6ad096a9f7012d2bda77b095a498.zip |
the request and reply descriptors are 8 byte aligned for the hardware.
Diffstat (limited to 'sys/dev/pci/mpiireg.h')
-rw-r--r-- | sys/dev/pci/mpiireg.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/mpiireg.h b/sys/dev/pci/mpiireg.h index dfdb229e582..5cfc6c66990 100644 --- a/sys/dev/pci/mpiireg.h +++ b/sys/dev/pci/mpiireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpiireg.h,v 1.6 2014/03/24 12:24:30 dlg Exp $ */ +/* $OpenBSD: mpiireg.h,v 1.7 2014/03/27 09:42:57 dlg Exp $ */ /* * Copyright (c) 2010 Mike Belopuhov * Copyright (c) 2009 James Giannoules @@ -811,7 +811,7 @@ struct mpii_request_descr { u_int16_t lmid; u_int16_t dev_handle; -} __packed; +} __packed __aligned(8); struct mpii_reply_descr { u_int8_t reply_flags; @@ -828,7 +828,7 @@ struct mpii_reply_descr { u_int32_t data; u_int32_t frame_addr; /* Address Reply */ }; -} __packed; +} __packed __aligned(8); struct mpii_request_header { u_int16_t function_dependent1; |