(Page 2 of 14 in this chapter)
typedef struct
{
struct AGM_BOOTSTAT
{
WORD code;
WORD count;
WORD data[32];
} bootstat;
struct AGM_EEPROM_DATA
{
WORD boardtype;
WORD boardrev;
long serial;
WORD date;
WORD min_sw_rev;
WORD dsps;
WORD cmemsize;
WORD dramsize;
WORD cpuspeed;
WORD dspspeed;
WORD mvipproc_speed;
WORD atetest;
WORD busclkdiv;
WORD sramsize;
WORD subtype;
WORD confbrdg;
WORD spare [14];
WORD checksum;
} eeprom_data;
} AGM_BOOT_INFO ;
|
Field
|
Description
|
|---|---|
|
bootstat
|
A structure containing boot status information.
|
|
eeprom_data
|
A structure containing EEPROM data from the hardware.
|
|
Field
|
Description
|
|---|---|
|
code
|
Status code for the boot.
|
|
count
|
Number of words in the data array.
|
|
data
|
Error-specific data.
|
for (board=0; board < AGM_MAX_BOARDS; board++)
{
if (boardmask & (1<<board))
{
AGM_BOOT_INFO status;
printf (""Board %d: Booting..."", board);
if (agmBootBoard (agmhd, board, &status) != SUCCESS)
printf (""Failed\n"");
else
{
printf (""Downloading..."");
if (agmDownloadBoard (agmhd, board) != SUCCESS)
printf (""Failed\n"");
else
printf (""Done.\n"");
}
}
}
(Page 2 of 14 in this chapter)