Ignore:
Timestamp:
Sep 27, 2004, 9:44:10 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
6a61cf94
Parents:
cd38196f
Message:

2003-11-01 Greg Menke <gregory.menke@…>

PR 606/bsps

  • bootloader/pci.c: Fixed IO remapping so buses >= 1 are remapped. Reduced PCI space to match bat2. Fixed incorrect region size calculation in pci_read_bases. Set PCI latency timers to known sane values. Changed bridge PCI settings to minimum sane instead of whatever sounded neat in the PCI spec. Force pf regions to memory mapped to preserve byte access.
File:
1 edited

Legend:

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

    rcd38196f r513b6c4b  
    2222#include <libcpu/io.h>
    2323#include <bsp/pci.h>
    24 #include <rtems/bspIo.h>
    2524
    2625/* allow for overriding these definitions */
     
    339338
    340339/* printk("pci : device %d:%02x devid %04x, intpin %d, intline  %d\n", pbus, pslot, devid, int_pin, int_name ); */
     340
     341#if 0
     342         {
     343            unsigned short cmd,stat;
     344            unsigned char  lat, seclat, csize;
     345
     346            pci_read_config_word(pbus,pslot,0,PCI_COMMAND, &cmd );
     347            pci_read_config_word(pbus,pslot,0,PCI_STATUS, &stat );
     348            pci_read_config_byte(pbus,pslot,0,PCI_LATENCY_TIMER, &lat );
     349            pci_read_config_byte(pbus,pslot,0,PCI_SEC_LATENCY_TIMER, &seclat );
     350            pci_read_config_byte(pbus,pslot,0,PCI_CACHE_LINE_SIZE, &csize );
     351           
     352
     353            printk("pci : device %d:%02x  cmd %04X, stat %04X, latency %d, sec_latency %d, clsize %d\n", pbus, pslot,
     354                   cmd,
     355                   stat,
     356                   lat,
     357                   seclat,
     358                   csize);
     359         }
     360#endif
    341361
    342362         if( int_pin > 0 )
     
    367387                     if( int_name == -1 )
    368388                     {
    369                         printk("pci : Unable to resolve device %d:%d w/ swizzled int pin %d to an interrupt_line.\n", pbus, pslot, int_pin );
     389                        printk("pci : Unable to resolve device %d:%d w/ swizzled int pin %i to an interrupt_line.\n", pbus, pslot, int_pin );
    370390                     }
    371391                     else
     
    435455                           if( int_name == -1 )
    436456                           {
    437                               printk("pci : Unable to resolve device %d:%d w/ swizzled int pin %d to an interrupt_line.\n", pbus, pslot, int_pin );
     457                              printk("pci : Unable to resolve device %d:%d w/ swizzled int pin %i to an interrupt_line.\n", pbus, pslot, int_pin );
    438458                           }
    439459                           else
     
    475495                     else
    476496                     {
    477                         printk("pci : No bridge from bus %d towards root found\n", tbus );
     497                        printk("pci : No bridge from bus %i towards root found\n", tbus );
    478498                        goto donesearch;
    479499                     }
Note: See TracChangeset for help on using the changeset viewer.