;       SCCSID = @(#)i_devct8.inc	6.1 91/02/15
;	SCCSID = @(#)i_devct8.inc	6.2 90/01/22
; ****************************************************************************
; *									     *
; *			  IBM/Microsoft Confidential			     *
; *									     *
; *		    Copyright (c) IBM Corporation  1987, 1990		     *
; *		    Copyright (c) Microsoft Corp.  1987, 1990		     *
; *			      All Rights Reserved			     *
; *									     *
; ****************************************************************************
; This file contains the constants for simulation of Dos 5.0 IOCTL block device
; control calls from a Dos 2.x, 3.x environment.
;
;	David Silverstein
;	Copyright MicroSoft Corporation, 1986
;	15-May-86

;	Dos 5 block device IOCTL commands

D5_LockDrive		equ	00h	; Lock drive
D5_UnlockDrive		equ	01h	; Unlock drive
D5_RedetermineMedia	equ	02h	; Redetermine media
D5_SetLogicalMap	equ	03h	; set logical map
D5_BlockRemovable	equ	20h	; block removable
D5_GetLogicalMap	equ	21h	; get logical map
D5_SetDeviceParams	equ	43h	; set device parameters
D5_WriteTrack		equ	44h	; write track
D5_FormatTrack		equ	45h	; format and verify track
D5_GetDeviceParams	equ	63h	; get device parameters
D5_ReadTrack		equ	64h	; read track
D5_VerifyTrack		equ	65h	; verify track

;	Dos 2.x, 3.x block device IOCTL commands

D2_Changeable		equ	08h	; changeable media
D2_GetLogicalMap	equ	0Eh	; get logical map
D2_SetLogicalMap	equ	0Fh	; set logical map
D2_GetDeviceParams	equ	60h	; get device parameters
D2_SetDeviceParams	equ	40h	; set device parameters
D2_ReadTrack		equ	61h	; read track
D2_WriteTrack		equ	41h	; write track
D2_VerifyTrack		equ	62h	; verify track
D2_FormatTrack		equ	42h	; format track

D2_BLOCKDEVS		equ	0Dh	; block devices
CATEGORY8		equ	8	; category 8 - block devices

;
; Definitions for Extended OPEN Open Mode bits
;
DASD			equ	1000000000000000b
DENY_NONE		equ	0000000001000000b
READ_WRITE		equ	0000000000000010b

