
Firmware
Code Examples
PPC/PMC-8260/DS1
4 - 37
bcopy(ioBuff, buffer, size);
= size;
ta= size;
remaining -= size;
}
return 1;
}
Erasing the ROM Image
/* Erase ROM image area
* Returns 0 on error, 1 on success.
*/
int pmc8260_rom_erase (
char *memBase /* PCI window address */
)
{
printf (“erasing ROM image “);
strcpy(PBSYNC, “eras”);
if (!pmc8260_wait(memBase))
return 0;
return 1;
}
Checking Alive State of Target
/* Check alive status of Primary Booter
* Returns 0 on error, 1 on success.
*/
int pmc8260_ping (
char *memBase /* PCI window address */
)
{
strcpy(PBSYNC, “PING”);
if (!pmc8260_wait(memBase))
{
printf (“No answer\n”);
return 0;
}
printf (“Target %s@0x%08x is alive\n”,
PBSTR(PB_HDR_TARG), memBase);
return 1;
}
Содержание PPC/PMC-8260/DS1
Страница 1: ...PPC PMC 8260 DS1 Reference Guide P N 6806800B10A July 2006 ...
Страница 8: ...viii PPC PMC 8260 DS1 ...
Страница 22: ...xxii PPC PMC 8260 DS1 ...
Страница 26: ...xxvi PPC PMC 8260 DS1 ...
Страница 30: ...xxx PPC PMC 8260 DS1 ...
Страница 31: ...1 Introduction ...
Страница 32: ......
Страница 39: ...2 Installation ...
Страница 40: ......
Страница 53: ...3 Indicators and Connectors ...
Страница 54: ......
Страница 64: ...On Board Connectors Indicators and Connectors 3 12 PPC PMC 8260 DS1 ...
Страница 65: ...4 Firmware ...
Страница 66: ......
Страница 104: ...Code Examples Firmware 4 40 PPC PMC 8260 DS1 ...
Страница 105: ...5 Memory Map and Devices ...
Страница 106: ......
Страница 132: ...Resetting the Devices Memory Map and Devices 5 28 PPC PMC 8260 DS1 ...
Страница 133: ...6 TDM Channel Configuration ...
Страница 134: ......
Страница 145: ...A Troubleshooting ...
Страница 146: ......
Страница 148: ...A 4 PPC PMC 8260 DS1 ...
Страница 150: ...I 2 PPC PMC 8260 DS1 ...