02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VxWorks 5.5<br />

<strong>BSP</strong> Developer’s <strong>Guide</strong><br />

xxxWideXferParamsQuery( )<br />

This routine updates the wide data transfer parameters in the call to match<br />

those of the SCSI controller.<br />

xxxWideXferParamsSet( )<br />

This routine sets the wide data transfer parameters on the SCSI controller.<br />

The advanced controller driver also uses many of the facilities provided by the<br />

SCSI libraries. All the routines invoked by the SCSI controller library can also be<br />

invoked by the driver. Examining the SCSI controller library and the header file<br />

scsi2Lib.h shows all the routines available for the controller driver. The following<br />

list is a typical but not exhaustive list of routines that can be invoked by the driver:<br />

scsiCtrlInit( )<br />

This routine initializes the SCSI library data structures. It is called only once<br />

per SCSI controller.<br />

scsiMgrEventNotify( )<br />

This routine notifies the SCSI manager of an event that occurred on the SCSI<br />

bus.<br />

scsiWideXferNegotiate( )<br />

This routine initiates or continues wide data transfer negotiation. See the<br />

relevant reference entries and scsi2Lib.h for more details. It is typically<br />

invoked from the xxxThreadActivate( ) routine.<br />

scsiSyncXferNegotiate( )<br />

This routine initiates or continues synchronous data transfer negotiations. See<br />

the relevant reference entries and scsi2Lib.h for more details. It is typically<br />

invoked from the xxxThreadActivate( ) routine.<br />

scsiMgrCtrlEvent( )<br />

This routine sends an event to the SCSI controller state machine. It is usually<br />

called by the driver xxxEventProc( ) routine after a selection, reselection, or<br />

disconnection.<br />

scsiMgrBusReset( )<br />

This routine resets all physical devices in the SCSI library upon a bus-initiated<br />

reset. It is typically invoked from xxxEventProc( ).<br />

scsiMgrThreadEvent( )<br />

This routine sends an event to the thread state machine. It is called by the<br />

thread management routines within the driver; the entry point to the thread<br />

routines is by way of xxxEventProc( ). In general, xxxEventProc( ) is the<br />

general routine which calls other driver-specific thread-management routines.<br />

336

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!