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

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

scsBusId<br />

Target device ID<br />

devLun<br />

Device logical unit ID<br />

numBlocks<br />

Number of blocks in block device<br />

blkOffset<br />

Address of first block in volume<br />

For example:<br />

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

tapeFsTest( )<br />

This test creates a tape file system and issues various commands to test the tape<br />

device. You can choose to test fixed-block-size tape devices, variable-block-size<br />

tape devices, or both. Fixed-block tests assume 512-byte blocks.<br />

The invocation for tapeFsTest( ) is as follows:<br />

tapeFsTest "test scsiBusId devLun"<br />

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

test<br />

One of the following:<br />

-f runs only the fixed-block-size test<br />

-v runs only the variable-block-size test<br />

-a runs both tests<br />

scsBusId<br />

Target device ID<br />

devLun<br />

Device logical unit ID<br />

For example, the following invocation exercises both tests:<br />

I<br />

tapeFsTest "-a 1 0"<br />

363

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

Saved successfully!

Ooh no, something went wrong!