Blame usx2yloader/an2131.asm

Packit Service f0277f
;
Packit Service f0277f
;   Declaration of AN2131xx EZ-USB Registers
Packit Service f0277f
;
Packit Service f0277f
;
Packit Service f0277f
;   Copyright (c) 2004	Martin Langer <martin-langer@gmx.de>
Packit Service f0277f
;
Packit Service f0277f
;
Packit Service f0277f
;   This program is free software; you can redistribute it and/or
Packit Service f0277f
;   modify it under the terms of the GNU General Public License
Packit Service f0277f
;   as published by the Free Software Foundation; either version 2
Packit Service f0277f
;   of the License, or any later version.
Packit Service f0277f
;
Packit Service f0277f
;   This program is distributed in the hope that it will be useful,
Packit Service f0277f
;   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service f0277f
;   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Packit Service f0277f
;   GNU General Public License for more details.
Packit Service f0277f
;
Packit Service f0277f
;   You should have received a copy of the GNU General Public License
Packit Service f0277f
;   along with this program; if not, write to the Free Software
Packit Service f0277f
;   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit Service f0277f
;
Packit Service f0277f
;
Packit Service f0277f
Packit Service f0277f
Packit Service f0277f
.equ DPL1,	0x84
Packit Service f0277f
.equ DPH1,	0x85
Packit Service f0277f
.equ DPS,	0x86		
Packit Service f0277f
.equ CKCON,	0x8E
Packit Service f0277f
.equ SPC_FNC,	0x8F
Packit Service f0277f
.equ EXIF,	0x91
Packit Service f0277f
.equ MPAGE,	0x92
Packit Service f0277f
.equ SCON0,	0x98
Packit Service f0277f
.equ SBUF0,	0x99
Packit Service f0277f
.equ SCON1,	0xC0
Packit Service f0277f
.equ SBUF1,	0xC1
Packit Service f0277f
.equ EICON,	0xD8
Packit Service f0277f
.equ EIE,	0xE8		; Interrupt Enables
Packit Service f0277f
.equ EIP,	0xF8
Packit Service f0277f
Packit Service f0277f
Packit Service f0277f
.equ OUT1BUF,	0x7E40
Packit Service f0277f
.equ IN1BUF,	0x7E80
Packit Service f0277f
.equ OUT0BUF,	0x7EC0
Packit Service f0277f
.equ IN0BUF,	0x7F00
Packit Service f0277f
.equ CPUCS,     0x7F92	
Packit Service f0277f
.equ PORTACFG, 	0x7F93
Packit Service f0277f
.equ PORTBCFG, 	0x7F94
Packit Service f0277f
.equ PORTCCFG, 	0x7F95
Packit Service f0277f
.equ OUTA,     	0x7F96	
Packit Service f0277f
.equ OUTB,     	0x7F97
Packit Service f0277f
.equ OUTC,     	0x7F98
Packit Service f0277f
.equ PINSA,    	0x7F99
Packit Service f0277f
.equ PINSB,    	0x7F9A
Packit Service f0277f
.equ PINSC,    	0x7F9B
Packit Service f0277f
.equ OEA,      	0x7F9C
Packit Service f0277f
.equ OEB,      	0x7F9D
Packit Service f0277f
.equ OEC,      	0x7F9E
Packit Service f0277f
Packit Service f0277f
.equ I2CS,	0x7FA5		; I2C Control and Status
Packit Service f0277f
.equ I2DAT,	0x7FA6		; I2C Data
Packit Service f0277f
Packit Service f0277f
.equ IN07IRQ,	0x7FA9		; EP IN Interrupt Request
Packit Service f0277f
.equ OUT07IRQ,	0x7FAA		; EP OUT Interrupt Request
Packit Service f0277f
.equ USBIRQ,	0x7FAB		; USB Interrupt Request
Packit Service f0277f
.equ USBIEN,	0x7FAE		; USB Interrupt Enables
Packit Service f0277f
.equ USBBAV,	0x7FAF		; Breakpoint and Autovector
Packit Service f0277f
.equ EP0CS,	0x7FB4		; Control and Status
Packit Service f0277f
.equ IN0BC,	0x7FB5		; Byte Count
Packit Service f0277f
.equ IN1CS,	0x7FB6
Packit Service f0277f
.equ IN1BC,	0x7FB7
Packit Service f0277f
.equ OUT0BC,	0x7FC5		; Byte Count
Packit Service f0277f
.equ OUT1CS,	0x7FC6
Packit Service f0277f
.equ OUT1BC,	0x7FC7
Packit Service f0277f
.equ USBCS,	0x7FD6		; USB Control and Status
Packit Service f0277f
.equ SD_BMREQ,	0x7FE8		; Setup Data Byte 1: bmRequest 
Packit Service f0277f
					; c0: Vendor Request 'In'
Packit Service f0277f
					; 40: Vendor Request 'Out'
Packit Service f0277f
.equ SD_BREQ,	0x7FE9		; Setup Data Byte 2: bRequest
Packit Service f0277f
					; a0: Internal Firmware Load
Packit Service f0277f
					; a3: External Firmware Load ?
Packit Service f0277f
.equ SD_VALL,	0x7FEA		; Setup Data Byte 3: Starting address (lo)
Packit Service f0277f
.equ SD_VALH,	0x7FEB		; Setup Data Byte 4: Starting address (hi)
Packit Service f0277f
.equ SD_INDL,	0x7FEC		; Setup Data Byte 5: 0x00
Packit Service f0277f
.equ SD_INDH,	0x7FED		; Setup Data Byte 6: 0x00
Packit Service f0277f
.equ SD_LENL,	0x7FEE		; Setup Data Byte 7: Number of Bytes (lo)
Packit Service f0277f
.equ SD_LENH,	0x7FEF		; Setup Data Byte 8: Number of Bytes (hi)
Packit Service f0277f
Packit Service f0277f
;;