
3 Porting a BSP to Custom Hardware
3.3 Finalizing Your BSP
81
3
PCI_FBB_ENABLE and PCI_FBB_DISABLE enable and disable the routines that
check fast back-to-back (FBB) functionality.
PCI_FBB_UPDATE is for use with
dynamic or high availability (HA) applications.
PCI_FBB_UPDATE first disables
FBB on all routines, then enables FBB on all routines, if appropriate. In HA
applications, this option must be called any time a card is added or removed. The
BOOL pointed to by pArg for PCI_FBB_ENABLE and PCI_FBB_UPDATE is set to
TRUE if all cards allow FBB functionality; FALSE if any card does not allow FBB
functionality or if FBB is disabled. The
BOOL pointed to by pArg for
PCI_FBB_STATUS_GET is set to TRUE if PCI_FBB_ENABLE has been called and FBB
is enabled, even if FBB is not activated on any card. Otherwise, it is set to
FALSE.
In the current implementation, FBB is enabled or disabled on the entire bus. If any
device anywhere on the bus cannot support FBB, it is not enabled, even if specific
sub-busses can support it.
The FBB pciAutoCfgCtl( ) commands must be issued after the pciAutoCfg( ) call
is made and the bus is configured. Issuing these calls before pciAutoCfg( )
produces unpredictable results.
FBB bus cycles are disabled by default.
Latency Timer
PCI_MAX_LATENCY_FUNC_SET
This routine is called for each PCI device present on the bus when configuration
takes place. The routine accepts four arguments, specifying bus, device, routine,
and a user-supplied argument of type void*. For more information, see
PCI_MAX_LATENCY_ARG_SET below. The routine returns a UINT8 value that is
put into the
MAX_LAT field of the header structure. The user-supplied routine
returns a valid value each time it is called. There is no mechanism for any
ERROR
condition, but a default value can be returned in such a case.
NOTE: High availability (HA) is not available with all versions of VxWorks.
PCI_MAX_LATENCY_FUNC_SET
FUNCPTR * pArg
PCI_MAX_LATENCY_ARG_SET
void * pArg
PCI_MAX_LAT_ALL_SET
int pArg
PCI_MAX_LAT_ALL_GET
UINT * pArg
Comentários a estes Manuais