Download SYS68K/CPU-60 Technical Reference Manual
Transcript
FGA Boot Utility Functions
8.3.4
FGA Boot
Get Application Values in SRAM
This function sets a pointer to the base address of the application values
stored in the SRAM. It also returns the size of this structure (# of bytes).
Function number
39 (=2716)
Syntax
long util (39, APPL_VALUES
Parameter
pApplValues
**pApplValues)
Address (!) of a pointer to structure APPL_VALUES. This pointer will be
set by the routine to that location where the application values start in
SRAM.
typedef packed struct
{
unsigned short applFlags;
unsigned long applValue;
} APPL_VALUES;
Returns
8.3.5
Size of structure in bytes
Get Ethernet Number
This function copies the board’s Ethernet number (6 bytes) to the specified buffer. The return value includes the status of this operation.
Function number
40 (=2816)
Syntax
long util (40, long intfNumb, char *pEtherAdr)
Parameters
intfNumb
Interface number, must be set to 0.
pEtherAdr
Pointer to buffer where the Ethernet number should be stored into.
Returns
(-1)
Page 200
OK
204077 June 1999; last documentation change with FGA Boot Vers. 4.21
0
ERROR, no Ethernet number available.
SYS68K/CPU-60