VxWorks Reference Manual : Libraries

usrScsi

NAME

usrScsi - SCSI initialization

ROUTINES

usrScsiConfig( ) - configure SCSI peripherals


Libraries : Routines

usrScsiConfig( )

NAME

usrScsiConfig( ) - configure SCSI peripherals

SYNOPSIS


STATUS usrScsiConfig (void)

DESCRIPTION

This code configures the SCSI disks and other peripherals on a SCSI controller chain.

The macro SCSI_AUTO_CONFIG will include code to scan all possible device/lun id's and to configure a scsiPhysDev structure for each device found. Of course this doesn't include final configuration for disk partitions, floppy configuration parameters, or tape system setup. All of these actions must be performed by user code, either through sysScsiConfig( ), the startup script, or by the application program.

The user may customize this code on a per BSP basis using the SYS_SCSI_CONFIG macro. If defined, then this routine will call the routine sysScsiConfig( ). That routine is to be provided by the BSP, either in sysLib.c or sysScsi.c. If SYS_SCSI_CONFIG is not defined, then sysScsiConfig( ) will not be called as part of this routine.

An example sysScsiConfig( ) routine can be found in target/src/config/usrScsi.c. The example code contains sample configurations for a hard disk, a floppy disk and a tape unit.

RETURNS

OK or ERROR.

SEE ALSO

usrScsi, VxWorks Programmer's Guide: I/O System, Local File Systems