annotate defs/scsi.d @ 2945:582b5b7232c0

pacos9: Rename assembler files to .as and port makefile to lwtools And build pacos9 by default again. Nowadays .a files are library archive files. According to rules.mak, as. files are to be built as object files for later linking with lwlink, similar to old RMA/RLINK.
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 08 Feb 2014 01:03:26 +0100
parents 28ed72477814
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
1 IFNE SCSI.D-1
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
2 SCSI.D SET 1
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
3
2590
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
4 ********************************************************************
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
5 * scsi.d - SCSI definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
6 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
7 * $Id$
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
8 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
9 * (C) 2004 Boisy G. Pitre - Licensed to Cloud-9
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
10 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
11 * Edt/Rev YYYY/MM/DD Modified by
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
12 * Comment
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
13 * ------------------------------------------------------------------
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
14 * 2005/12/11 Boisy G. Pitre
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
15 * Moved SCSI base addresses and I/O offsets to here.
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
16
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
17
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
18 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
19 * SCSI Packet Command Bytes
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
20 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
21 S$REZERO EQU $01
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
22 S$REQSEN EQU $03
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
23 S$FORMAT EQU $04
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
24 S$READ EQU $08
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
25 S$WRITE EQU $0A
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
26 S$SEEK EQU $0B
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
27 S$MODSEL EQU $15
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
28 S$UNIT EQU $1B
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
29 S$RCAP EQU $25
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
30 S$READEX EQU $28
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
31 S$WRITEX EQU $2A
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
32
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
33 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
34 * SCSI Status Codes
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
35 *
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
36 X$ERROR EQU $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
37 X$BUSY EQU $08
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
38
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
39 **** Cloud-9 TC^3 Controller Definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
40 IFNE TC3+SB
2883
4f589f343203 defs/scsi.d: Use SET not EQU on SDMPI so that it can be redefined
Tormod Volden <debian.tormod@gmail.com>
parents: 2730
diff changeset
41 SDMPI SET $02 Added 2012\11\05 GH
2590
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
42 SCSIDATA EQU 0
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
43 SCSISTAT EQU 1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
44 SCSISEL EQU 1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
45 SCSIRST EQU 1 INVALID, but not used
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
46
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
47 REQ EQU $01
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
48 BUSY EQU $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
49 MSG EQU $04
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
50 CMD EQU $08
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
51 INOUT EQU $10
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
52
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
53 IFNE SB
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
54 SDAddr SET $FF1E
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
55 ELSE
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
56 SDAddr SET $FF74
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
57 ENDC
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
58
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
59 ENDC
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
60
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
61 **** Ken-Ton/LR-Tech Controller Definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
62 IFNE KTLR
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
63 SCSIDATA EQU 0
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
64 SCSISTAT EQU 1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
65 SCSISEL EQU 2
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
66 SCSIRST EQU 3
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
67
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
68 REQ EQU $01
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
69 BUSY EQU $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
70 MSG EQU $04
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
71 CMD EQU $08
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
72 INOUT EQU $10
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
73 ACK EQU $20
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
74 SEL EQU $40
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
75 RST EQU $80
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
76
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
77 SDAddr SET $FF74
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
78 ENDC
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
79
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
80 **** Disto 4-N-1/HD-II Controller Definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
81 IFNE D4N1+HDII
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
82 SDMPI SET $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
83
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
84 * Disto SCSI Controller Definitions
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
85 SCSIDATA EQU 0
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
86 SCSISTAT EQU -2
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
87 SCSISEL EQU -1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
88 SCSIRST EQU -2
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
89
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
90 SEL EQU $00
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
91 BUSY EQU $01
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
92 ACK EQU $02
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
93 MSG EQU $04
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
94 INOUT EQU $20
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
95 CMD EQU $40
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
96 REQ EQU $80
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
97
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
98 IFNE D4N1
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
99 SDAddr SET $FF5B
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
100 ELSE
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
101 SDAddr SET $FF53
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
102 ENDC
17d43fd29ee2 Integration of SuperDriver
boisy
parents:
diff changeset
103 ENDC
2624
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
104
b8c7b7fbf3c9 Major changes:
Boisy Pitre <boisy.pitre@nuance.com>
parents: 2590
diff changeset
105 ENDC