diff options
| author | Bogdan Purcareata <bogdan.purcareata@nxp.com> | 2018-03-02 05:23:58 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-14 08:18:42 -0400 |
| commit | 9c692d5ae7ea84d221d7504b7ebef07ea8f3ff27 (patch) | |
| tree | 51d01a15aa7329326071caffa2f2b43e8d385563 /include/linux/fsl | |
| parent | d64c2a76123f0300b08d0557ad56e9d599872a36 (diff) | |
staging: fsl-mc: Move DPBP out of staging
Move the source files out of staging into their final locations:
- dpbp.c goes to drivers/bus/fsl-mc/, next to the core infrastructure
- dpbp-cmd.h gets merged into drivers/bus/fsl-mc/fsl-mc-private.h, next
to the other internally used APIs
- dpbp.h gets merged into include/linux/fsl/mc.h, exposing the public
API
Update references in the dpaa2-eth staging driver.
DPBP stands for Data Path Buffer Pool - you can read more about the
object in Documentation/networking/dpaa2/overview.rst
Signed-off-by: Bogdan Purcareata <bogdan.purcareata@nxp.com>
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fsl')
| -rw-r--r-- | include/linux/fsl/mc.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/linux/fsl/mc.h b/include/linux/fsl/mc.h index 765ba41f5987..66118e1fb5b9 100644 --- a/include/linux/fsl/mc.h +++ b/include/linux/fsl/mc.h | |||
| @@ -451,4 +451,46 @@ static inline bool is_fsl_mc_bus_dprtc(const struct fsl_mc_device *mc_dev) | |||
| 451 | return mc_dev->dev.type == &fsl_mc_bus_dprtc_type; | 451 | return mc_dev->dev.type == &fsl_mc_bus_dprtc_type; |
| 452 | } | 452 | } |
| 453 | 453 | ||
| 454 | /* | ||
| 455 | * Data Path Buffer Pool (DPBP) API | ||
| 456 | * Contains initialization APIs and runtime control APIs for DPBP | ||
| 457 | */ | ||
| 458 | |||
| 459 | int dpbp_open(struct fsl_mc_io *mc_io, | ||
| 460 | u32 cmd_flags, | ||
| 461 | int dpbp_id, | ||
| 462 | u16 *token); | ||
| 463 | |||
| 464 | int dpbp_close(struct fsl_mc_io *mc_io, | ||
| 465 | u32 cmd_flags, | ||
| 466 | u16 token); | ||
| 467 | |||
| 468 | int dpbp_enable(struct fsl_mc_io *mc_io, | ||
| 469 | u32 cmd_flags, | ||
| 470 | u16 token); | ||
| 471 | |||
| 472 | int dpbp_disable(struct fsl_mc_io *mc_io, | ||
| 473 | u32 cmd_flags, | ||
| 474 | u16 token); | ||
| 475 | |||
| 476 | int dpbp_reset(struct fsl_mc_io *mc_io, | ||
| 477 | u32 cmd_flags, | ||
| 478 | u16 token); | ||
| 479 | |||
| 480 | /** | ||
| 481 | * struct dpbp_attr - Structure representing DPBP attributes | ||
| 482 | * @id: DPBP object ID | ||
| 483 | * @bpid: Hardware buffer pool ID; should be used as an argument in | ||
| 484 | * acquire/release operations on buffers | ||
| 485 | */ | ||
| 486 | struct dpbp_attr { | ||
| 487 | int id; | ||
| 488 | u16 bpid; | ||
| 489 | }; | ||
| 490 | |||
| 491 | int dpbp_get_attributes(struct fsl_mc_io *mc_io, | ||
| 492 | u32 cmd_flags, | ||
| 493 | u16 token, | ||
| 494 | struct dpbp_attr *attr); | ||
| 495 | |||
| 454 | #endif /* _FSL_MC_H_ */ | 496 | #endif /* _FSL_MC_H_ */ |
