Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Devices /
Chapter 3 - SCSI Manager / SCSI Manager Reference
SCSI Manager Routines /


SCSIReset

You can use the SCSIReset function to reset all devices on the SCSI bus.

FUNCTION SCSIReset: OSErr;
DESCRIPTION
The SCSIReset function directs the SCSI controller chip (or equivalent hardware) in the Macintosh computer to assert the SCSI bus reset signal. The reset signal causes all devices on the bus to clear pending I/O and forces the bus into the bus free phase.

WARNING
The SCSIReset function interrupts SCSI communications and can cause data loss. Use this function only in exceptional circumstances.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for SCSIReset are
Trap macroSelector
_SCSIDispatch$0000

RESULT CODES
noErr0No error
scCommErr2Communications error, operation timeout
SEE ALSO
See "SCSI Bus Signals," beginning on page 3-4, and "SCSI Bus Phases," beginning on page 3-5, for more information about the reset signal and the bus free phase.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
3 JUL 1996