www.pudn.com > PlxSdk.rar > Reg9050.h


#ifndef __REG9050_H
#define __REG9050_H

/*******************************************************************************
 * Copyright (c) 2001 PLX Technology, Inc.
 * 
 * PLX Technology Inc. licenses this software under specific terms and
 * conditions.  Use of any of the software or derviatives thereof in any
 * product without a PLX Technology chip is strictly prohibited. 
 * 
 * PLX Technology, Inc. provides this software AS IS, WITHOUT ANY WARRANTY,
 * EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, ANY WARRANTY OF
 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  PLX makes no guarantee
 * or representations regarding the use of, or the results of the use of,
 * the software and documentation in terms of correctness, accuracy,
 * reliability, currentness, or otherwise; and you rely on the software,
 * documentation and results solely at your own risk.
 * 
 * IN NO EVENT SHALL PLX BE LIABLE FOR ANY LOSS OF USE, LOSS OF BUSINESS,
 * LOSS OF PROFITS, INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES
 * OF ANY KIND.  IN NO EVENT SHALL PLX'S TOTAL LIABILITY EXCEED THE SUM
 * PAID TO PLX FOR THE PRODUCT LICENSED HEREUNDER.
 * 
 ******************************************************************************/

/******************************************************************************
 * 
 * File Name:
 *
 *      Reg9050.h
 *
 * Description:
 *
 *      This file defines all the PLX 9050 chip Registers.
 *
 * Revision:
 *
 *      01-30-01 : PCI SDK v3.20
 *
 ******************************************************************************/


#include "PciRegs.h"


#ifdef __cplusplus
extern "C" {
#endif


// Additional defintions
#define PCI9050_MAX_REG_OFFSET       0x054
#define PCI9050_EEPROM_SIZE          0x064          // EEPROM size (bytes) used by PLX Chip


// PCI Configuration Registers
#define PCI9050_VENDOR_ID            CFG_VENDOR_ID
#define PCI9050_COMMAND              CFG_COMMAND
#define PCI9050_REV_ID               CFG_REV_ID
#define PCI9050_CACHE_SIZE           CFG_CACHE_SIZE
#define PCI9050_PCI_BASE_0           CFG_BAR0
#define PCI9050_PCI_BASE_1           CFG_BAR1
#define PCI9050_PCI_BASE_2           CFG_BAR2
#define PCI9050_PCI_BASE_3           CFG_BAR3
#define PCI9050_PCI_BASE_4           CFG_BAR4
#define PCI9050_PCI_BASE_5           CFG_BAR5
#define PCI9050_CIS_PTR              CFG_CIS_PTR
#define PCI9050_SUB_ID               CFG_SUB_VENDOR_ID
#define PCI9050_PCI_BASE_EXP_ROM     CFG_EXP_ROM_BASE
#define PCI9050_CAP_PTR              CFG_CAP_PTR
#define PCI9050_PCI_RESERVED         CFG_RESERVED2
#define PCI9050_INT_LINE             CFG_INT_LINE


// Local Configuration Registers
#define PCI9050_RANGE_SPACE0         0x000
#define PCI9050_RANGE_SPACE1         0x004
#define PCI9050_RANGE_SPACE2         0x008
#define PCI9050_RANGE_SPACE3         0x00c
#define PCI9050_RANGE_EXP_ROM        0x010
#define PCI9050_REMAP_SPACE0         0x014
#define PCI9050_REMAP_SPACE1         0x018
#define PCI9050_REMAP_SPACE2         0x01c
#define PCI9050_REMAP_SPACE3         0x020
#define PCI9050_REMAP_EXP_ROM        0x024
#define PCI9050_DESC_SPACE0          0x028
#define PCI9050_DESC_SPACE1          0x02c
#define PCI9050_DESC_SPACE2          0x030
#define PCI9050_DESC_SPACE3          0x034
#define PCI9050_DESC_EXP_ROM         0x038
#define PCI9050_BASE_CS0             0x03c
#define PCI9050_BASE_CS1             0x040
#define PCI9050_BASE_CS2             0x044
#define PCI9050_BASE_CS3             0x048
#define PCI9050_INT_CTRL_STAT        0x04c
#define PCI9050_EEPROM_CTRL          0x050




#ifdef __cplusplus
}
#endif

#endif