02.03.2014 Views

BSP Developer's Guide

BSP Developer's Guide

BSP Developer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

VxWorks 5.5<br />

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

SCSI_PHYS_DEV<br />

This structure contains information about available logical devices plus<br />

information about the various threads.<br />

SEQ_DEV<br />

This structure represents a sequential logical device such as a tape drive.<br />

BLK_DEV<br />

This structure represents a block device such as a disk drive.<br />

Figure I-3<br />

Controller- and Driver-Specific Data Structures<br />

SCSI_CTRL<br />

LIST<br />

UINT<br />

RING_ID<br />

RING_ID<br />

RING_ID<br />

RING_ID<br />

SCSI_PHYS_DEV *<br />

{virtual function pointers}<br />

.<br />

.<br />

{other state information}<br />

.<br />

.<br />

SCSI_THREAD<br />

SCSI_CTRL<br />

SCSI_PHYS_DEV<br />

MSG_Q_ID<br />

WDOG_ID<br />

UINT<br />

{thread state information}<br />

{replication of<br />

SCSI_TRANSACTION<br />

information}<br />

.<br />

.<br />

freeThreads<br />

nThreads<br />

requestQ<br />

replyQ<br />

eventQ<br />

timeoutQ<br />

physDevArr[ ]<br />

*pScsiCtrl<br />

*pScsiPhysDev<br />

replyQ<br />

wdog<br />

tagNumber<br />

SCSI_PHYS_DEV<br />

{device information from INQUIRY}<br />

LIST<br />

blkDevList<br />

SEQ_DEV *pScsiSeqDev<br />

LIST<br />

waitingThreads<br />

LIST<br />

activeThreads<br />

{other state information}<br />

.<br />

.<br />

SEQ_DEV<br />

.<br />

.<br />

.<br />

BLK_DEV<br />

.<br />

.<br />

.<br />

{command description block}<br />

UINT8 *dataAddress<br />

UINT8 *cmdAddress<br />

.<br />

.<br />

SCSI_TRANSACTION<br />

320

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

Saved successfully!

Ooh no, something went wrong!