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

LEON: converted PCI peripherals to BSD header

File:
1 edited

Legend:

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

    rd5ca821 r8b29637c  
    257257
    258258        /* Check capabilities list bit */
    259         pci_cfg_r8(pcidev, PCI_STATUS, &tmp2);
     259        pci_cfg_r8(pcidev, PCIR_STATUS, &tmp2);
    260260
    261261        if (!((tmp2 >> 4) & 1)) {
     
    265265
    266266        /* Read capabilities pointer */
    267         pci_cfg_r8(pcidev, PCI_CAP_PTR, &cap_ptr);
     267        pci_cfg_r8(pcidev, PCIR_CAP_PTR, &cap_ptr);
    268268
    269269        /* Set AHB address mappings for target PCI bars */
     
    277277#if 0
    278278        /* set parity error response */
    279         pci_cfg_r32(pcidev, PCI_COMMAND, &data);
    280         pci_cfg_w32(pcidev, PCI_COMMAND, (data|PCI_COMMAND_PARITY));
     279        pci_cfg_r32(pcidev, PCIR_COMMAND, &data);
     280        pci_cfg_w32(pcidev, PCIR_COMMAND, (data|PCIM_CMD_PERRESPEN));
    281281#endif
    282282
Note: See TracChangeset for help on using the changeset viewer.