diff options
Diffstat (limited to 'drivers/staging/vt6655/michael.h')
| -rw-r--r-- | drivers/staging/vt6655/michael.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/vt6655/michael.h b/drivers/staging/vt6655/michael.h index 3131b161d6a..f6c2c15d9cb 100644 --- a/drivers/staging/vt6655/michael.h +++ b/drivers/staging/vt6655/michael.h @@ -31,28 +31,28 @@ #ifndef __MICHAEL_H__ #define __MICHAEL_H__ +#include <linux/types.h> + /*--------------------- Export Definitions -------------------------*/ /*--------------------- Export Types ------------------------------*/ -void MIC_vInit(unsigned long dwK0, unsigned long dwK1); +void MIC_vInit(u32 dwK0, u32 dwK1); void MIC_vUnInit(void); -// Append bytes to the message to be MICed +/* Append bytes to the message to be MICed */ void MIC_vAppend(unsigned char *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(unsigned long *pdwL, unsigned long *pdwR); +/* Get the MIC result. Destination should accept 8 bytes of result. */ +/* This also resets the message to empty. */ +void MIC_vGetMIC(u32 *pdwL, u32 *pdwR); /*--------------------- Export Macros ------------------------------*/ -// 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__ - +/* 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__ */ |
