2 ; (c) Bernd Porr, BerndPorr@f2s.com
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
54 .equ EP4AUTOINLENH,0E622H
55 .equ EP4AUTOINLENL,0E623H
56 .equ EP6AUTOINLENH,0E624H
57 .equ EP6AUTOINLENL,0E625H
58 .equ EP2FIFOCFG,0E618H
59 .equ EP4FIFOCFG,0E619H
60 .equ EP6FIFOCFG,0E61AH
61 .equ EP8FIFOCFG,0E61BH
65 .equ GPIFCTLCFG,0E6C3H
67 .equ GPIFIDLECTL,0E6C2H
68 .equ GPIFWFSELECT,0E6C0H
69 .equ GPIFREADYCFG,0E6F3H
70 .equ GPIFIDLECS,0E6C1H
71 .equ EP6GPIFFLGSEL,0E6E2H
72 .equ EP6GPIFPDFSTOP,0E6E3H
73 .equ EP6GPIFTRIG,0E6E4H
78 .equ EP4GPIFFLGSEL,0E6DAH
79 .equ EP4GPIFPFSTOP,0E6DBH
87 .equ EP2FIFOBUF,0F000H
88 .equ EP4FIFOBUF,0F400H
89 .equ EP6FIFOBUF,0F800H
90 .equ EP8FIFOBUF,0FC00H
91 ;; IRQ enable for bulk NAK
93 ;; interrupt requ for NAK
97 ;; USB interrupt request
99 ;; endpoint IRQ enable
101 ;; endpoint IRQ requests
103 ;; USB error IRQ requests
105 ;; USB error IRQ request
106 .equ USBERRIRQ,0E663H
107 ;; USB interrupt 2 autovector
119 ;; auto pointers, read/write is directed to the pointed address
120 .equ XAUTODAT1,0E67BH
121 .equ XAUTODAT2,0E67CH
143 .equ EP24FIFOFLGS,0ABH
144 .equ EP68FIFOFLGS,0ACH
145 .equ AUTOPTRSETUP,0AFH