
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;
}
Summary of Contents for PPC/PMC-8260/DS1
Page 1: ...PPC PMC 8260 DS1 Reference Guide P N 6806800B10A July 2006 ...
Page 8: ...viii PPC PMC 8260 DS1 ...
Page 22: ...xxii PPC PMC 8260 DS1 ...
Page 26: ...xxvi PPC PMC 8260 DS1 ...
Page 30: ...xxx PPC PMC 8260 DS1 ...
Page 31: ...1 Introduction ...
Page 32: ......
Page 39: ...2 Installation ...
Page 40: ......
Page 53: ...3 Indicators and Connectors ...
Page 54: ......
Page 64: ...On Board Connectors Indicators and Connectors 3 12 PPC PMC 8260 DS1 ...
Page 65: ...4 Firmware ...
Page 66: ......
Page 104: ...Code Examples Firmware 4 40 PPC PMC 8260 DS1 ...
Page 105: ...5 Memory Map and Devices ...
Page 106: ......
Page 132: ...Resetting the Devices Memory Map and Devices 5 28 PPC PMC 8260 DS1 ...
Page 133: ...6 TDM Channel Configuration ...
Page 134: ......
Page 145: ...A Troubleshooting ...
Page 146: ......
Page 148: ...A 4 PPC PMC 8260 DS1 ...
Page 150: ...I 2 PPC PMC 8260 DS1 ...