]> err.no Git - linux-2.6/blobdiff - drivers/crypto/padlock.h
[PATCH] ZyDAS ZD1211 USB-WLAN driver
[linux-2.6] / drivers / crypto / padlock.h
index 7a500605e449a151c57b2f916b6f24b23eecdba1..b78489bc298ac95d487de4bfaae06174fad5edf4 100644 (file)
 #ifndef _CRYPTO_PADLOCK_H
 #define _CRYPTO_PADLOCK_H
 
+#define PADLOCK_ALIGNMENT 16
+
 /* Control word. */
-union cword {
-       uint32_t cword[4];
-       struct {
-               int rounds:4;
-               int algo:3;
-               int keygen:1;
-               int interm:1;
-               int encdec:1;
-               int ksize:2;
-       } b;
-};
+struct cword {
+       unsigned int __attribute__ ((__packed__))
+               rounds:4,
+               algo:3,
+               keygen:1,
+               interm:1,
+               encdec:1,
+               ksize:2;
+} __attribute__ ((__aligned__(PADLOCK_ALIGNMENT)));
 
 #define PFX    "padlock: "