/*
 * Copyright (c) 2004 PMC-Sierra, Inc.  (www.pmc-sierra.com)
 *	Author: brad_larson@pmc-sierra.com
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *	This product includes software developed by PMC-Sierra, Inc.
 * 4. The name of the author may not be used to endorse or promote products
 *    derived from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 */

#if !defined(_RM9000_HT_H_)
#define _RM9000_HT_H_

/*
 *  Hypertransport registers
 */
#define RM9000_HTDVID		0x0600		/* Device and vendor id */
#define RM9000_HTSC		0x0604		/* Status and command */
#define RM9000_HTCCR		0x0608		/* Class code and revision id */
#define RM9000_HTBHL		0x060c		/* BIST, header type and latency */
#define RM9000_HTBAR0		0x0610		/* BAR 0 */
#define RM9000_HTBAR1		0x0614		/* BAR 1 */
#define RM9000_HTBAR2		0x0618		/* BAR 2 */
#define RM9000_HTBAR3		0x061c		/* BAR 3 */
#define RM9000_HTBAR4		0x0620		/* BAR 4 */
#define RM9000_HTBAR5		0x0624		/* BAR 5 */
#define RM9000_HTCBCPT		0x0628		/* CardBus CIS pointer */
#define RM9000_HTSDVID		0x062c		/* Subsystem device and vendor id */
#define RM9000_HTXRA		0x0630		/* Expansion ROM base address */
#define RM9000_HTCAP1		0x0634		/* Capability 1 */
#define RM9000_HTIL		0x063c		/* Interrupt line */
#define RM9000_HTLCC		0x0640		/* Capability id, pointer, and command */
#define RM9000_HTLINK		0x0644		/* Link configuration and control */
#define RM9000_HTFQREV		0x0648		/* Frequency and revision id */
#define RM9000_HTERCTL		0x0668		/* Error control */
#define RM9000_HTRXDB		0x066c		/* Receive data buffer allocation */
#define RM9000_HTIMPED		0x0670		/* Impedance control */
#define RM9000_HTSWIMP		0x0674		/* Software calibration status */
#define RM9000_HTCAL		0x0678		/* Calibrator comparator output vector */
#define RM9000_HTBAA30		0x0680		/* BAR3-0 attributes */
#define RM9000_HTMASK0		0x0688		/* BAR 0 mask */
#define RM9000_HTMASK1		0x068c		/* BAR 1 mask */
#define RM9000_HTMASK2		0x0690		/* BAR 2 mask */
#define RM9000_HTMASK3		0x0694		/* BAR 3 mask */
#define RM9000_HTMASK4		0x0698		/* BAR 4 mask */
#define RM9000_HTMASK5		0x069c		/* BAR 5 mask */
#define RM9000_HTIFCTL		0x06a0		/* Packet switch to HT control */
#define RM9000_HTPLL		0x06a4		/* PLL control */
#define RM9000_HTSRI		0x06b0		/* Serial rom interface */
#define RM9000_HTRXNUM		0x06b4		/* Receive numerator */
#define RM9000_HTTXNUM		0x06b8		/* Transmit numerator */
#define RM9000_HTTXCNT		0x06c8		/* Transmit buffer count maximum */
#define RM9000_HTERROR		0x06d8		/* Error status */
#define RM9000_HTRCRCE		0x06dc		/* Receive expected CRC */
#define RM9000_HTEOI		0x06e0		/* EOI */
#define RM9000_HTCRCR		0x06f0		/* Receive actual CRC */
#define RM9000_HTCFGA		0x06f8		/* Configuration address */
#define RM9000_HTCFGD		0x06fc		/* Configuration data */

#endif	/* !defined(_RM9000_HT_H_) */
