RAM 6.0 BUX II Series Guía de usuario Pagina 100

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 189
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 99
VxWorks
BSP Developer’s Guide, 6.0
92
/************************************************************
* sysPciAutocinfigInclude - Specify devices to configure
*
* This routine returns TRUE for each device that the
* BSP needs to have configured.
*
* This hypothetical board had on-board power management
* controller as a PCI device and on-board video controller.
* Neither of those devices are supported by the BSP, but
* we want to configure everything else.
*
* Note that the PCI_ID_PM and PCI_ID_VIDEO macros are
* defined in the bspname.h file, as the device and
* vendor IDs of those devices:
*
* #define PCI_ID_PM ( ( PCI_PM_DEVICE << 16 ) | PCI_PM_VENDOR )
* #define PCI_ID_VIDEO ( ( PCI_VIDEO_DEVICE << 16 ) | PCI_VIDEO_VENDOR )
*
* RETURNS: N/A
*/
STATUS sysPciAutoconfigInclude
(
PCI_SYSTEM *pSys,
PCI_LOC *pLoc,
UINT devVend
)
{
/* skip the local host bridge */
if ( ( pLoc->bus == 0 ) && ( pLoc->device == 0 ) )
return ERROR;
switch (devVend)
{
case PCI_ID_PM: /* Exclude Power Management */
case PCI_ID_VIDEO: /* Exclude Video */
retVal = ERROR;
break;
/* Include Everything Else */
default:
retVal = OK;
break;
}
return (retVal);
}
/*
* intIrqTable - interrupt line assignments for autoconfig’d devices.
* This table includes the IRQ number for each PCI interrupt source
* on the board. The table is organized by a [bus, device, pin]
* tuple, since each [bus, device] pair identifies a unique physical
* location on the PCI bus, and each routine with that location
* can choose to use a different interrupt pin.
*/
Vista de pagina 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 188 189

Comentarios a estos manuales

Sin comentarios