scsiha(7M)

scsiha - SCSI bus and loop operation driver

As shipped in IRIX 6.5. First release of IRIX 6.5.

NAME
     scsiha - SCSI bus and loop operation driver

SYNOPSIS
     /hw/scsi_ctlr/<number>/bus

DESCRIPTION
     The scsiha driver is used to pass requests to the scsi host adapter
     drivers to perform activities that aren't related to SCSI commands issued
     to individual devices.  On parallel SCSI, this includes operations like
     resetting a SCSI bus and probing for devices.  With Fibrechannel, it adds
     loop initialization, device reset and port bypass.

     All communication through the scsiha driver is via ioctls.  Opens and
     closes automatically succeed.  The ioctl structure is defined in
     <sys/scsi.h>, and is called scsi_ha_op . The scsi_ha_op structure:

       struct scsi_ha_op
       {
         uint    sb_opt;    /* command option */
         uint    sb_arg;    /* usually data count */
         uintptr_t sb_addr;   /* usually user address */
       };
       typedef struct scsi_ha_op scsi_ha_op_t;




     The sb_opt field is typically used to specifiy different options to the
     ioctl.  For example, the debug level of the host adapter driver, or a
     sub-operation code.
     The sb_arg field is typically used to specify how much data to transfer
     to/from the user level application and the driver.
     The sb_addr field should contain the user address to transfer the data
     to/from.

     There are a number of different ioctls that can be issued.

     SOP_RESET - fields unused
     SOP_SCAN - fields unused
     SOP_DEBUGLEVEL - uses sb_opt
     SOP_LIP - fields unused
     SOP_LIPRST - sb_opt is target ID to reset
     SOP_LPB - sb_opt is target ID to bypass
     SOP_LPE - sb_opt is target ID to enable
     SOP_LPEALL - fields unused
     SOP_QUIESCE - sb_opt is time for quiesce attempt, sb_arg is time for
     quiesce to be active
     SOP_QUIESCE_STATE - sb_addr is address of state variable
     SOP_UN_QUIESCE - fields unused
     SOP_GET_SCSI_PARMS - sb_addr is address to receive data
     center box ; cB s s s s s s l | l l l l l l .  Hardware Interface Driver
     Support _ IOCTL           WD93WD95SCIPQLADP78FCADP _ SOP_RESET
     YESYESYESYESYESYES SOP_SCAN        YESYESYESYESYESYES SOP_DEBUGLEVEL
     NONONOYESNOYES SOP_LIP         NONONONONOYES SOP_LIPRST
     NONONONONOYES SOP_LPB         NONONONONOYES SOP_LPE         NONONONONOYES
     SOP_LPEALL         NONONONONOYES SOP_QUIESCE     NONONOYESNOYES
     SOP_QUIESCE_STATENONONOYESNOYES SOP_UNQUIESCE   NONONOYESNOYES
     SOP_GET_SCSI_PARMSNONONOYESYESNO


     center box ; cB s s s s c | l l l l l | l l l l .  Utilization By Program
     _ scsi-scsi-scsi-scsi- IOCTL           haadminswaphotswapquiesce _
     SOP_RESET       YESNONONO SOP_SCAN        YESYESYESYES SOP_DEBUGLEVEL
     YESNONONO SOP_LIP         YESNONONO SOP_LIPRST      YESNONONO SOP_LPB
     YESNONONO SOP_LPE         YESNONONO SOP_LPEALL         YESNONONO
     SOP_QUIESCE     NOYESYESYES SOP_QUIESCE_STATENOYESYESYES SOP_UNQUIESCE
     NOYESYESYES SOP_GET_SCSI_PARMSYESNONONO


NOTES
     Since the driver provides direct access to the SCSI host adapter, the
     system administrator must be very careful in setting up the permissions
     on the device files, lest security holes occur, no checking is performed
     for potentially dangerous actions (bus reset, get data, send data, port
     bypass).  There should be no reason for non-superuser use of this driver
     interface.  Resetting a SCSI bus can affect currently running programs.
     Anything that is using a tape drive will be aborted when the bus is
     reset.

FILES
     /hw/scsi_ctlr/#/bus

SEE ALSO
     ds(7M) to issue SCSI commands directly to devices.
     scsiha(1m), scsihotswap(1m), scsiquiesce(1m), scsiadminswap(1m), for
     programs that use this driver.