summaryrefslogtreecommitdiff
path: root/drivers/net/npe/IxOsalOsCacheMMU.c
blob: 72d22e5882c5935d0019c0817352ab96730f9b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
 * @file IxOsalOsCacheMMU.c (linux)
 *
 * @brief Cache MemAlloc and MemFree.
 *
 *
 * @par
 * IXP400 SW Release version 1.5
 *
 * -- Copyright Notice --
 *
 * @par
 * Copyright 2001-2005, Intel Corporation.
 * All rights reserved.
 *
 * @par
 * SPDX-License-Identifier:	BSD-3-Clause
 * @par
 * -- End of Copyright Notice --
 */

#include "IxOsal.h"

#include <malloc.h>

/*
 * Allocate on a cache line boundary (null pointers are
 * not affected by this operation). This operation is NOT cache safe.
 */
void *
ixOsalCacheDmaMalloc (UINT32 n)
{
	return malloc(n);
}

/*
 *
 */
void
ixOsalCacheDmaFree (void *ptr)
{
	free(ptr);
}