1/*
2 * bdm_win_osl.h -- win osl for external supplicant
3 *
4 * Copyright (C) 2014, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
8 * the contents of this file may not be disclosed to third parties, copied
9 * or duplicated in any form, in whole or in part, without the prior
10 * written permission of Broadcom Corporation.
11 *
12 * $Id: bcm_win_osl.h,v 1.3 2010-12-11 01:39:18 $
13 */
14
15#ifndef _win_osl_h_
16#define _win_osl_h_
17
18#include <stdlib.h>
19#include <assert.h>
20#define ASSERT(args) assert(args)
21
22/* Minimalist OSL layer */
23#define MALLOC(osh, size)		malloc((size))
24#define MFREE(osh, ptr, len)		free((ptr))
25
26#define MALLOCED(osh)	(0)
27
28#define OS_MALLOC(len)		malloc(len)
29#define OS_FREE(p)		free(p)
30
31#define bcopy(src, dst, len)	memcpy((dst), (src), (len))
32#define bcmp(b1, b2, len)	memcmp((b1), (b2), (len))
33#define bzero(b, len)		memset((b), 0, (len))
34
35#define snprintf _snprintf
36
37#endif /* _win_osl_h_ */
38