Changeset 28ee86a in rtems-libbsd


Ignore:
Timestamp:
Apr 27, 2016, 9:58:19 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
cd089b9
Parents:
b2b2e1a
git-author:
Sebastian Huber <sebastian.huber@…> (04/27/16 09:58:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 06:46:43)
Message:

Import DPAA driver snapshot

Imported from Freescale Linux repository

git://git.freescale.com/ppc/upstream/linux.git

commit 2774c204cd8bfc56a200ff4dcdfc9cdf5b6fc161.

Linux compatibility layer is partly from FreeBSD.

Files:
127 added
5 edited

Legend:

Unmodified
Added
Removed
  • builder.py

    rb2b2e1a r28ee86a  
    189189            '-Ifreebsd/contrib/libpcap',
    190190            '-Ifreebsd/contrib/libxo',
     191            '-Ilinux/include',
     192            '-Ilinux/drivers/net/ethernet/freescale/fman',
    191193            '-Irtemsbsd/sys',
    192194            '-ImDNSResponder/mDNSCore',
  • libbsd.py

    rb2b2e1a r28ee86a  
    41764176    return mod
    41774177
     4178def dpaa(mm):
     4179    mod = builder.Module('dpaa')
     4180    mod.addCPUDependentLinuxSourceFiles(
     4181        [ 'powerpc' ],
     4182        [
     4183            'drivers/net/ethernet/freescale/dpaa/dpaa_eth.c',
     4184            'drivers/net/ethernet/freescale/dpaa/dpaa_eth_common.c',
     4185            'drivers/net/ethernet/freescale/fman/fman.c',
     4186            'drivers/net/ethernet/freescale/fman/fman_dtsec.c',
     4187            'drivers/net/ethernet/freescale/fman/fman_memac.c',
     4188            'drivers/net/ethernet/freescale/fman/fman_port.c',
     4189            'drivers/net/ethernet/freescale/fman/fman_sp.c',
     4190            'drivers/net/ethernet/freescale/fman/fman_tgec.c',
     4191            'drivers/net/ethernet/freescale/fman/mac.c',
     4192            'drivers/soc/fsl/qbman/bman_api.c',
     4193            'drivers/soc/fsl/qbman/bman.c',
     4194            'drivers/soc/fsl/qbman/bman_test_api.c',
     4195            'drivers/soc/fsl/qbman/bman_test.c',
     4196            'drivers/soc/fsl/qbman/bman_test_thresh.c',
     4197            'drivers/soc/fsl/qbman/bman_utils.c',
     4198            'drivers/soc/fsl/qbman/dpaa_resource.c',
     4199            'drivers/soc/fsl/qbman/qman_api.c',
     4200            'drivers/soc/fsl/qbman/qman.c',
     4201            'drivers/soc/fsl/qbman/qman_portal.c',
     4202            'drivers/soc/fsl/qbman/qman_test_api.c',
     4203            'drivers/soc/fsl/qbman/qman_test_stash.c',
     4204            'drivers/soc/fsl/qbman/qman_utils.c',
     4205        ],
     4206        mm.generator['source']()
     4207    )
     4208    mod.addCPUDependentRTEMSSourceFiles(
     4209        [ 'powerpc' ],
     4210        [
     4211            'sys/powerpc/compat.c',
     4212            'sys/powerpc/fdt_phy.c',
     4213            'sys/powerpc/fman_muram.c',
     4214            'sys/powerpc/linux_compat.c',
     4215            'sys/powerpc/drivers/net/ethernet/freescale/dpaa/if_fmanmac.c',
     4216        ],
     4217        mm.generator['source']()
     4218    )
     4219    return mod
     4220
    41784221def sources(mm):
     4222    mm.addModule(dpaa(mm))
    41794223    mm.addModule(rtems(mm))
    41804224    mm.addModule(base(mm))
  • libbsd_waf.py

    rb2b2e1a r28ee86a  
    7979    includes += ["freebsd/contrib/libpcap"]
    8080    includes += ["freebsd/contrib/libxo"]
     81    includes += ["linux/include"]
     82    includes += ["linux/drivers/net/ethernet/freescale/fman"]
    8183    includes += ["rtemsbsd/sys"]
    8284    includes += ["mDNSResponder/mDNSCore"]
     
    23012303        source += ['freebsd/sys/mips/mips/in_cksum.c']
    23022304    if bld.get_env()["RTEMS_ARCH"] == "powerpc":
    2303         source += ['freebsd/sys/powerpc/powerpc/in_cksum.c']
     2305        source += ['freebsd/sys/powerpc/powerpc/in_cksum.c',
     2306                   'linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c',
     2307                   'linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth_common.c',
     2308                   'linux/drivers/net/ethernet/freescale/fman/fman.c',
     2309                   'linux/drivers/net/ethernet/freescale/fman/fman_dtsec.c',
     2310                   'linux/drivers/net/ethernet/freescale/fman/fman_memac.c',
     2311                   'linux/drivers/net/ethernet/freescale/fman/fman_port.c',
     2312                   'linux/drivers/net/ethernet/freescale/fman/fman_sp.c',
     2313                   'linux/drivers/net/ethernet/freescale/fman/fman_tgec.c',
     2314                   'linux/drivers/net/ethernet/freescale/fman/mac.c',
     2315                   'linux/drivers/soc/fsl/qbman/bman.c',
     2316                   'linux/drivers/soc/fsl/qbman/bman_api.c',
     2317                   'linux/drivers/soc/fsl/qbman/bman_test.c',
     2318                   'linux/drivers/soc/fsl/qbman/bman_test_api.c',
     2319                   'linux/drivers/soc/fsl/qbman/bman_test_thresh.c',
     2320                   'linux/drivers/soc/fsl/qbman/bman_utils.c',
     2321                   'linux/drivers/soc/fsl/qbman/dpaa_resource.c',
     2322                   'linux/drivers/soc/fsl/qbman/qman.c',
     2323                   'linux/drivers/soc/fsl/qbman/qman_api.c',
     2324                   'linux/drivers/soc/fsl/qbman/qman_portal.c',
     2325                   'linux/drivers/soc/fsl/qbman/qman_test_api.c',
     2326                   'linux/drivers/soc/fsl/qbman/qman_test_stash.c',
     2327                   'linux/drivers/soc/fsl/qbman/qman_utils.c',
     2328                   'rtemsbsd/sys/powerpc/compat.c',
     2329                   'rtemsbsd/sys/powerpc/drivers/net/ethernet/freescale/dpaa/if_fmanmac.c',
     2330                   'rtemsbsd/sys/powerpc/fdt_phy.c',
     2331                   'rtemsbsd/sys/powerpc/fman_muram.c',
     2332                   'rtemsbsd/sys/powerpc/linux_compat.c']
    23042333    if bld.get_env()["RTEMS_ARCH"] == "sh":
    23052334        source += ['freebsd/sys/mips/mips/in_cksum.c']
  • rtemsbsd/include/bsp/nexus-devices.h

    rb2b2e1a r28ee86a  
    139139#elif defined(LIBBSP_POWERPC_QORIQ_BSP_H)
    140140
    141 #if !QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
     141#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
     142
     143#include <bsp/irq.h>
     144
     145RTEMS_BSD_DEFINE_NEXUS_DEVICE(fman, 0, 0, NULL);
     146RTEMS_BSD_DEFINE_NEXUS_DEVICE(fman, 1, 0, NULL);
     147
     148SYSINIT_DRIVER_REFERENCE(fman_mac, fman);
     149SYSINIT_DRIVER_REFERENCE(fman_port, fman_mac);
     150SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
     151
     152#else /* QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT) */
    142153
    143154#include <bsp/irq.h>
     
    148159SYSINIT_DRIVER_REFERENCE(ukphy, miibus);
    149160
    150 #endif /* !QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT) */
     161#endif /* QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT) */
    151162
    152163#endif
  • testsuite/include/rtems/bsd/test/network-config.h.in

    rb2b2e1a r28ee86a  
    4545#elif defined(LIBBSP_ARM_LPC32XX_BSP_H)
    4646  #define NET_CFG_INTERFACE_0 "lpe0"
     47#elif defined(LIBBSP_POWERPC_QORIQ_BSP_H)
     48  #if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
     49    #define NET_CFG_INTERFACE_0 "fm1m3"
     50  #else
     51    #define NET_CFG_INTERFACE_0 "tsec0"
     52  #endif
    4753#else
    4854  #define NET_CFG_INTERFACE_0 "lo0"
Note: See TracChangeset for help on using the changeset viewer.