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 />

/***************************************************************************<br />

*<br />

* xxxWideXferParamsQuery - get wide data transfer parameters<br />

*<br />

* Updates the wide data transfer parameters suggested in the call to match<br />

* the XXX SCSI controller's capabilities. Transfer width is in the units<br />

* of the WIDE DATA TRANSFER message's transfer width exponent field. This is<br />

* an 8 bit field where 0 represents a narrow transfer of 8 bits, 1 represents<br />

* a wide transfer of 16 bits and 2 represents a wide transfer of 32 bits.<br />

*<br />

* RETURNS: OK<br />

*/<br />

LOCAL STATUS xxxWideXferParamsQuery<br />

(<br />

SCSI_CTRL *pScsiCtrl, /* ptr to controller info */<br />

UINT8 *xferWidth /* suggested transfer width */<br />

)<br />

{<br />

}<br />

/***************************************************************************<br />

*<br />

* xxxXferParamsSet - set transfer parameters<br />

*<br />

* Validate the requested parameters, convert to the XXX SCSI controller's<br />

* native format and save in the current thread for later use (the chip's<br />

* registers are not actually set until the next script activation for this<br />

* thread).<br />

*<br />

* Transfer period is specified in SCSI units (multiples of 4 ns). An offset<br />

* of zero specifies asynchronous transfer.<br />

*<br />

* RETURNS: OK if transfer parameters are OK, else ERROR.<br />

*/<br />

LOCAL STATUS xxxXferParamsSet<br />

(<br />

SCSI_CTRL *pScsiCtrl, /* ptr to controller info */<br />

UINT8 offset, /* max REQ/ACK offset */<br />

UINT8 period /* min transfer period */<br />

)<br />

{<br />

}<br />

/***************************************************************************<br />

*<br />

* xxxWideXferParamsSet - set wide transfer parameters<br />

*<br />

* Assume valid parameters and set the XXX's thread parameters to the<br />

* appropriate values. The actual registers are not written yet, but will<br />

* be written from the thread values when it is activated.<br />

*<br />

* Transfer width is specified in SCSI transfer width exponent units.<br />

*<br />

* RETURNS: OK<br />

350

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

Saved successfully!

Ooh no, something went wrong!