Changeset 81df701a in rtems


Ignore:
Timestamp:
Mar 9, 2016, 9:30:24 PM (3 years ago)
Author:
Joel Sherrill <joel@…>
Branches:
master
Children:
9430052
Parents:
22bbb9f1
git-author:
Joel Sherrill <joel@…> (03/09/16 21:30:24)
git-committer:
Joel Sherrill <joel@…> (03/10/16 16:38:49)
Message:

mips/malta: Use shared pci_find_device() and removed unused pci_list_devices()

Also includes .h file cleanup.

Location:
c/src/lib/libbsp/mips/malta
Files:
2 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/malta/Makefile.am

    r22bbb9f1 r81df701a  
    6969# pci
    7070libbsp_a_SOURCES += pci/pci.c
    71 libbsp_a_SOURCES += pci/pcifinddevice.c
    72 libbsp_a_SOURCES += pci/pcilistdevices.c
     71libbsp_a_SOURCES += ../../shared/pci/pci_find_device.c
    7372
    7473#isr
  • c/src/lib/libbsp/mips/malta/include/pci.h

    r22bbb9f1 r81df701a  
    6060extern unsigned char pci_bus_count();
    6161
    62 /* FIXME: This also is generic and could go into rtems/pci.h */
    63 
    64 /* Scan pci config space and run a user callback on each
    65  * device present; the user callback may return 0 to
    66  * continue the scan or a value > 0 to abort the scan.
    67  * Return values < 0 are reserved and must not be used.
    68  *
    69  * RETURNS: a (opaque) handle pointing to the bus/slot/fn-triple
    70  *          just after where the scan was aborted by a callback
    71  *          returning 1 (see above) or NULL if all devices were
    72  *          scanned.
    73  *          The handle may be passed to this routine to resume the
    74  *          scan continuing with the device after the one causing the
    75  *          abort.
    76  *          Pass a NULL 'handle' argument to start scanning from
    77  *          the beginning (bus/slot/fn = 0/0/0).
    78  */
    79 typedef void *BSP_PciScanHandle;
    80 typedef int (*BSP_PciScannerCb)(int bus, int slot, int fun, void *uarg);
    81 
    82 
    83 BSP_PciScanHandle
    84 BSP_pciScan(BSP_PciScanHandle handle, BSP_PciScannerCb cb, void *uarg);
    85 
    86 /* Dump basic config. space info to a file. The argument may
    87  * be NULL in which case 'stdout' is used.
    88  * NOTE: the C-library must be functional before you can use
    89  *       this routine.
    90  */
    91 void BSP_pciConfigDump(FILE *fp);
    92 
    9362int indirect_pci_read_config_byte(
    9463  unsigned char bus,
     
    141110/* Can these be moved to the rtems pci.h? */
    142111int FindPCIbridge( int mybus, struct pcibridge *pb );
    143 void pci_list_devices( void );
    144112
    145113const pci_config_access_functions pci_indirect_functions;
Note: See TracChangeset for help on using the changeset viewer.