•  Back 
  •  Functions 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help page 
  •  Show info about hypertext 
  •  View a new file 
Topic       : A system-global SCSI-driver SCSI-Driver
Author      : Steffen Engel
Version     : Text-Release 1.10e
Subject     : Documentation/Utilities
Nodes       : 31
Index Size  : 708
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : Title
@help       : 
@options    : -i +zz -t2
@width      : 70
View Ref-File3.10  CheckDev                                             SCSI-Driver

  LONG  cdecl (*CheckDev)     (WORD         BusNo,
                               const DLONG *SCSIId,
                               char        *Name,
                               UWORD       *Features);

As InquireSCSI, except that explicit inquiry is made about a given bus 
and a given SCSI-ID.

As a return one obtains the name of the bus, as well as information 
about what one can do with the named device.

Returns:

  = 0         : OK
  < 0         : Error
   -2 EDRIVNR : Information could not be established (e.g. check for
                ICD-capability)
  -15 EUNDEV  : The bus number or the device number is not being
                managed
  -36 EACCDN  : Access not possible (e.g. own SCSI-ID on an
                arbitrating bus)

This is useful for two things:

   ∙ A program loads a parameter file and can check with this whether

        - the bus exists

        - the bus name has been changed (with alternative busses there
          may be differences present)

        - the device is accessible

   ∙ For alternative host adapters the driver checks whether it can 
     address specifically this device in a different manner to that 
     usual on this bus (e.g. ICD: full command set on ACSI on _this_ 
     device).