Changeset a7d252c in rtems-libbsd for linux


Ignore:
Timestamp:
Jan 12, 2018, 12:22:10 PM (19 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
0f6ff4a
Parents:
95fe5b1
git-author:
Sebastian Huber <sebastian.huber@…> (01/12/18 12:22:10)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/23/18 13:55:21)
Message:

dpaa: Add and use bman_new_pool_for_bpid()

Update #3277.

Location:
linux
Files:
3 edited

Legend:

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

    r95fe5b1 ra7d252c  
    572572                dpaa_bp->bpid = (u8)bman_get_bpid(dpaa_bp->pool);
    573573        }
     574#ifdef __rtems__
     575        else {
     576                dpaa_bp->pool = bman_new_pool_for_bpid(dpaa_bp->bpid);
     577        }
     578#endif /* __rtems__ */
    574579
    575580        if (dpaa_bp->seed_cb) {
  • linux/drivers/soc/fsl/qbman/bman.c

    r95fe5b1 ra7d252c  
    721721}
    722722EXPORT_SYMBOL(bman_new_pool);
     723#ifdef __rtems__
     724struct bman_pool *
     725bman_new_pool_for_bpid(u8 bpid)
     726{
     727        struct bman_pool *pool;
     728
     729        pool = malloc(sizeof(*pool), M_KMALLOC, M_WAITOK | M_ZERO);
     730        pool->bpid = bpid;
     731        return (pool);
     732}
     733#endif /* __rtems__ */
    723734
    724735void bman_free_pool(struct bman_pool *pool)
  • linux/include/soc/fsl/bman.h

    r95fe5b1 ra7d252c  
    8787 */
    8888struct bman_pool *bman_new_pool(void);
     89#ifdef __rtems__
     90struct bman_pool *bman_new_pool_for_bpid(u8 bpid);
     91#endif /* __rtems__ */
    8992
    9093/**
Note: See TracChangeset for help on using the changeset viewer.