Device drivers that need to access ASPIN, must determine the address of the ASPI entry point through an OS/2 Attach DevHelp call as follows:
SCSIMGR$ DB 'SCSIMGR$',0 Return_Data_Buffer DB 12 DUP (?) MOV BX,OFFSET SCSIMGR MOV DI,OFFSET Return_Data_Buffer MOV DL,DevHlp_AttachDD CALL [DevHlp]
On return from the Attach DevHelp call, a clear-carry flag indicates that the SCSI manager SCSIMGR$ was found and the return data is valid. A set-carry flag indicates that the SCSI manager was not found. The return data buffer has the following format:
ASPI_Real DW Real Mode offset of ASPI entry point DW Real Mode CS segment of ASPI entry point Real_DS DW Real Mode DS of ASPI entry point ASPI_Prot DW Protected Mode offset of ASPI entry point DW Protected Mode CS selector of ASPI entry point Prot_DS DW Protected Mode DS of ASPI entry point
Note: ASPI_Real and Real_DS are used by OS/2 1.x only. Information returned under OS/2 2.x is irrelevant.