annotate defs/rbsuper.d @ 2617:b1145d2cb659

Adding atari port folder and modifications to init and krn to accommodate
author Boisy Pitre <boisy.pitre@nuance.com>
date Tue, 21 Feb 2012 08:34:51 -0600
parents 17d43fd29ee2
children b8c7b7fbf3c9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2590
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
1 ********************************************************************
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
2 * rbsuper.d - rbsuper definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
3 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
4 * $Id$
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
5 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
6 * (C) 2004 Boisy G. Pitre - Licensed to Cloud-9
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
7 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
8 * These definitions make up the static storage environment for the
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
9 * rbsuper driver. Low level drivers share these variables with
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
10 * rbsuper, and also have an area reserved exclusively for their use.
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
11 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
12 * Edt/Rev YYYY/MM/DD Modified by
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
13 * Comment
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
14 * ------------------------------------------------------------------
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
15 * 2004/04/10 Boisy G. Pitre
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
16 * Created.
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
17 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
18 * 2005/11/27 Boisy G. Pitre
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
19 * Moved SCSI base addresses and I/O offsets to here.
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
20 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
21 * 2005/12/13 Boisy G. Pitre
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
22 * Employed a "trick" whereby driver's U is pointed UOFFSET bytes
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
23 * into the static storage for faster, smaller code generation.
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
24 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
25 * 2005/12/13 Boisy G. Pitre
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
26 * Rearranged order of driver statics for smaller code size
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
27
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
28 * Interface Address
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
29 SDAddr SET $FF00
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
30 SDMPI SET $FF
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
31
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
32 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
33 * IT.DNS Definitions for all Low Level Drivers
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
34 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
35 DNS.HDB EQU %00001000
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
36
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
37 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
38 * IT.DNS Definitions for Low Level SCSI Driver
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
39 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
40 DNS.TURBO EQU %00010000
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
41
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
42 maxcache SET 2048
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
43 DrvCount EQU 8
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
44 llreserve EQU 64
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
45
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
46 UOFFSET EQU DRVBEG+(DRVMEM*DrvCount)
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
47
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
48 ORG 0
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
49 V.LLSema RMB 1 low-level semaphore variable
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
50 V.LastDrv RMB 1 last drive to access cache
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
51 V.PhysSect RMB 3 physical (HW) sector
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
52 V.LogSect RMB 3 logical (256 byte) sector
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
53 V.SectSize RMB 1 sector size
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
54 V.SectCnt RMB 1 number of hw sectors to read from interface
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
55 V.Log2Phys RMB 1 number of logical (256) byte sectors to 1 physical sector
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
56 V.CchAddr RMB 2 address of cache in system memory
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
57 V.CchSize RMB 2 size of cache in bytes
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
58 V.CchPSpot RMB 2 pointer to target physical sector in cache
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
59 V.CchLSpot RMB 2 pointer to target logical sector in cache
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
60 V.CchDirty RMB 1 cache dirty flag (0 = cache is stable, !0 = cache is dirty)
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
61 V.CchBase RMB 3 logical sector at start of cache
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
62 V.HDBDrive RMB 1 IT.STP (used as HDB-DOS drive number if HDB-DOS partition)
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
63 V.HDBPart RMB 1 HDB-DOS partition flag (0 = not HDB-DOS partition, !0 = is)
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
64 V.SSCache RMB DrvCount sector size cache table for each drive
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
65 V.LLAddr RMB 2 low level module address
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
66 V.LLInit RMB 2 low level init entry point
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
67 V.LLRead RMB 2 low level read entry point
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
68 V.LLWrite RMB 2 low level write entry point
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
69 V.LLGtSt RMB 2 low level getstat entry point
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
70 V.LLStSt RMB 2 low level setstat entry point
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
71 V.LLTerm RMB 2 low level term entry point
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
72 * Low Level Driver Memory starts here
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
73 V.LLMem EQU . start of low level driver memory
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
74 RMB llreserve reserved area... low level driver uses this as it wants
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
75 V.LLMemSz EQU .-V.LLMem
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
76 * Note: we trick rbsuper to so that it thinks its static storage starts at
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
77 * zero when it really starts beyond DRVBEG+(DRVMEM*DrvCount).
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
78 RMB UOFFSET
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
79 V.RBSuper EQU . end of RBSuper's (and ll driver's) memory requirements