Home | History | Annotate | Download | only in include
      1 /*
      2  * pcicfg.h: PCI configuration constants and structures.
      3  *
      4  * Copyright (C) 1999-2009, Broadcom Corporation
      5  *
      6  *      Unless you and Broadcom execute a separate written software license
      7  * agreement governing use of this software, this software is licensed to you
      8  * under the terms of the GNU General Public License version 2 (the "GPL"),
      9  * available at http://www.broadcom.com/licenses/GPLv2.php, with the
     10  * following added to such license:
     11  *
     12  *      As a special exception, the copyright holders of this software give you
     13  * permission to link this software with independent modules, and to copy and
     14  * distribute the resulting executable under terms of your choice, provided that
     15  * you also meet, for each linked independent module, the terms and conditions of
     16  * the license of that module.  An independent module is a module which is not
     17  * derived from this software.  The special exception does not apply to any
     18  * modifications of the software.
     19  *
     20  *      Notwithstanding the above, under no circumstances may you combine this
     21  * software in any way with any other Broadcom software provided under a license
     22  * other than the GPL, without Broadcom's express prior written consent.
     23  *
     24  * $Id: pcicfg.h,v 1.41.12.3 2008/06/26 22:49:41 Exp $
     25  */
     26 
     27 
     28 #ifndef	_h_pcicfg_
     29 #define	_h_pcicfg_
     30 
     31 
     32 #define	PCI_CFG_VID		0
     33 #define	PCI_CFG_CMD		4
     34 #define	PCI_CFG_REV		8
     35 #define	PCI_CFG_BAR0		0x10
     36 #define	PCI_CFG_BAR1		0x14
     37 #define	PCI_BAR0_WIN		0x80
     38 #define	PCI_INT_STATUS		0x90
     39 #define	PCI_INT_MASK		0x94
     40 
     41 #define PCIE_EXTCFG_OFFSET	0x100
     42 #define	PCI_BAR0_PCIREGS_OFFSET	(6 * 1024)
     43 #define	PCI_BAR0_PCISBR_OFFSET	(4 * 1024)
     44 
     45 #define PCI_BAR0_WINSZ		(16 * 1024)
     46 
     47 
     48 #define	PCI_16KB0_PCIREGS_OFFSET (8 * 1024)
     49 #define	PCI_16KB0_CCREGS_OFFSET	(12 * 1024)
     50 #define PCI_16KBB0_WINSZ	(16 * 1024)
     51 
     52 #endif
     53