ltq-deu: changes for hash multithread callers and md5 endianess
[openwrt/staging/wigyori.git] / package / kernel / lantiq / ltq-deu / src / ifxmips_deu_danube.h
index 25efa04a6960aafbde5da133ff56436806328dd4..25561cf6e08a7500a7d506b44d50514728f8f6f1 100644 (file)
         hash->controlr.INIT = 1;  \
     } while(0)
 
+#define MD5_HASH_INIT                  \
+    do {                               \
+        volatile struct deu_hash_t *hash = (struct deu_hash_t *) HASH_START; \
+        hash->controlr.SM = 1;    \
+        hash->controlr.ALGO = 1;  \
+        hash->controlr.INIT = 1;  \
+    } while(0)
+
 /* DEU STRUCTURES */
 
 struct clc_controlr_t {