![]() |
![]() |
00001 /* --COPYRIGHT--,BSD 00002 * Copyright (c) 2010, Texas Instruments Incorporated 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions 00007 * are met: 00008 * 00009 * * Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * 00012 * * Redistributions in binary form must reproduce the above copyright 00013 * notice, this list of conditions and the following disclaimer in the 00014 * documentation and/or other materials provided with the distribution. 00015 * 00016 * * Neither the name of Texas Instruments Incorporated nor the names of 00017 * its contributors may be used to endorse or promote products derived 00018 * from this software without specific prior written permission. 00019 * 00020 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00021 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 00022 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00023 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 00024 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 00025 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 00026 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 00027 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 00028 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 00029 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 00030 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00031 * --/COPYRIGHT--*/ 00032 00061 #ifndef ti_sdo_dmai_Cpu_h_ 00062 #define ti_sdo_dmai_Cpu_h_ 00063 00064 #include <xdc/std.h> 00065 00066 #include <ti/sdo/dmai/Dmai.h> 00067 00070 00074 typedef enum { 00076 Cpu_Device_DM355 = 0, 00077 00079 Cpu_Device_DM365, 00080 00082 Cpu_Device_DM368, 00083 00085 Cpu_Device_DM6446, 00086 00088 Cpu_Device_DM6467, 00089 00091 Cpu_Device_DM6437, 00092 00094 Cpu_Device_OMAP3530, 00095 00097 Cpu_Device_OMAPL137, 00098 00100 Cpu_Device_OMAPL138, 00101 00103 Cpu_Device_DM3730, 00104 00105 Cpu_Device_COUNT 00106 } Cpu_Device; 00107 00111 typedef struct Cpu_Object *Cpu_Handle; 00112 00117 typedef struct Cpu_Attrs { 00119 Int dummy; 00120 } Cpu_Attrs; 00121 00125 extern const Cpu_Attrs Cpu_Attrs_DEFAULT; 00126 00127 #if defined (__cplusplus) 00128 extern "C" { 00129 #endif 00130 00139 extern Cpu_Handle Cpu_create(Cpu_Attrs *attrs); 00140 00152 extern Int Cpu_getDevice(Cpu_Handle hCpu, Cpu_Device *device); 00153 00161 extern Char *Cpu_getDeviceName(Cpu_Device device); 00162 00172 extern Int Cpu_getLoad(Cpu_Handle hCpu, Int *cpuLoad); 00173 00182 extern Int Cpu_delete(Cpu_Handle hCpu); 00183 00184 #if defined (__cplusplus) 00185 } 00186 #endif 00187 00190 #endif /* ti_sdo_dmai_linux_Cpu_h_ */