2
2
* pcicfg.h: PCI configuration constants and structures.
4
* Copyright (C) 2011, Broadcom Corporation. All Rights Reserved.
4
* Copyright (C) 2013, Broadcom Corporation. All Rights Reserved.
6
6
* Permission to use, copy, modify, and/or distribute this software for any
7
7
* purpose with or without fee is hereby granted, provided that the above
15
15
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
16
16
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18
* $Id: pcicfg.h 241182 2011-02-17 21:50:03Z $
18
* $Id: pcicfg.h 316716 2012-02-23 04:39:13Z $
27
#define PCI_CFG_STAT 6
29
#define PCI_CFG_PROGIF 9
30
#define PCI_CFG_SUBCL 0xa
31
#define PCI_CFG_BASECL 0xb
32
#define PCI_CFG_CLSZ 0xc
33
#define PCI_CFG_LATTIM 0xd
34
#define PCI_CFG_HDR 0xe
35
#define PCI_CFG_BIST 0xf
36
#define PCI_CFG_BAR0 0x10
37
#define PCI_CFG_BAR1 0x14
38
#define PCI_CFG_BAR2 0x18
39
#define PCI_CFG_BAR3 0x1c
40
#define PCI_CFG_BAR4 0x20
41
#define PCI_CFG_BAR5 0x24
42
#define PCI_CFG_CIS 0x28
43
#define PCI_CFG_SVID 0x2c
44
#define PCI_CFG_SSID 0x2e
45
#define PCI_CFG_ROMBAR 0x30
46
#define PCI_CFG_CAPPTR 0x34
47
#define PCI_CFG_INT 0x3c
48
#define PCI_CFG_PIN 0x3d
49
#define PCI_CFG_MINGNT 0x3e
50
#define PCI_CFG_MAXLAT 0x3f
51
#define PCI_CFG_DEVCTRL 0xd8
24
52
#define PCI_BAR0_WIN 0x80
53
#define PCI_BAR1_WIN 0x84
54
#define PCI_SPROM_CONTROL 0x88
55
#define PCI_BAR1_CONTROL 0x8c
56
#define PCI_INT_STATUS 0x90
57
#define PCI_INT_MASK 0x94
58
#define PCI_TO_SB_MB 0x98
59
#define PCI_BACKPLANE_ADDR 0xa0
60
#define PCI_BACKPLANE_DATA 0xa4
61
#define PCI_CLK_CTL_ST 0xa8
62
#define PCI_BAR0_WIN2 0xac
63
#define PCI_GPIO_IN 0xb0
64
#define PCI_GPIO_OUT 0xb4
65
#define PCI_GPIO_OUTEN 0xb8
67
#define PCI_BAR0_SHADOW_OFFSET (2 * 1024)
68
#define PCI_BAR0_SPROM_OFFSET (4 * 1024)
69
#define PCI_BAR0_PCIREGS_OFFSET (6 * 1024)
70
#define PCI_BAR0_PCISBR_OFFSET (4 * 1024)
72
#define PCIE2_BAR0_WIN2 0x70
73
#define PCIE2_BAR0_CORE2_WIN 0x74
74
#define PCIE2_BAR0_CORE2_WIN2 0x78
25
76
#define PCI_BAR0_WINSZ (16 * 1024)
78
#define PCI_16KB0_PCIREGS_OFFSET (8 * 1024)
79
#define PCI_16KB0_CCREGS_OFFSET (12 * 1024)
80
#define PCI_16KBB0_WINSZ (16 * 1024)
82
#define PCI_CONFIG_SPACE_SIZE 256