VxWorks Reference Manual : Libraries

scsiDirectLib

NAME

scsiDirectLib - SCSI library for direct access devices (SCSI-2)

ROUTINES

scsiStartStopUnit( ) - issue a START_STOP_UNIT command to a SCSI device
scsiReserve( ) - issue a RESERVE command to a SCSI device
scsiRelease( ) - issue a RELEASE command to a SCSI device

DESCRIPTION

This library contains commands common to all direct-access SCSI devices. These routines are separated from scsi2Lib in order to create an additional layer for better support of all SCSI direct-access devices.

Commands in this library include:

Command Op Code

FORMAT UNIT (0x04)
READ (6) (0x08)
READ (10) (0x28)
READ CAPACITY (0x25)
RELEASE (0x17)
RESERVE (0x16)
MODE SELECT (6) (0x15)
MODE SELECT (10) (0x55)
MODE SENSE (6) (0x1a)
MODE SENSE (10) (0x5a)
START STOP UNIT (0x1b)
WRITE (6) (0x0a)
WRITE (10) (0x2a)

INCLUDE FILES

scsiLib.h, scsi2Lib.h

SEE ALSO

scsiDirectLib, dosFsLib, rt11FsLib, rawFsLib, scsi2Lib, VxWorks Programmer's Guide: I/O System, Local File Systems


Libraries : Routines

scsiStartStopUnit( )

NAME

scsiStartStopUnit( ) - issue a START_STOP_UNIT command to a SCSI device

SYNOPSIS

STATUS scsiStartStopUnit
    (
    SCSI_PHYS_DEV * pScsiPhysDev, /* ptr to SCSI physical device */
    BOOL            start         /* TRUE == start, FALSE == stop */
    )

DESCRIPTION

This routine issues a START_STOP_UNIT command to a specified SCSI device.

RETURNS

OK, or ERROR if the command fails.

SEE ALSO

scsiDirectLib


Libraries : Routines

scsiReserve( )

NAME

scsiReserve( ) - issue a RESERVE command to a SCSI device

SYNOPSIS

STATUS scsiReserve
    (
    SCSI_PHYS_DEV * pScsiPhysDev /* ptr to SCSI physical device */
    )

DESCRIPTION

This routine issues a RESERVE command to a specified SCSI device.

RETURNS

OK, or ERROR if the command fails.

SEE ALSO

scsiDirectLib


Libraries : Routines

scsiRelease( )

NAME

scsiRelease( ) - issue a RELEASE command to a SCSI device

SYNOPSIS

STATUS scsiRelease
    (
    SCSI_PHYS_DEV * pScsiPhysDev /* ptr to SCSI physical device */
    )

DESCRIPTION

This routine issues a RELEASE command to a specified SCSI device.

RETURNS

OK, or ERROR if the command fails.

SEE ALSO

scsiDirectLib