2 ; (c) Bernd Porr, Bernd.Porr@cn.stir.ac.uk
3 ; GPL, GNU public license
5 ; This program is free software; you can redistribute it and/or modify
6 ; it under the terms of the GNU General Public License as published by
7 ; the Free Software Foundation; either version 2 of the License, or
8 ; (at your option) any later version.
10 ; This program is distributed in the hope that it will be useful,
11 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ; GNU General Public License for more details.
15 ; You should have received a copy of the GNU General Public License
16 ; along with this program; if not, write to the Free Software
17 ; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 ; In conjunction with the as31.
20 ; Include-file for the FX2 by Cypress. The rest of the regs is defined
23 ; from the TRM of the FX2:
38 ;; packets per frame, always one for USB 1.1
39 .equ EP2ISOINPKTS,0E640H
40 .equ EP4ISOINPKTS,0E641H
41 .equ EP6ISOINPKTS,0E642H
42 .equ EP8ISOINPKTS,0E643H
43 ;; endpoint byte counts
56 .equ EP4AUTOINLENH,0E622H
57 .equ EP4AUTOINLENL,0E623H
58 .equ EP6AUTOINLENH,0E624H
59 .equ EP6AUTOINLENL,0E625H
60 .equ EP2FIFOCFG,0E618H
61 .equ EP4FIFOCFG,0E619H
62 .equ EP6FIFOCFG,0E61AH
63 .equ EP8FIFOCFG,0E61BH
66 .equ GPIFCTLCFG,0E6C3H
68 .equ GPIFIDLECTL,0E6C2H
69 .equ GPIFWFSELECT,0E6C0H
70 .equ GPIFREADYCFG,0E6F3H
71 .equ GPIFIDLECS,0E6C1H
72 .equ EP6GPIFFLGSEL,0E6E2H
73 .equ EP6GPIFPDFSTOP,0E6E3H
74 .equ EP6GPIFTRIG,0E6E4H
84 .equ EP2FIFOBUF,0F000H
85 .equ EP4FIFOBUF,0F400H
86 .equ EP6FIFOBUF,0F800H
87 .equ EP8FIFOBUF,0FC00H
88 ;; IRQ enable for bulk NAK
90 ;; interrupt requ for NAK
94 ;; USB interrupt request
96 ;; endpoint IRQ enable
98 ;; endpoint IRQ requests
100 ;; USB error IRQ requests
102 ;; USB error IRQ request
103 .equ USBERRIRQ,0E663H
104 ;; USB interrupt 2 autovector
116 ;; auto pointers, read/write is directed to the pointed address
117 .equ XAUTODAT1,0E67BH
118 .equ XAUTODAT2,0E67CH
122 .equ OUTPKTEND,0E649H
139 .equ EP24FIFOFLGS,0ABH
140 .equ EP68FIFOFLGS,0ACH
141 .equ AUTOPTRSETUP,0AFH
159 .equ EP4GPIFFLGSEL,0E6DAH
160 .equ EP4GPIFPFSTOP,0E6DBH