annotate 3rdparty/drivers/tccc/h4.asm @ 749:ec1909ff0764

Updated Makefile
author boisy
date Wed, 08 Jan 2003 05:09:53 +0000
parents d76cc2119c4f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
1 * TCCCHD descriptor: Hard disk driver descriptor for OS9
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
2 * Copyright (C) 1990,1991,1992,1993,1994,1995,1996 Robert E. Brose II
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
3 *
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
4 * This program is free software; you can redistribute it and/or modify
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
5 * it under the terms of the GNU General Public License as published by
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
7 * (at your option) any later version.
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
8 *
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
9 * This program is distributed in the hope that it will be useful,
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
12 * GNU General Public License for more details.
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
13 *
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
14 * You should have received a copy of the GNU General Public License
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
15 * along with this program; if not, write to the Free Software
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
17
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
18 * DISTO version 124/125/126 descriptor h4 170 meg seagate drive
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
19
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
20 nam disto.descriptor (h4)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
21 ttl device descriptor for seagate st2209n
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
22
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
23 ifp1
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
24 use defsfile
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
25 endc
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
26
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
27 verson equ $02
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
28 mod endmod,hdnam,devic+objct,reent+verson,hdmgr,hddrv
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
29
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
30 fcb $ff mode
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
31 fcb $07 port msb l2
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
32 fdb $ff70 port lsb's
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
33 fcb hdnam-*-1 init table size
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
34 fcb $01 dev type 1=rbf
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
35 fcb $00 logical drive number (0-3)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
36 fcb $00 step rate and retry options
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
37 fcb $80 device type 80=hd
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
38 fcb $11 media density
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
39 * bit 7 = Enable PHYSICAL format = 1 (logical format always enabled).
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
40 * bit 6 = Drive init = 1 (ONLY for st506 drives & wd1002/adaptec/xebec cont).
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
41 * bit 5 = LUN (2nd drive = 1) (only on st506 drives with external controller)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
42 * bit 4 = Recal on first access = 1 (Needed for normal embeded scsi drives)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
43 * bits 0 - 3 = SCSI ID IN BINARY. ID0=1, ID1=2, ID2=4 (may change some day!)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
44
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
45 fdb $0ae5 tracks per drive, see below
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
46 fcb $08 number of sides
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
47 fcb $01 verify writes 1=no verify
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
48 fdb $20 default sectors/track (32 sectors per physical track)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
49 fdb $20 track 0 sectors
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
50 fcb $1 interleave
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
51 fcb $20 default allocation in sectors
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
52
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
53 * added definitions
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
54 * actual drive charcteristics for init routine
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
55 * NOT USED FOR EMBEDED DRIVES
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
56 * First Physical Drive (lun 0)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
57
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
58 fdb $0 cylinders
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
59 fcb $0 number of heads
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
60 fdb $0 reduced write current starting cylinder
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
61 fdb $0 write precomp starting cylinder
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
62 fcb $0 max eec error burst length to be corrected
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
63
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
64 * Second physical drive (lun 1)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
65
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
66 fdb $0
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
67 fcb $0
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
68 fdb $0
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
69 fdb $0
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
70 fcb $0
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
71
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
72 * drive offsets (this is in GROUPS OF 256 SECTORS!)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
73 * can be used to logically partition 1 physical drive into up to
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
74 * 4 logical drives.
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
75 * I always use a least an offset of 1 to allow for possible os9 boot
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
76 * track on the drive, also if it's a used PC drive, the first few
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
77 * cyls are where all the errors are :-)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
78
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
79 fdb 1 drive 0
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
80 fdb 1 drive 1
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
81 fdb 1 drive 2
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
82 fdb 1 drive 3
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
83
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
84 * Multipak slot select (Only used for DISTO Host adapter)
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
85
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
86 fcb 1 slot for mpak scs 0=slot 1 1=slot 2 2=slot 3 3=slot4 $ff=no mapk
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
87
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
88 * note that the drive name is unrelated to the physical or logical drive
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
89 * number.
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
90
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
91 HDNAM fcs "H4"
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
92 HDMGR fcs "RBF"
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
93
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
94 * note the name here. DI1024, DIS512 and DI256 are DISTO DRIVERS of various
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
95 * sector sizes. TC1024, TCC512 and TCCCHD are the equivalents for the TC3 host
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
96 * adapter. DBHSHD for 256 byte/sector st506 style external controllers which
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
97 * require handshaking on each byte of a data transfer (i.e. adaptec). DIDBHS
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
98 * for the same thing with a DISTO host adapter.
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
99
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
100 HDDRV fcs "DIS512"
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
101 fdb $0 room for patching
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
102 emod
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
103 endmod equ *
d76cc2119c4f Bob Brose's driver for TC^3 Controller -- Thanks Bob!
boisy
parents:
diff changeset
104 end