00001 00010 /* 00011 * ============================================================================ 00012 * 00013 * Copyright (c) 2008-2012, Texas Instruments Incorporated 00014 * 00015 * Redistribution and use in source and binary forms, with or without 00016 * modification, are permitted provided that the following conditions 00017 * are met: 00018 * 00019 * * Redistributions of source code must retain the above copyright 00020 * notice, this list of conditions and the following disclaimer. 00021 * 00022 * * Redistributions in binary form must reproduce the above copyright 00023 * notice, this list of conditions and the following disclaimer in the 00024 * documentation and/or other materials provided with the distribution. 00025 * 00026 * * Neither the name of Texas Instruments Incorporated nor the names of 00027 * its contributors may be used to endorse or promote products derived 00028 * from this software without specific prior written permission. 00029 * 00030 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00031 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00032 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00033 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00034 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00035 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00036 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00037 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00038 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00039 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00040 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00041 * Contact information for paper mail: 00042 * Texas Instruments 00043 * Post Office Box 655303 00044 * Dallas, Texas 75265 00045 * Contact information: 00046 * http://www-k.ext.ti.com/sc/technical-support/product-information-centers.htm? 00047 * DCMP=TIHomeTracking&HQS=Other+OT+home_d_contact 00048 * ============================================================================ 00049 * 00050 */ 00051 00052 00053 00054 #ifndef _MEMORYDEFS_H_0x73E4 00055 #define _MEMORYDEFS_H_0x73E4 00056 00057 #if defined (__cplusplus) 00058 extern "C" { 00059 #endif 00060 00061 00065 typedef enum { 00066 Memory_XltFlags_Virt2Phys = 0x00000000, 00068 Memory_XltFlags_Phys2Virt = 0x00000001, 00070 Memory_XltFlags_EndValue = 0x00000002 00072 } Memory_XltFlags; 00073 00078 typedef struct MemoryOS_MapInfo_tag { 00079 UInt32 src; 00081 UInt32 size; 00083 UInt32 dst; 00085 Bool isCached; 00087 Ptr drvHandle; 00090 } MemoryOS_MapInfo ; 00091 00096 typedef struct MemoryOS_UnmapInfo_tag { 00097 UInt32 addr; 00099 UInt32 size; 00101 Bool isCached; 00103 } MemoryOS_UnmapInfo; 00104 00108 typedef struct MemoryOS_SGList { 00109 UInt32 paddr; 00111 UInt32 offset; 00113 UInt32 size; 00115 Bool isCached; 00117 } MemoryOS_SGList; 00118 00123 #define Memory_MapInfo MemoryOS_MapInfo 00124 00129 #define Memory_UnmapInfo MemoryOS_UnmapInfo 00130 00134 #define Memory_SGList MemoryOS_SGList 00135 00136 #if defined (__cplusplus) 00137 } 00138 #endif /* defined (__cplusplus) */ 00139 00140 #endif /* ifndef _MEMORYDEFS_H_0x73E4 */