Module Name: src Committed By: jakllsch Date: Wed Nov 2 16:03:02 UTC 2011
Modified Files: src/sys/dev/ic: siisatareg.h Log Message: Use appropriate __aligned(value) on already __packed hardware data structures. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/ic/siisatareg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/siisatareg.h diff -u src/sys/dev/ic/siisatareg.h:1.6 src/sys/dev/ic/siisatareg.h:1.7 --- src/sys/dev/ic/siisatareg.h:1.6 Wed Apr 7 17:51:16 2010 +++ src/sys/dev/ic/siisatareg.h Wed Nov 2 16:03:01 2011 @@ -1,7 +1,7 @@ -/* $NetBSD: siisatareg.h,v 1.6 2010/04/07 17:51:16 jakllsch Exp $ */ +/* $NetBSD: siisatareg.h,v 1.7 2011/11/02 16:03:01 jakllsch Exp $ */ /* - * Copyright (c) 2007, 2008, 2009, 2010 Jonathan A. Kollasch. + * Copyright (c) 2007, 2008, 2009, 2010, 2011 Jonathan A. Kollasch. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -54,13 +54,13 @@ struct siisata_sge { #define SGE_FLAG_LNK __BIT(30) #define SGE_FLAG_DRD __BIT(29) #define SGE_FLAG_XCF __BIT(28) -} __packed; +} __packed __aligned(8); /* Scatter/Gather Table */ /* must be aligned to 64-bit boundary */ struct siisata_sgt { struct siisata_sge sgt_sge[4]; -} __packed; +} __packed __aligned(8); /* Port Request Block */ struct siisata_prb { @@ -86,7 +86,7 @@ struct siisata_prb { /* First SGE in PRB is always reserved for ATAPI in this implementation. */ uint8_t prb_atapi[16]; /* zero for non-ATAPI */ struct siisata_sge prb_sge[1]; /* extended to NSGE */ -} __packed; +} __packed __aligned(8); #define SIISATA_NSGE ((MAXPHYS/PAGE_SIZE) + 1)