Changeset 332cc9f in rtems-libbsd


Ignore:
Timestamp:
Feb 17, 2021, 3:55:48 AM (8 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
5-freebsd-12
Parents:
afb3616
git-author:
Chris Johns <chrisj@…> (02/17/21 03:55:48)
git-committer:
Chris Johns <chrisj@…> (09/18/21 07:52:31)
Message:

bsp/motorola_powerpc: Add dc, ukphy and legacy PCI support

  • Add the dc net dev to the BSP
  • Add the ukphy support
  • Add PCI Legacy bus support to the PowerPC

Closes #4514

Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/dev/dc/if_dc.c

    rafb3616 r332cc9f  
    157157 */
    158158static const struct dc_type dc_devs[] = {
     159#ifdef __rtems__
     160        { DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21140A), 0,
     161                "Intel 21140A 10/100BaseTX" },
     162#endif /* __rtems__ */
    159163        { DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21143), 0,
    160164                "Intel 21143 10/100BaseTX" },
     
    20772081
    20782082        switch (sc->dc_info->dc_devid) {
     2083#ifdef __rtems__
     2084        case DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21140A):
     2085#endif /* __rtems__ */
    20792086        case DC_DEVID(DC_VENDORID_DEC, DC_DEVICEID_21143):
    20802087                sc->dc_type = DC_TYPE_21143;
  • freebsd/sys/dev/dc/if_dcreg.h

    rafb3616 r332cc9f  
    825825#define DC_VENDORID_DEC         0x1011
    826826
     827#ifdef __rtems__
     828/*
     829 * DEC/Intel 21140 PCI device ID
     830 */
     831#define DC_DEVICEID_21140A      0x0009
     832
     833#endif /* __rtems__ */
    827834/*
    828835 * DEC/Intel 21143 PCI device ID
  • libbsd.py

    rafb3616 r332cc9f  
    26402640        )
    26412641        self.addCPUDependentFreeBSDSourceFiles(
    2642             [ 'i386' ],
     2642            [ 'i386', 'powerpc' ],
    26432643            [
    26442644                'sys/x86/x86/legacy.c',
  • rtemsbsd/include/bsp/nexus-devices.h

    rafb3616 r332cc9f  
    198198SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
    199199
     200#elif defined(LIBBSP_POWERPC_MOTOROLA_POWERPC_BSP_H)
     201
     202RTEMS_BSD_DRIVER_PC_LEGACY;
     203RTEMS_BSD_DRIVER_PCI_DC;
     204RTEMS_BSD_DRIVER_UKPHY;
     205
     206#endif /* LIBBSP_POWERPC_MOTOROLA_POWERPC_BSP_H */
     207
    200208#endif
    201 
    202 #endif
  • rtemsbsd/include/machine/rtems-bsd-nexus-bus.h

    rafb3616 r332cc9f  
    7878 *   RTEMS_BSD_DRIVER_REPHY
    7979 *   RTEMS_BSD_DRIVER_PHY_MIC
     80 *   RTEMS_BSD_DRIVER_UKPHY
    8081 */
    8182
     
    442443#endif /* RTEMS_BSD_DRIVER_PCI_RE */
    443444
     445/*
     446 * DEC Tulip Driver
     447 */
     448#if !defined(RTEMS_BSD_DRIVER_PCI_DC)
     449  #define RTEMS_BSD_DRIVER_PCI_DC                 \
     450    SYSINIT_DRIVER_REFERENCE(dc, pci);
     451#endif /* RTEMS_BSD_DRIVER_PCI_DC */
     452
    444453/**
    445454 ** MMI Physical Layer Support.
     
    478487#endif /* RTEMS_BSD_DRIVER_PHY_MIC */
    479488
     489/*
     490 * UK PHY (for unknown PHY devices)
     491 */
     492#if !defined(RTEMS_BSD_DRIVER_UKPHY)
     493  #define RTEMS_BSD_DRIVER_UKPHY               \
     494    SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
     495#endif /* RTEMS_BSD_DRIVER_UKPHY */
     496
    480497#ifdef __cplusplus
    481498}
Note: See TracChangeset for help on using the changeset viewer.