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

I.1 Introduction<br />

The VxWorks SCSI-2 subsystem consists of the following components:<br />

■<br />

■<br />

SCSI libraries, an architecture-independent component<br />

SCSI controller driver, an architecture-specific component<br />

■<br />

SCSI-2 subsystem initialization code, a board-specific component<br />

You must first understand the basic functionality of each of these components<br />

before you can extend the functionality of the SCSI libraries or add new SCSI<br />

controller drivers. To help you gain that understanding, this chapter describes the<br />

general layout of the various SCSI modules, discusses the internals of the SCSI<br />

libraries (and their programming interface with the SCSI controller drivers), and<br />

describes the process of developing a controller-specific SCSI driver.<br />

For information on the interface between the I/O system and the SCSI libraries,<br />

including configuring SCSI peripheral devices within VxWorks, see the VxWorks<br />

Programmer’s <strong>Guide</strong>: I/O System.<br />

NOTE: In this chapter, the term SCSI refers to SCSI-2 in all cases. The SCSI library<br />

interfaces and SCSI controller drivers described in this chapter refer to SCSI-2 only.<br />

VxWorks offers only limited support for SCSI-1. Eventually, VxWorks will<br />

eliminate all SCSI-1 support.<br />

317

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

Saved successfully!

Ooh no, something went wrong!