Mercurial > hg > Members > kono > nitros9-code
annotate defs/io.d @ 1764:c51d21c94682
Fixed problem in swset where query needed lbra.
Converted all files to Unix EOL
author | boisy |
---|---|
date | Fri, 01 Apr 2005 17:01:46 +0000 |
parents | 27e85b681dab |
children |
rev | line source |
---|---|
1626 | 1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
2 ; io - I/O Constant Definitions |
1626 | 3 ; |
4 ; $Id$ | |
5 ; | |
6 ; Edt/Rev YYYY/MM/DD Modified by | |
7 ; Comment | |
8 ; ------------------------------------------------------------------ | |
9 ; 2004/05/17 Boisy G. Pitre | |
1760
27e85b681dab
Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents:
1630
diff
changeset
|
10 ; Created. |
1626 | 11 |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
12 .title I/O Constant Definitions |
1626 | 13 |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
14 .ifndef Level |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
15 Level == 1 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
16 .endif |
1626 | 17 |
18 READ. == 0b00000001 | |
19 WRITE. == 0b00000010 | |
20 UPDAT. == READ.+WRITE. | |
21 EXEC. == 0b00000100 | |
22 PREAD. == 0b00001000 | |
23 PWRIT. == 0b00010000 | |
24 PEXEC. == 0b00100000 | |
25 SHARE. == 0b01000000 | |
26 DIR. == 0b10000000 | |
27 ISIZ. == 0b00100000 | |
28 | |
29 | |
30 ; | |
31 ; Path Descriptor Offsets | |
32 ; | |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
33 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
34 PD.PD == 0 ; Path Number |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
35 PD.MOD == 1 ; Mode (Read/Write/Update) |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
36 PD.CNT == 2 ; Number of Open Images |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
37 PD.DEV == 3 ; Device Table Entry Address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
38 PD.CPR == 5 ; Current Process |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
39 PD.RGS == 6 ; Caller's Register Stack |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
40 PD.BUF == 8 ; Buffer Address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
41 PD.FST == 32 ; File Manager's Storage |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
42 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
43 PD.OPT == PD.FST ; PD GetSts(0) Options |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
44 PD.DTP == 32 ; Device Type |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
45 ; Path options are here |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
46 PDSIZE == 64 |
1626 | 47 |
48 ; | |
49 ; Pathlist Special Symbols | |
50 ; | |
51 PDELIM == '/ ; Pathlist Name Separator | |
52 PDIR == '. ; Directory | |
53 PENTIR == '@ ; Entire Device | |
54 | |
55 ; | |
56 ; File Manager Entry Offsets | |
57 ; | |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
58 FMCREA == 0 ; Create (Open New) File |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
59 FMOPEN == 3 ; Open File |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
60 FMMDIR == 6 ; Make Directory |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
61 FMCDIR == 9 ; Change Directory |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
62 FMDLET == 12 ; Delete File |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
63 FMSEEK == 15 ; Position File |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
64 FMREAD == 18 ; Read from File |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
65 FMWRIT == 21 ; Write to File |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
66 FMRDLN == 24 ; ReadLn |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
67 FMWRLN == 27 ; WritLn |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
68 FMGSTA == 30 ; Get File Status |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
69 FMSSTA == 33 ; Set File Status |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
70 FMCLOS == 36 ; Close File |
1626 | 71 |
72 ; | |
73 ; Device Driver Entry Offsets | |
74 ; | |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
75 D$INIT == 0 ; Device Initialization |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
76 D$READ == 3 ; Read from Device |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
77 D$WRIT == 6 ; Write to Device |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
78 D$GSTA == 9 ; Get Device Status |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
79 D$PSTA == 12 ; Put Device Status |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
80 D$TERM == 15 ; Device Termination |
1626 | 81 |
82 ; | |
83 ; Device Table Format | |
84 ; | |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
85 V$DRIV == 0 ; Device Driver module |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
86 V$STAT == 2 ; Device Driver Static storage |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
87 V$DESC == 4 ; Device Descriptor module |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
88 V$FMGR == 6 ; File Manager module |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
89 V$USRS == 8 ; use count |
1626 | 90 .ifgt Level-1 |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
91 V$DRIVEX == 9 ; Device Driver execution address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
92 V$FMGREX == 11 ; File Manager execution address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
93 DEVSIZ == 13 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
94 .else |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
95 DEVSIZ == 9 |
1626 | 96 .endif |
97 | |
98 ; | |
99 ; Device Static Storage Offsets | |
100 ; | |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
101 V.PAGE == 0 ; Port Extended Address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
102 V.PORT == 1 ; Device 'Base' Port Address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
103 V.LPRC == 3 ; Last Active Process ID |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
104 V.BUSY == 4 ; Active Process ID (0=UnBusy) |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
105 V.WAKE == 5 ; Active PD if Driver MUST Wake-up |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
106 V.USER == 6 ; Driver Allocation Origin |
1626 | 107 |
108 ; | |
109 ; Interrupt Polling Table Format | |
110 ; | |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
111 Q$POLL == 0 ; Absolute Polling Address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
112 Q$FLIP == 2 ; Flip (EOR) Byte ..normally Zero |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
113 Q$MASK == 3 ; Polling Mask (after Flip) |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
114 Q$SERV == 4 ; Absolute Service routine Address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
115 Q$STAT == 6 ; Static Storage Address |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
116 Q$PRTY == 8 ; Priority (Low Numbers=Top Priority) |
1626 | 117 .ifgt Level-1 |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
118 Q$MAP == 9 ; NitrOS-9 Level 2 and above |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
119 POLSIZ == 11 |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
120 .else |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
121 POLSIZ == 9 |
1626 | 122 .endif |
123 | |
124 ; | |
125 ; VIRQ packet format | |
126 ; | |
1630
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
127 Vi.Cnt == 0 ; count down counter |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
128 Vi.Rst == 2 ; reset value for counter |
7af4d12008f4
Updated ChangeLogs with slight formatting differences
boisy
parents:
1627
diff
changeset
|
129 Vi.Stat == 4 ; status byte |
1626 | 130 |
131 Vi.IFlag == 0b00000001 ; status byte virq flag |