
VxWorks
BSP Developer’s Guide, 6.0
82
The default value of the MAX_LAT routine is NULL. Unless the MAX_LAT routine
is changed,
MAX_LAT values are set according to the value of
PCI_MAX_LAT_ALL_SET during autoconfiguration.
The following routines pertain to the user-supplied argument discussed above:
PCI_MAX_LATENCY_ARG_SET
When the routine PCI_MAX_LATENCY_FUNC_SET is called,
PCI_MAX_LATENCY_ARG_SET is passed to the routine as the user-supplied
argument.
The default value is 0.
PCI_MAX_LAT_ALL_SET
If no user-defined argument is specified in
PCI_MAX_LATENCY_FUNC_SET,
PCI_MAX_LAT_ALL_SET specifies a constant maximum latency value for all
devices.
The default value is 0.
PCI_MAX_LAT_ALL_GET
If no user-defined argument is specified in
PCI_MAX_LATENCY_FUNC_SET,
this routine retrieves the value of maximum latency for all PCI devices.
Otherwise, the integer pointed to by pArg is set to the value 0xffffffff.
Error Messages
The argument passed to PCI_MSG_LOG_SET specifies a routine that is called to
print warning or error messages from pciAutoConfigLib. The specified routine
accepts arguments in the same format as logMsg( ), but does not necessarily need
to print the actual message. An example of this routine, which saves the message
into safe memory and turns on an LED, is presented below. This command is
useful for BSPs that call pciAutoCfg( ) before message logging is enabled. If a
routine is specified, it is superseded by logMsg( ) as soon as it is configured. The
default value for this routine is
NULL.
/* sample PCI_MSG_LOG_SET routine */
int pciLogMsg(char *fmt,int a1,int a2,int a3,int a4,int a5,int a6)
{
sysLedOn(4);
return(sprintf(sysExcMsg,fmt,a1,a2,a3,a4,a5,a6));
}
PCI_MSG_LOG_SET
FUNCPTR * pArg
Comentários a estes Manuais