diff options
author | 2014-03-24 12:15:03 +0000 | |
---|---|---|
committer | 2014-03-24 12:15:03 +0000 | |
commit | 78ebbcdbb2f2df3bc461c5fc47543c20898c8a7e (patch) | |
tree | e64cccddcaa0d513e47551081655dd5a7b7db122 /sys/dev/pci/mpiireg.h | |
parent | make mpii_sge look like mpi_sge, and provide a wrapper for setting the (diff) | |
download | wireguard-openbsd-78ebbcdbb2f2df3bc461c5fc47543c20898c8a7e.tar.xz wireguard-openbsd-78ebbcdbb2f2df3bc461c5fc47543c20898c8a7e.zip |
mpii_sges are 4 byte aligned. makes storing the flags field a bit easier
on strict alignment archs.
Diffstat (limited to 'sys/dev/pci/mpiireg.h')
-rw-r--r-- | sys/dev/pci/mpiireg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mpiireg.h b/sys/dev/pci/mpiireg.h index a1689255a3d..28b8c81cb56 100644 --- a/sys/dev/pci/mpiireg.h +++ b/sys/dev/pci/mpiireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpiireg.h,v 1.4 2014/03/24 12:06:58 dlg Exp $ */ +/* $OpenBSD: mpiireg.h,v 1.5 2014/03/24 12:15:03 dlg Exp $ */ /* * Copyright (c) 2010 Mike Belopuhov * Copyright (c) 2009 James Giannoules @@ -126,7 +126,7 @@ struct mpii_sge { u_int32_t sg_hdr; u_int32_t sg_addr_lo; u_int32_t sg_addr_hi; -} __packed; +} __packed __aligned(4); struct mpii_fw_tce { u_int8_t reserved1; |