Category : Assembly Language Source Code
Archive   : DRIVEKIT.ZIP
Filename : DD_DEF.MAC

 
Output of file : DD_DEF.MAC contained in archive : DRIVEKIT.ZIP

;*************************************************************************
;*************************************************************************
;
; DEVICE DEFINITION FILE
;
;*************************************************************************
;*************************************************************************
;
TRUE EQU 1
FALSE EQU 0
;
; Initialize Device Name to Blanks
IN_NAME
;**************************************************************************
; Select DOS version number:
; for DOS 2.00 or 2.10 set DOS2_X to TRUE
; for DOS 3.00 set DOS2_X to FALSE
;
DOS2_X EQU FALSE
DOS3_0 EQU NOT DOS2_X
;
;**************************************************************************
; Enter device driver name here in place of X's
; (1 to 8 characters in upper case)
;
;MKNAME XXXXXXXX
MKNAME PRN
;
;**************************************************************************
;
; Select attributes for device from the following table:
;
; Defined Attribute Bits
;
CHR EQU 8000H ;character device
IOCTL EQU 4000H ;IOCTL supported
IBM EQU 2000H ;IBM format block device
;
if DOS3_0
OCREM EQU 0800H ;open,close, removable media support
endif
;
SPECIAL EQU 0010H ;special device using INT 29H handler
CLOCK EQU 0008H ;current clock device
NUL EQU 0004H ;current NUL device
STDOUT EQU 0002H ;current standard output device
STDIN EQU 0001H ;current standard input device
;
; Example: CHR+SPECIAL+STDOUT+STDIN
; defines a console device attribute word of 8013H
;
;**************************************************************************
; Edit this line to define your attribute:
;
ATTRIB EQU CHR+IOCTL
;
;*************************************************************************
PAGE
;**************************************************************************
;
; Each line in the following table contains three arguments:
;
; #1 is TRUE if the function is implemented, FALSE if not
; #2 is the name of a valid function to which the TRUE or FALSE applies
; #3 is the label which is the entry point for this function;
; if the function is not implemented, DONE or INVALID will
; be used; also note that if the function is implemented
; the MACRO declares the label EXTRN. If the function is
; not implemented the exit pt. is assumed to be defined
; within ENTRY.ASM.
;
FUNCTION TRUE,INIT,PRNIT
FUNCTION FALSE,MEDIA_CHECK,DONE
FUNCTION FALSE,BUILD_BPB,DONE
FUNCTION TRUE,IOCTL_IN,PRNCTL_IN
FUNCTION FALSE,INPUT,XFER
FUNCTION FALSE,ND_INPUT,DONE2
FUNCTION FALSE,IN_STAT,DONE
FUNCTION FALSE,FLUSHIN,DONE
FUNCTION TRUE,OUTPUT,PRNOUT
FUNCTION TRUE,VOUTPUT,PRNOUT
FUNCTION TRUE,OUT_STAT,PRNSTAT
FUNCTION FALSE,FLUSHOUT,DONE
FUNCTION TRUE,IOCTL_OUT,PRNCTL_OUT
if DOS3_0
FUNCTION FALSE,OPEN,DONE
FUNCTION FALSE,CLOSE,DONE
FUNCTION FALSE,REMOVABLE,DONE
endif
;
;End of device definition file
;--------------------------------------------------------------------------