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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1760
27e85b681dab Fixed DEFS issue in 6809l2 and 6309l2 (thanks Rodney!)
boisy
parents: 1630
diff changeset
2 ; io - I/O Constant Definitions
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
3 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
4 ; $Id$
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
5 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
6 ; Edt/Rev YYYY/MM/DD Modified by
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
7 ; Comment
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
8 ; ------------------------------------------------------------------
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
11
1630
7af4d12008f4 Updated ChangeLogs with slight formatting differences
boisy
parents: 1627
diff changeset
12 .title I/O Constant Definitions
1626
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
17
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
18 READ. == 0b00000001
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
19 WRITE. == 0b00000010
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
20 UPDAT. == READ.+WRITE.
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
21 EXEC. == 0b00000100
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
22 PREAD. == 0b00001000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
23 PWRIT. == 0b00010000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
24 PEXEC. == 0b00100000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
25 SHARE. == 0b01000000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
26 DIR. == 0b10000000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
27 ISIZ. == 0b00100000
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
28
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
29
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
30 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
31 ; Path Descriptor Offsets
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
47
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
48 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
49 ; Pathlist Special Symbols
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
50 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
51 PDELIM == '/ ; Pathlist Name Separator
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
52 PDIR == '. ; Directory
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
53 PENTIR == '@ ; Entire Device
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
54
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
55 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
56 ; File Manager Entry Offsets
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
71
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
72 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
73 ; Device Driver Entry Offsets
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
81
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
82 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
83 ; Device Table Format
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
96 .endif
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
97
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
98 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
99 ; Device Static Storage Offsets
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
107
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
108 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
109 ; Interrupt Polling Table Format
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
122 .endif
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
123
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
124 ;
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
125 ; VIRQ packet format
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
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
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
130
c01a65c813ce Definition files to use with as6809
boisy
parents:
diff changeset
131 Vi.IFlag == 0b00000001 ; status byte virq flag