Changeset 9c5873b7 in rtems for c/src/libchip/network/if_dc.c


Ignore:
Timestamp:
06/17/05 14:32:23 (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
18ec73e3
Parents:
181601f
Message:

2005-06-17 Joel Sherrill <joel@…>

  • libchip/network/if_dc.c: Begin to convert to new PCI and IRQ interface. Also correct attempting to build on other than PowerPC and x86.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/if_dc.c

    r181601f r9c5873b7  
    9595 */
    9696
     97/*
     98 *  This driver only supports architectures with the new style
     99 *  exception processing.  The following checks try to keep this
     100 *  from being compiled on systems which can't support this driver.
     101 */
     102
     103#if defined(__i386__)
     104  #define DRIVER_SUPPORTED
     105#endif
     106
     107#if defined(__PPC__) && (defined(mpc604) || defined(mpc750) || defined(mpc603e))
     108  #define DRIVER_SUPPORTED
     109#endif
     110
     111#undef DRIVER_SUPPORTED
     112
     113#if defined(DRIVER_SUPPORTED)
    97114#include <rtems.h>
    98115#include <rtems/error.h>
     
    115132 
    116133#include "if_media.h"
    117 #include "pci.h"
    118 /*#include <rtems/pci.h>  moved to cpukit/include/rtems in CVS current !
     134#include <rtems/pci.h>
     135/*
    119136#include <sys/kernel.h>
    120137#include <sys/sysctl.h>
     
    161178#endif
    162179
    163 #if defined(__i386__)
    164 #include <irq.h>
    165 #include <pcibios.h>
    166 #endif
     180#include <bsp/irq.h>
    167181
    168182 
     
    19051919         * First, find a DEC board
    19061920         */
    1907         if (pcib_init() == PCIB_ERR_NOTPRESENT) {
     1921        if (pci_initialize() == PCIB_ERR_NOTPRESENT) {
    19081922                rtems_panic("PCI BIOS not found !!");
    19091923        }
     
    37973811
    37983812
     3813#endif  /* end if supported */
Note: See TracChangeset for help on using the changeset viewer.