summaryrefslogtreecommitdiff
path: root/arch/arm/plat-omap/include/dspbridge/memdefs.h
blob: a5bb25915b77c823f152c281d1780f4502b0977c (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
44
45
46
47
48
49
50
51
52
/*
 * memdefs.h
 *
 * DSP-BIOS Bridge driver support functions for TI OMAP processors.
 *
 * Copyright (C) 2008 Texas Instruments, Inc.
 *
 * This package is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 */


/*
 *  ======== memdefs.h ========
 *  Purpose:
 *      Global MEM constants and types, shared between WSX, WCD, and WMD.
 *
 *! Revision History:
 *! ================
 *! 28-Aug-2001 ag:  Added MEM_[SET][GET]VIRTUALSEGID.
 *! 10-Aug-1999 kc:  Based on wsx-c18.
 *! 15-Nov-1996 gp:  Renamed from wsxmem.h and moved to kwinos.
 *! 21-Aug-1996 cr:  Created from mem.h.
 */

#ifndef MEMDEFS_
#define MEMDEFS_

/* Memory Pool Attributes: */
	enum MEM_POOLATTRS {
		MEM_PAGED = 0,
		MEM_NONPAGED = 1,
		MEM_LARGEVIRTMEM = 2
	} ;

/*
 *  MEM_VIRTUALSEGID is used by Node & Strm to access virtual address space in
 *  the correct client process context.
 */
#define MEM_SETVIRTUALSEGID     0x10000000
#define MEM_GETVIRTUALSEGID     0x20000000
#define MEM_MASKVIRTUALSEGID    (MEM_SETVIRTUALSEGID | MEM_GETVIRTUALSEGID)

#define TO_VIRTUAL_UNCACHED(x) x
#define INTREG_TO_VIRTUAL_UNCACHED(x) x

#endif				/* MEMDEFS_ */