aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/vt6656/michael.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/vt6656/michael.h')
-rw-r--r--drivers/staging/vt6656/michael.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/drivers/staging/vt6656/michael.h b/drivers/staging/vt6656/michael.h
index 3f79b52832d..9c69a42640a 100644
--- a/drivers/staging/vt6656/michael.h
+++ b/drivers/staging/vt6656/michael.h
@@ -31,28 +31,22 @@
#ifndef __MICHAEL_H__
#define __MICHAEL_H__
-/*--------------------- Export Definitions -------------------------*/
+#include <linux/types.h>
-/*--------------------- Export Types ------------------------------*/
+void MIC_vInit(u32 dwK0, u32 dwK1);
-VOID MIC_vInit(DWORD dwK0, DWORD dwK1);
-
-VOID MIC_vUnInit(void);
+void MIC_vUnInit(void);
// Append bytes to the message to be MICed
-VOID MIC_vAppend(PBYTE src, UINT nBytes);
+void MIC_vAppend(u8 * src, unsigned int nBytes);
// Get the MIC result. Destination should accept 8 bytes of result.
// This also resets the message to empty.
-VOID MIC_vGetMIC(PDWORD pdwL, PDWORD pdwR);
-
-/*--------------------- Export Macros ------------------------------*/
+void MIC_vGetMIC(u32 * pdwL, u32 * pdwR);
// Rotation functions on 32 bit values
-#define ROL32( A, n ) \
- ( ((A) << (n)) | ( ((A)>>(32-(n))) & ( (1UL << (n)) - 1 ) ) )
-#define ROR32( A, n ) ROL32( (A), 32-(n) )
-
-#endif //__MICHAEL_H__
-
+#define ROL32(A, n) \
+ (((A) << (n)) | (((A)>>(32-(n))) & ((1UL << (n)) - 1)))
+#define ROR32(A, n) ROL32((A), 32-(n))
+#endif /* __MICHAEL_H__ */