Changeset 9b292ea in rtems


Ignore:
Timestamp:
Apr 7, 2015, 12:31:22 PM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
5564b5a
Parents:
8b29637c
git-author:
Daniel Hellstrom <daniel@…> (04/07/15 12:31:22)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:27)
Message:

LEON: converted LEON4-N2X to BSD header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/shared/pci/gr_leon4_n2x.c

    r8b29637c r9b292ea  
    260260
    261261        /* Check capabilities list bit and read its pointer */
    262         pci_cfg_r8(pcidev, PCI_STATUS, &tmp2);
     262        pci_cfg_r8(pcidev, PCIR_STATUS, &tmp2);
    263263        if (!((tmp2 >> 4) & 1)) {
    264264                /* Capabilities list not available which it should be in the GRPCI2 */
    265265                return -2;
    266266        }
    267         pci_cfg_r8(pcidev, PCI_CAP_PTR, &cap_ptr);
     267        pci_cfg_r8(pcidev, PCIR_CAP_PTR, &cap_ptr);
    268268
    269269        /* Workarounds depends on PCI revision of GR-CPCI-LEON4-N2X board */
     
    292292#if 0
    293293        /* set parity error response */
    294         pci_cfg_r32(pcidev, PCI_COMMAND, &data);
    295         pci_cfg_w32(pcidev, PCI_COMMAND, (data|PCI_COMMAND_PARITY));
     294        pci_cfg_r32(pcidev, PCIR_COMMAND, &data);
     295        pci_cfg_w32(pcidev, PCIR_COMMAND, (data|PCIM_CMD_PERRESPEN));
    296296#endif
    297297
Note: See TracChangeset for help on using the changeset viewer.