Changeset 1342fad in rtems-libbsd


Ignore:
Timestamp:
Jan 17, 2018, 12:49:44 PM (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
95fe5b1
Parents:
34b7ccc
git-author:
Sebastian Huber <sebastian.huber@…> (01/17/18 12:49:44)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/23/18 13:55:15)
Message:

dpaa: Add and use SDK_DPAA_COMPAT_STATIC

Update #3277.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

    r34b7ccc r1342fad  
    541541}
    542542
     543#ifdef __rtems__
     544#define static SDK_DPAA_COMPAT_STATIC
     545#endif /* __rtems__ */
    543546static int dpaa_bp_alloc_pool(struct dpaa_bp *dpaa_bp)
     547#ifdef __rtems__
     548#undef static
     549#endif /* __rtems__ */
    544550{
    545551        int err;
     
    705711}
    706712
     713#ifdef __rtems__
     714#define static SDK_DPAA_COMPAT_STATIC
     715#endif /* __rtems__ */
    707716static struct dpaa_fq *dpaa_fq_alloc(struct device *dev,
    708717                                     u32 start, u32 count,
    709718                                     struct list_head *list,
    710719                                     enum dpaa_fq_type fq_type)
     720#ifdef __rtems__
     721#undef static
     722#endif /* __rtems__ */
    711723{
    712724        struct dpaa_fq *dpaa_fq;
     
    775787static DEFINE_SPINLOCK(rx_pool_channel_init);
    776788
     789#ifdef __rtems__
     790#define static SDK_DPAA_COMPAT_STATIC
     791#endif /* __rtems__ */
    777792static int dpaa_get_channel(void)
     793#ifdef __rtems__
     794#undef static
     795#endif /* __rtems__ */
    778796{
    779797        spin_lock(&rx_pool_channel_init);
     
    800818#endif /* __rtems__ */
    801819
     820#ifdef __rtems__
     821#define static SDK_DPAA_COMPAT_STATIC
     822#endif /* __rtems__ */
    802823static void dpaa_eth_add_channel(u16 channel)
     824#ifdef __rtems__
     825#undef static
     826#endif /* __rtems__ */
    803827{
    804828        u32 pool = QM_SDQCR_CHANNELS_POOL_CONV(channel);
     
    920944}
    921945
     946#ifdef __rtems__
     947#define static SDK_DPAA_COMPAT_STATIC
     948#endif /* __rtems__ */
    922949static void dpaa_fq_setup(struct dpaa_priv *priv,
    923950                          const struct dpaa_fq_cbs *fq_cbs,
    924951                          struct fman_port *tx_port)
     952#ifdef __rtems__
     953#undef static
     954#endif /* __rtems__ */
    925955{
    926956#ifndef __rtems__
     
    10171047}
    10181048
     1049#ifdef __rtems__
     1050#define static SDK_DPAA_COMPAT_STATIC
     1051#endif /* __rtems__ */
    10191052static int dpaa_fq_init(struct dpaa_fq *dpaa_fq, bool td_enable)
     1053#ifdef __rtems__
     1054#undef static
     1055#endif /* __rtems__ */
    10201056{
    10211057        const struct dpaa_priv  *priv;
  • linux/drivers/net/ethernet/freescale/dpaa/dpaa_eth.h

    r34b7ccc r1342fad  
    215215
    216216void dpaa_cleanup_tx_fd(struct ifnet *ifp, const struct qm_fd *fd);
     217
     218#ifdef QORIQ_IS_HYPERVISOR_GUEST
     219int dpaa_bp_alloc_pool(struct dpaa_bp *dpaa_bp);
     220
     221struct dpaa_fq *dpaa_fq_alloc(struct device *dev, u32 start, u32 count,
     222    struct list_head *list, enum dpaa_fq_type fq_type);
     223
     224int dpaa_get_channel(void);
     225
     226void dpaa_eth_add_channel(u16 channel);
     227
     228void dpaa_fq_setup(struct dpaa_priv *priv, const struct dpaa_fq_cbs *fq_cbs,
     229    struct fman_port *tx_port);
     230
     231int dpaa_fq_init(struct dpaa_fq *dpaa_fq, bool td_enable);
     232#endif /* QORIQ_IS_HYPERVISOR_GUEST */
    217233#endif /* __rtems__ */
    218234#endif  /* __DPAA_H */
  • rtemsbsd/include/rtems/bsd/local/opt_dpaa.h

    r34b7ccc r1342fad  
    11#include <bsp.h>
     2
    23#ifdef LIBBSP_POWERPC_QORIQ_BSP_H
    34#if QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
     
    78#define QORIQ_CHIP_IS_T_VARIANT(x) 0
    89#endif
     10
     11#ifdef QORIQ_IS_HYPERVISOR_GUEST
     12#define SDK_DPAA_COMPAT_STATIC
     13#else
     14#define SDK_DPAA_COMPAT_STATIC static
     15#endif
     16
    917#undef __ppc_generic
    1018#define __ppc_generic
     19
    1120#define KBUILD_MODNAME "dpaa"
Note: See TracChangeset for help on using the changeset viewer.