a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 hdwrench.library
  FindControllerID
  FindDefaults
  FindDiskName
  FindLastSector
  HDWCloseDevice
  HDWOpenDevice
  InMemMountfile
  InMemRDBStructs
  LowlevelFormat
  OutMemMountfile
  OutMemRDBStructs
  QueryCapacity
  QueryFindValid
  QueryInquiry
  QueryModeSense
  QueryReady
  RawRead
  RawWrite
  ReadMountfile
  ReadRDBStructs
  ReadRDBs
  VerifyDrive
  WriteBlock
  WriteMountfile
  WriteRDBStructs
  WriteRDBs
  ZZexample
  description
Include
GuruMeditation
Docs » Autodocs » hdwrench.library » FindControllerID

NAME

    FindControllerID

SYNOPSIS

    success = FindControllerID ( devname, selfid )
D0 A0 A1
BOOL FindControllerID ( char *devname, ULONG *selfid );

FUNCTION

    Test open devices until find SelfID error
( Of course, this does not work on Commododo "scsi.device" and most
other implementations. )

INPUTS

    devname Pointer to C string device name for device to be searched.
selfid Pointer to a ULONG for storing result. Preload it with a
value within the expected range of results. (Used to determine
the board to search.) Note this *MUST* be a ULONG value.

RESULT

    success BOOL, TRUE means value returned in selfid has meaning.
selfid Filled with the discovered HostID for the controller card.

NOTES

    Note that the library must NOT have a device open for this test
to succeed.

BUGS

    This tool searches only the "legal" first 8 SCSI IDs, 0..7, for a
HFERR_SELFID error return from opening and attempting to issue a
command to the opened unit. Most controllers do not support this.

SEE ALSO

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Razor 1911

ANA
HZ
RBS
RZR

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se