mirror of
https://github.com/antoinevignau/source.git
synced 2025-01-07 22:32:55 +00:00
1 line
32 KiB
Plaintext
1 line
32 KiB
Plaintext
|
;*********************************************************************************
;
; SCSI Driver 'Equates' file..
;
; Written by Matt Gulick. Started August 13,1988
;
; Copyright Apple Computer, Inc. 1988-93
; All Rights Reserved
;
;*********************************************************************************
;
; *** 6.0.1 ***
;
; 15-Dec-92 DAL for 6.0.1d12
; Changed apple_cd version number to $601a.
;
; 17-Feb-93 JCM for 6.0.1d14
; Changed direct_acc, mcd_40, scanner and appl_laser (for good measure anyway)
; version numbers to $601a.
;
; 6-Mar-93 JCM for 6.0.1d14
; Added equate for new characteristics bit ($0010) called "driver_is_clean".
; This indicates that we cleanly ignore/return errors when we get a command
; request from GS/OS or the Device Manager that we don't know about. This was
; specified in the guidelines since day one, but can people read and follow them?
; Of course not, that would make my job too easy.
;
; 2-Apr-93 SS for 6.0.1d16
;
; Changed direct_acc, apple_cd, mcd_40, scanner and appl_laser
; version numbers to $6010 (final)
;
;*********************************************************************************
;*********************************************************************************
;
; This file contains all the global equates for the
; SCSI Driver. Only those items below that are marked
; as "**** Changable ****" can be altered safly
; without detailed intimate knowledge of how the
; generic driver functions. Any other values should
; only be modified by someone who understands how this
; generic driver functions.
;
;*********************************************************************************
;
; Bit Location equates
;
null equ %0000000000000000
bit_0 equ %0000000000000001
bit_1 equ %0000000000000010
bit_2 equ %0000000000000100
bit_3 equ %0000000000001000
bit_4 equ %0000000000010000
bit_5 equ %0000000000100000
bit_6 equ %0000000001000000
bit_7 equ %0000000010000000
bit_8 equ %0000000100000000
bit_9 equ %0000001000000000
bit_10 equ %0000010000000000
bit_11 equ %0000100000000000
bit_12 equ %0001000000000000
bit_13 equ %0010000000000000
bit_14 equ %0100000000000000
bit_15 equ %1000000000000000
;
; Partition Map Signature
;
Part_sig equ $4d50 ;High-->Low
;
; Driver Descriptor Map Signature
;
DDM_sig equ $5245 ;High-->Low
;
; Booleans
;
true equ bit_0
false equ null
;
; Time definitions.
;
qtr_sec equ $0001
one_sec equ 4*qtr_sec
one_min equ 60*one_sec
;
; SCSI Driver dependent data
;
cmd_start equ $0000 ;Driver Startup Call
cmd_open equ $0001 ;Driver Open Call
cmd_read equ $0002 ;Driver Read Call
cmd_write equ $0003 ;Driver Write Call
cmd_close equ $0004 ;Driver Close Call
cmd_status equ $0005 ;Driver Status Call
cmd_control equ $0006 ;Driver Control Call
cmd_flush equ $0007 ;Driver Flush Call
cmd_shutdown equ $0008 ;Driver Shutdown Call
max_d_cmd equ $0008 ;Max Driver Command **** Changable ****
max_s_cmd equ $0005 ;Max Status Code **** Changable ****
max_c_cmd equ $0009 ;Max Control Code **** Changable ****
max_config_cmd equ $0001 ;Max Config Code **** Changable ****
;
; Suppervisory Dispatcher IDs and
; SCSI Manager Command Numbers
;
super_d_id equ $0000 ;Supervisory Dispatcher's ID
get_sdrvr_id equ $0000 ;Get S Driver's ID Number
set_sib_ptr equ $0001 ;Set SIB Pointer
cmd_get_dvc equ $0002 ;SCSI Manager Get Devices Call
cmd_claim_dvc equ $0003 ;SCSI Manager Claim Devices Call
scsi_io_call equ $0004 ;SCSI Manager I/O Call
;
; SCSI Device Types from INQUIRY Call
;
direct_acc equ $0000 ; Direct-Access Device
seq_acc equ $0001 ; Sequential-Access Device
print_dvc equ $0002 ; Printer Device
proc_dvc equ $0003 ; Processor Device
worm_dvc equ $0004 ; Write-once Read-multiple Device
read_dacc equ $0005 ;
|