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.

I<br />

Writing a SCSI-2 Device Driver<br />

For example:<br />

scsiDiskThruputTest "4 0 0x0000 0x0000"<br />

scsiDiskTest( )<br />

This test performs any or all of the tests described below. The invocation for<br />

scsiDiskTest( ) is as follows:<br />

scsiDiskTest "test scsiBusId devLun Iterations numBlocks blkOffset"<br />

The individual parameters must fit the guidelines described below:<br />

test<br />

One of the following:<br />

#1: runs only commonCmdsTest( )<br />

#2: runs only directRwTest( )<br />

#3: runs only directCmdsTest( )<br />

-[a]: runs all disk tests<br />

scsBusId<br />

Target device ID<br />

devLun<br />

Device logical unit ID<br />

Iterations<br />

Number of times to execute read/write tests<br />

numBlocks<br />

Number of blocks in block device<br />

blkOffset<br />

Address of first block in volume<br />

For example, the following invocation exercises all disk tests, repeating the<br />

read/write exercise 10 times:<br />

I<br />

scsiDiskTest "-a 4 0 10 0x0000 0x0000"<br />

The default test mode is to execute all of the following three tests.<br />

361

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

Saved successfully!

Ooh no, something went wrong!