Subversion Repositories Kolibri OS

Rev

Rev 2387 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2387 Rev 2852
Line 17... Line 17...
17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 18... Line 18...
18
 
18
 
Line 19... Line 19...
19
 
19
 
20
format MS COFF
20
format MS COFF
Line 21... Line 21...
21
 
21
 
Line 22... Line 22...
22
        API_VERSION             equ 0x01000100
22
        API_VERSION             =   0x01000100
23
        DRIVER_VERSION          equ 5
23
        DRIVER_VERSION          =   5
24
 
24
 
Line 25... Line 25...
25
        MAX_DEVICES             equ 16
25
        MAX_DEVICES             =   16
26
 
26
 
27
        DEBUG                   equ 1
27
        DEBUG                   =   1
28
        __DEBUG__               equ 1
28
        __DEBUG__               =   1
Line 107... Line 107...
107
end virtual
107
end virtual
Line 108... Line 108...
108
 
108
 
Line 109... Line 109...
109
 
109
 
110
; Serial EEPROM
110
; Serial EEPROM
111
 
111
 
112
EE_SK           equ 1 shl 16   ; serial clock
112
EE_SK           =   1 shl 16   ; serial clock
113
EE_CS           equ 1 shl 17   ; chip select
113
EE_CS           =   1 shl 17   ; chip select
114
EE_DI           equ 1 shl 18   ; data in
114
EE_DI           =   1 shl 18   ; data in
115
EE_DO           equ 1 shl 19   ; data out
115
EE_DO           =   1 shl 19   ; data out
116
 
116
 
Line 117... Line 117...
117
EE_READ         equ 110b
117
EE_READ         =   110b
Line 118... Line 118...
118
EE_WRITE        equ 101b
118
EE_WRITE        =   101b
119
EE_ERASE        equ 111b
119
EE_ERASE        =   111b
120
 
120
 
121
; The SCB accepts the following controls for the Tx and Rx units:
121
; The SCB accepts the following controls for the Tx and Rx units:
122
 
122
 
123
CU_START        equ 0x0010
123
CU_START        =   0x0010
124
CU_RESUME       equ 0x0020
124
CU_RESUME       =   0x0020
125
CU_STATSADDR    equ 0x0040
125
CU_STATSADDR    =   0x0040
126
CU_SHOWSTATS    equ 0x0050   ; Dump statistics counters.
126
CU_SHOWSTATS    =   0x0050   ; Dump statistics counters.
127
CU_CMD_BASE     equ 0x0060   ; Base address to add to add CU commands.
127
CU_CMD_BASE     =   0x0060   ; Base address to add to add CU commands.
128
CU_DUMPSTATS    equ 0x0070   ; Dump then reset stats counters.
128
CU_DUMPSTATS    =   0x0070   ; Dump then reset stats counters.
129
 
129
 
130
RX_START        equ 0x0001
130
RX_START        =   0x0001
131
RX_RESUME       equ 0x0002
131
RX_RESUME       =   0x0002
132
RX_ABORT        equ 0x0004
132
RX_ABORT        =   0x0004
133
RX_ADDR_LOAD    equ 0x0006
133
RX_ADDR_LOAD    =   0x0006
134
RX_RESUMENR     equ 0x0007
134
RX_RESUMENR     =   0x0007
135
INT_MASK        equ 0x0100
135
INT_MASK        =   0x0100
136
DRVR_INT        equ 0x0200   ; Driver generated interrupt
136
DRVR_INT        =   0x0200   ; Driver generated interrupt
137
 
137
 
138
CmdIASetup      equ 0x0001
138
CmdIASetup      =   0x0001
139
CmdConfigure    equ 0x0002
139
CmdConfigure    =   0x0002
140
CmdTx           equ 0x0004 ;;;;
140
CmdTx           =   0x0004 ;;;;
141
CmdTxFlex       equ 0x0008 ;;;
141
CmdTxFlex       =   0x0008 ;;;
142
Cmdsuspend      equ 0x4000
142
Cmdsuspend      =   0x4000
143
 
143
 
144
 
144
 
145
reg_scb_status  equ 0
145
reg_scb_status  =   0
146
reg_scb_cmd     equ 2
146
reg_scb_cmd     =   2
Line 147... Line 147...
147
reg_scb_ptr     equ 4
147
reg_scb_ptr     =   4
148
reg_port        equ 8
148
reg_port        =   8
149
reg_eeprom_ctrl equ 12
149
reg_eeprom_ctrl =   12