summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2015-04-07 14:31:22 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2015-04-17 01:10:27 +0200
commit9b292eaf4eb03964fb8a360e1fa8d30c283950ce (patch)
tree69e495490299e2a3c42bca5c8a60223abdfeb5e3 /c/src/lib/libbsp/sparc
parentLEON: converted PCI peripherals to BSD header (diff)
downloadrtems-9b292eaf4eb03964fb8a360e1fa8d30c283950ce.tar.bz2
LEON: converted LEON4-N2X to BSD header
Diffstat (limited to 'c/src/lib/libbsp/sparc')
-rw-r--r--c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c b/c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c
index 2423248ade..dd4de0307c 100644
--- a/c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c
+++ b/c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c
@@ -259,12 +259,12 @@ static int gr_cpci_leon4_n2x_hw_init1(struct gr_cpci_leon4_n2x_priv *priv)
unsigned int cgmask, enabled;
/* Check capabilities list bit and read its pointer */
- pci_cfg_r8(pcidev, PCI_STATUS, &tmp2);
+ pci_cfg_r8(pcidev, PCIR_STATUS, &tmp2);
if (!((tmp2 >> 4) & 1)) {
/* Capabilities list not available which it should be in the GRPCI2 */
return -2;
}
- pci_cfg_r8(pcidev, PCI_CAP_PTR, &cap_ptr);
+ pci_cfg_r8(pcidev, PCIR_CAP_PTR, &cap_ptr);
/* Workarounds depends on PCI revision of GR-CPCI-LEON4-N2X board */
switch (devinfo->rev) {
@@ -291,8 +291,8 @@ static int gr_cpci_leon4_n2x_hw_init1(struct gr_cpci_leon4_n2x_priv *priv)
#if 0
/* set parity error response */
- pci_cfg_r32(pcidev, PCI_COMMAND, &data);
- pci_cfg_w32(pcidev, PCI_COMMAND, (data|PCI_COMMAND_PARITY));
+ pci_cfg_r32(pcidev, PCIR_COMMAND, &data);
+ pci_cfg_w32(pcidev, PCIR_COMMAND, (data|PCIM_CMD_PERRESPEN));
#endif
/* Scan AMBA Plug&Play */