summaryrefslogtreecommitdiffstats
path: root/private/ntos/boot/bootcode/hpfs/i386/misc.inc
blob: 7135cf542feff10ed5728b6665c9e33fa1223a44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
;static char *SCCSID = "@(#)misc.h     12.2 88/12/19";
; #define DEBUG       1

ifdef MASM

	include filemode.inc

	BREAK	<Misc. Definitions>

endif

ERROR_OPLOCKED	equ	0eeh


;*	MISC.INC - Miscelaneous structure definitions.
;
;	These need to be included first because other structures
;	make use of them.
;


;*	SecPtr - Sector Pointer Structure
;
;	Structures which contain a sector number usually use the
;	SecPtr structure, which contains an advisory pointer.  The
;	pointer points to a buffer header, which is *probably* the
;	header for the sector named in SecPtr, but the user must check.
;

SECPTR 	struc
    SNUM dd ?		; VSector number
    SHINT dw ?	; hint address, 0 if none
SECPTR	ends




;*	Write type flags for SDW
;

WT_CACH   	equ	01h 	    ; write  via cache
WT_DIR	  	equ	02h 	    ; write direct as much as possible
WT_EXT	  	equ	04h 	    ; write is extending the file


;*	Bit Map Sets

BITMAPL	equ	-4		    ; bit map length preceeds table
BITMAPC	equ	-8		    ; count of sectors left in bitmap


;*	conditional short value

ifdef MASM
ifdef USE16
SHRT	EQU	< >
else
ifdef DEBUG
SHRT	EQU	< >
else
SHRT	EQU	<short>
endif
endif
endif