1 /* 2 * Copyright 2001-2008 Texas Instruments - http://www.ti.com/ 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18 /* 19 * ======== memdefs.h ======== 20 * DSP-BIOS Bridge driver support functions for TI OMAP processors. 21 * Purpose: 22 * Global MEM constants and types, shared between WSX, WCD, and WMD. 23 * 24 *! Revision History: 25 *! ================ 26 *! 28-Aug-2001 ag: Added MEM_[SET][GET]VIRTUALSEGID. 27 *! 10-Aug-1999 kc: Based on wsx-c18. 28 *! 15-Nov-1996 gp: Renamed from wsxmem.h and moved to kwinos. 29 *! 21-Aug-1996 cr: Created from mem.h. 30 */ 31 32 #ifndef MEMDEFS_ 33 #define MEMDEFS_ 34 35 #ifdef __cplusplus 36 extern "C" { 37 #endif 38 39 /* Memory Pool Attributes: */ 40 typedef enum { 41 MEM_PAGED = 0, 42 MEM_NONPAGED = 1, 43 MEM_LARGEVIRTMEM = 2 44 } MEM_POOLATTRS; 45 46 /* 47 * MEM_VIRTUALSEGID is used by Node & Strm to access virtual address space in 48 * the correct client process context. 49 */ 50 #define MEM_SETVIRTUALSEGID 0x10000000 51 #define MEM_GETVIRTUALSEGID 0x20000000 52 #define MEM_MASKVIRTUALSEGID (MEM_SETVIRTUALSEGID | MEM_GETVIRTUALSEGID) 53 54 #ifdef LINUX 55 56 #define TO_VIRTUAL_UNCACHED(x) x 57 #define INTREG_TO_VIRTUAL_UNCACHED(x) x 58 59 #endif 60 61 #ifdef __cplusplus 62 } 63 #endif 64 #endif /* MEMDEFS_ */ 65