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

I.3.2 SCSI Controller Library (scsiCtrlLib)<br />

The SCSI controller library is designed for the older generation of SCSI-2<br />

controllers that require the protocol state machine (and transitions) to be handled<br />

by a higher level of software.These basic SCSI controller drivers (those that need<br />

to use the SCSI state machine provided by the SCSI library) use the SCSI controller<br />

library. More advanced SCSI controllers allow such protocol state machines to be<br />

implemented at the SCSI controller level. This significantly reduces the number of<br />

SCSI interrupts to the CPU per I/O process which improves performance.<br />

There is a well defined interface between the SCSI libraries and the controller<br />

driver of such drivers, and this interface is defined in I.4 The SCSI Driver<br />

Programming Interface, p.325.<br />

I.3.3 SCSI Direct Access Library (scsiDirectLib)<br />

The SCSI direct access library scsiDirectLib encapsulates all the routines that<br />

implement the SCSI direct access commands as defined in the SCSI ANSI<br />

Specification I. In addition to all the direct access commands, scsiDirectLib<br />

provides the routines that supply the BLK_DEV abstraction for SCSI direct access<br />

peripheral devices.<br />

I.3.4 SCSI Sequential Access Library (scsiSeqLib)<br />

The SCSI sequential access library scsiSeqLib provides all the routines that<br />

implement the mandatory SCSI sequential access commands as defined in the<br />

SCSI ANSI Specification I. Some optional features are also implemented. Routines<br />

that manipulate the SEQ_DEV abstraction are also supplied in this library.<br />

I.3.5 SCSI Common Access Library (scsiCommonLib)<br />

SCSI commands that are common to all SCSI peripheral device types are provided<br />

in the common access library. These commands are described in the SCSI ANSI<br />

Specification I. The programming interface to such commands can be found in the<br />

relevant reference entries or by looking at the header file scsi2Lib.h.<br />

324

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

Saved successfully!

Ooh no, something went wrong!