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

commonCmdsTest( )<br />

This test exercises all mandatory SCSI common-access commands for SCSI<br />

peripheral devices. These common access commands are:<br />

– TEST UNIT READY<br />

– REQUEST SENSE<br />

– INQUIRY<br />

directRwTest( )<br />

This test exercises write, read, and check data pattern for:<br />

– 6-byte SCSI commands<br />

– 10-byte SCSI commands<br />

directCmdsTest( )<br />

This test exercises all of the direct-access commands listed below. Optionally,<br />

the FORMAT command can be tested by specifying a value of TRUE for the<br />

parameter doFormat.<br />

– MODE SENSE<br />

– MODE SELECT<br />

– RESERVE<br />

– RELEASE<br />

– READ CAPACITY<br />

– READ<br />

– WRITE<br />

– START STOP UNIT<br />

– FORMAT (optional)<br />

scsiSpeedTest( )<br />

This test initializes a block device for use with a dosFs file system. The test uses a<br />

large buffer to read and write from and to contiguous files with both buffered and<br />

non-buffered I/O.<br />

scsiSpeedTest( ) runs a number of laps, and uses timex to time the write and read<br />

operations. The speed test should be run on only one drive at a time to obtain<br />

maximum throughput.<br />

Invoke this test as follows:<br />

scsiSpeedTest "scsiBusId devLun numBlocks blkOffset"<br />

362

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

Saved successfully!

Ooh no, something went wrong!