1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.1.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>MI_GetWramReservation</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">MI_GetWramReservation* <IMG src="../../image/TWL.gif" align="middle"></h1> 15<h2>Syntax</h2> 16 17<dl> 18 <dd> 19<CODE>#include <twl/mi.h></CODE><BR> <BR> <CODE>MIWramProc MI_GetWramReservation( <A href="../mi_constant.html">MIWramPos</A> wram, int num )</CODE><br> <BR> <CODE>(define)</CODE><br> <CODE>MI_GetWramReservation_A( num )</CODE><br> <CODE>MI_GetWramReservation_B( num )</CODE><br> <CODE>MI_GetWramReservation_C( num )</CODE><br> 20 </dd> 21</dl> 22<h2>Arguments</h2> 23<TABLE border="1"> 24 <TBODY> 25 <TR> 26<TD><SPAN class="argument">wram</SPAN></TD> 27<TD>WRAM to get information about.</TD> 28 </TR> 29 <TR> 30<TD><SPAN class="argument">num</SPAN></TD> 31<TD>Slot number of the WRAM to get information about.</TD> 32 </TR> 33 </TBODY> 34</TABLE> 35<h2>Return Values</h2> 36<p>Returns which processor the specified WRAM slot has been reserved for.<BR>Returns one of the following: <CODE>MI_WRAM_ARM7</CODE>, <CODE>MI_WRAM_ARM9</CODE>, or <CODE>MI_WRAM_DSP</CODE>. However, if the specified slot is not reserved for any processor, <CODE>MI_WRAM_FREE</CODE> is returned.</p> 37<H2>Description</H2> 38<P>Gets which processor the specified WRAM slot is reserved for.</P> 39<P>The <SPAN class="argument">wram</SPAN> argument is of type <A href="../mi_constant.html"><CODE>MIWramPos</CODE></A> and specifies which WRAM's information to get.</P> 40<P>The <SPAN class="argument">num</SPAN> argument is the slot number of the target WRAM. For WRAM-A it should be 0-3, and for WRAM-B and WRAM-C, it should be 0-7.</P> 41<P><CODE>MI_GetWramReservation_A</CODE> is the <CODE>#define</CODE> directive of <CODE>MI_GetWramReservation( MI_WRAM_A, ... )</CODE>.<BR><CODE>MI_GetWramReservation_B</CODE> is the <CODE>#define</CODE> directive of <CODE>MI_GetWramReservation( MI_WRAM_B, ... )</CODE>.<BR><CODE>MI_GetWramReservation_C</CODE> is the <CODE>#define</CODE> directive of <CODE>MI_GetWramReservation( MI_WRAM_C, ... )</CODE>.<BR> 42 43<h2>Internal Operation</h2> 44<p>Accesses I/O registers MBK6-MBK8.</p> 45 46<h2>See Also</h2> 47<P><A href="about_Wram.html">Overview: Work RAM</A><BR> <A href="../mi_constant.html">MI-Related Constants</A></P> 48 49<H2>Revision History</H2> 50<P>2007/08/22 Initial version.</P> 51<hr><p>CONFIDENTIAL</p></body> 52</html> 53