02.03.2014 Views

vxworks programmer's guide.pdf - DAQ Plone Site

vxworks programmer's guide.pdf - DAQ Plone Site

vxworks programmer's guide.pdf - DAQ Plone Site

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.

VxWorks 5.4<br />

Programmer’s Guide<br />

Table 3-13<br />

SCSI Constants<br />

Constant Description Where to Configure<br />

INCLUDE_SCSI_DMA Enable DMA for SCSI. sysLib.c or sysScsi.c<br />

INCLUDE_SCSI_BOOT Allow booting from a SCSI device. sysLib.c or sysScsi.c<br />

SCSI_AUTO_CONFIG<br />

Auto-configure and locate all<br />

targets on a SCSI bus.<br />

sysLib.c or sysScsi.c<br />

INCLUDE_DOSFS Include the DOS file system. operating system<br />

components/IO system<br />

components<br />

INCLUDE_TAPEFS Include the tape file system. config.h<br />

INCLUDE_CDROMFS<br />

Include CD-ROM file system<br />

support.<br />

config.h<br />

Autoconfiguration, DMA, and booting from a SCSI device are defined<br />

appropriately for each BSP. If you need to change these settings, see the online<br />

reference for sysScsiConfig( ) under VxWorks Reference>Manual: Libraries and the<br />

source file installDir/target/src/config/usrScsi.c. Except for dosFs, which can be<br />

configured from the project facility, the file systems that can be used with SCSI<br />

must be defined in config.h. (For more information see 8. Configuration and Build.)<br />

! CAUTION: Including SCSI-2 in your VxWorks image can significantly increase the<br />

image size. If you receive a warning from vxsize when building VxWorks, or if the<br />

size of your image becomes greater than that supported by the current setting of<br />

RAM_HIGH_ADRS, be sure to see 8.6.1 Scaling Down VxWorks, p.344 and<br />

8.9 Creating Bootable Applications, p.364 for information on how to resolve the<br />

problem.<br />

Configuring the SCSI Bus ID<br />

Each board in a SCSI-2 environment must define a unique SCSI bus ID for the SCSI<br />

initiator. SCSI-1 drivers, which support only a single initiator at a time, assume an<br />

initiator SCSI bus ID of 7. However, SCSI-2 supports multiple initiators, up to eight<br />

initiators and targets at one time. Therefore, to ensure a unique ID, choose a value<br />

in the range 0-7 to be passed as a parameter to the driver’s initialization routine<br />

(for example, ncr710CtrlInitScsi2( )) by the sysScsiInit( )routine in sysScsi.c. For<br />

more information, see the reference entry for the relevant driver initialization<br />

routine. If there are multiple boards on one SCSI bus, and all of these boards use<br />

130

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

Saved successfully!

Ooh no, something went wrong!