19,503
社区成员
发帖
与我相关
我的任务
分享
static DWORD OEMEnumExtensionDRAM(
PMEMORY_SECTION pMemSections,
DWORD cMemSections)
{
DWORD cSections = 0;
//OALMSG(OAL_INFO, (L"[OAL]++OEMEnumExtensionDRAM\r\n"));
OALMSG(OAL_INFO, (L"[OAL]++OEMEnumExtensionDRAM\r\n"));
OALMSG(OAL_INFO, (L" cMemSections = %d \r\n",cMemSections));
if (cSections < cMemSections)
{
// DRAM0 Area
pMemSections[cSections].dwFlags = 0;
pMemSections[cSections].dwStart = DRAM0_BASE_CA_START; //0x88000000
pMemSections[cSections].dwLen = ONEDRAM_EXTSIZE_FOR_AP;
OALMSG(OAL_INFO, (L" DRAM0_BASE_CA_START = 0x%x \r\n",DRAM0_BASE_CA_START));
OALMSG(OAL_INFO, (L" pMemSections[cSections].dwStart = 0x%x \r\n",pMemSections[cSections].dwStart));
OALMSG(OAL_INFO, (L" Extension Size = 0x%x \r\n",pMemSections[cSections].dwLen));
cSections++;
// Extra DRAM1 Area 0x48000000, 106MB
pMemSections[cSections].dwFlags = 0;
pMemSections[cSections].dwStart = DRAM_EXTRA_BASE_CA_START; //0x99600000
pMemSections[cSections].dwLen = DRAM_EXTRA_SIZE;
OALMSG(OAL_INFO, (L" DRAM1_EXTRA_BASE_CA_START = 0x%x \r\n",DRAM_EXTRA_BASE_CA_START));
OALMSG(OAL_INFO, (L" pMemSections[cSections].dwStart = 0x%x \r\n",pMemSections[cSections].dwStart));
OALMSG(OAL_INFO, (L" Extension Size = 0x%x \r\n",pMemSections[cSections].dwLen));
cSections++;
}
OALMSG(OAL_INFO, (L"[OAL] --OEMEnumExtensionDRAM\r\n"));
return cSections;
}
BOOL
OEMGetExtensionDRAM( LPDWORD lpMemStart, LPDWORD lpMemLen )
{
OALMSG(OAL_INFO, (L"[OAL]++OEMGetExtensionDRAM\r\n"));
*lpMemStart = 0x88000000;
*lpMemLen = 0x08000000;
OALMSG(OAL_INFO, (L"[OAL]--OEMEnumExtensionDRAM\r\n"));
return TRUE;
}