Changeset 9d88008 in rtems


Ignore:
Timestamp:
Dec 18, 2013, 3:42:16 PM (5 years ago)
Author:
Daniel Hellstrom <daniel@…>
Branches:
4.11, master
Children:
fc76056e
Parents:
ddc4002
git-author:
Daniel Hellstrom <daniel@…> (12/18/13 15:42:16)
git-committer:
Daniel Hellstrom <daniel@…> (04/16/15 23:10:20)
Message:

AT697PCI: fix PCI cfg writes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/leon2/pci/at697_pci.c

    rddc4002 r9d88008  
    305305        int retval;
    306306
    307         if (slot > 21 || (offset & ~0xfc))
     307        if (slot > 15 || (offset & ~0xfc))
    308308                return PCISTS_EINVAL;
    309309
     
    314314        if ( bus == 0 ) {
    315315                /* PCI Access - TYPE 0 */
    316                 address = (1<<(11+slot)) | (func << 8) | offset;
     316                address = (1<<(16+slot)) | (func << 8) | offset;
    317317        } else {
    318318                /* PCI access - TYPE 1 */
Note: See TracChangeset for help on using the changeset viewer.