staging: fsl-mc: up-rev version of MC interface code
PATCH 1/1 staging: fsl-mc: up-rev version of MC interface code
The DPAA2 management complex has a versioned binary interface that has to be kept in sync with the DPAA2 drivers. This patch uprevs the APIs that build MC commands and parse results. This uprev is needed to support object interrupts.
MC binary interface changes
-overall version from 6.0 to 8.0
-dprc version from 3.0 to 4.0
-dpbp and dpmcp versions from 2.0 to 2.1
-new dprc commands -- set/get obj irq, set obj label,
get obj descriptor
-removed commands -- get portal paddr
-object regions are reported as region offsets not physical
addresses
build/parse API changes
-flags arg is added to all APIs for future extensibility,
hardcoded priority bit is now a flag
-IRQ-related args are consolidated into an irq_cfg struct
--- drivers/staging/fsl-mc/bus/dpbp.c | 141 ++++++--- drivers/staging/fsl-mc/bus/dpmcp-cmd.h | 2 +- drivers/staging/fsl-mc/bus/dpmcp.c | 123 +++++--- drivers/staging/fsl-mc/bus/dpmcp.h | 123 +++++--- drivers/staging/fsl-mc/bus/dpmng.c | 14 +- drivers/staging/fsl-mc/bus/dprc-cmd.h | 7 +- drivers/staging/fsl-mc/bus/dprc-driver.c | 8 +- drivers/staging/fsl-mc/bus/dprc.c | 464 +++++++++++++++++++++++----- drivers/staging/fsl-mc/bus/mc-allocator.c | 6 +- drivers/staging/fsl-mc/bus/mc-bus.c | 54 +++- drivers/staging/fsl-mc/include/dpbp-cmd.h | 2 +- drivers/staging/fsl-mc/include/dpbp.h | 91 ++++-- drivers/staging/fsl-mc/include/dpcon-cmd.h | 2 +- drivers/staging/fsl-mc/include/dpmng.h | 14 +- drivers/staging/fsl-mc/include/dprc.h | 313 +++++++++++++++---- drivers/staging/fsl-mc/include/mc-cmd.h | 28 +- drivers/staging/fsl-mc/include/mc-private.h | 15 +- 17 files changed, 1052 insertions(+), 355 deletions(-)
drivers/staging/fsl-mc/bus/dpbp.c +93 -48
@@ -34,14 +34,19 @@#include "../include/dpbp.h" #include "../include/dpbp-cmd.h" -int dpbp_open (struct fsl_mc_io *mc_io,int dpbp_id,uint16_t *token) +int dpbp_open (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +int dpbp_id, +uint16_t *token) {struct mc_command cmd = {0 };int err;/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_OPEN , -MC_CMD_PRI_LOW ,0 ); + cmd_flags, +0 ); + cmd.params[0 ] |=mc_enc (0 ,32 , dpbp_id);/* send command to mc*/
@@ -54,22 +59,23 @@ int dpbp_open(struct fsl_mc_io *mc_io, int dpbp_id, uint16_t *token)return err; } -EXPORT_SYMBOL (dpbp_open); -int dpbp_close (struct fsl_mc_io *mc_io,uint16_t token) +int dpbp_close (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +uint16_t token) {struct mc_command cmd = {0 };/* prepare command */ - cmd.header =mc_encode_cmd_header (DPBP_CMDID_CLOSE ,MC_CMD_PRI_HIGH , + cmd.header =mc_encode_cmd_header (DPBP_CMDID_CLOSE , cmd_flags, token);/* send command to mc*/ return mc_send_command (mc_io, &cmd); } -EXPORT_SYMBOL (dpbp_close);int dpbp_create (struct fsl_mc_io *mc_io, +uint32_t cmd_flags,const struct dpbp_cfg *cfg,uint16_t *token) {
@@ -80,7 +86,8 @@ int dpbp_create(struct fsl_mc_io *mc_io,/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_CREATE , -MC_CMD_PRI_LOW ,0 ); + cmd_flags, +0 );/* send command to mc*/ err =mc_send_command (mc_io, &cmd);
@@ -93,50 +100,59 @@ int dpbp_create(struct fsl_mc_io *mc_io,return 0 ; } -int dpbp_destroy (struct fsl_mc_io *mc_io,uint16_t token) +int dpbp_destroy (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +uint16_t token) {struct mc_command cmd = {0 };/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_DESTROY , -MC_CMD_PRI_LOW , token); + cmd_flags, + token);/* send command to mc*/ return mc_send_command (mc_io, &cmd); } -int dpbp_enable (struct fsl_mc_io *mc_io,uint16_t token) +int dpbp_enable (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +uint16_t token) {struct mc_command cmd = {0 };/* prepare command */ - cmd.header =mc_encode_cmd_header (DPBP_CMDID_ENABLE ,MC_CMD_PRI_LOW , + cmd.header =mc_encode_cmd_header (DPBP_CMDID_ENABLE , cmd_flags, token);/* send command to mc*/ return mc_send_command (mc_io, &cmd); } -EXPORT_SYMBOL (dpbp_enable); -int dpbp_disable (struct fsl_mc_io *mc_io,uint16_t token) +int dpbp_disable (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +uint16_t token) {struct mc_command cmd = {0 };/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_DISABLE , -MC_CMD_PRI_LOW , token); + cmd_flags, + token);/* send command to mc*/ return mc_send_command (mc_io, &cmd); } -EXPORT_SYMBOL (dpbp_disable); -int dpbp_is_enabled (struct fsl_mc_io *mc_io,uint16_t token,int *en) +int dpbp_is_enabled (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +uint16_t token, +int *en) {struct mc_command cmd = {0 };int err;/* prepare command */ - cmd.header =mc_encode_cmd_header (DPBP_CMDID_IS_ENABLED ,MC_CMD_PRI_LOW , + cmd.header =mc_encode_cmd_header (DPBP_CMDID_IS_ENABLED , cmd_flags, token);/* send command to mc*/
@@ -150,53 +166,58 @@ int dpbp_is_enabled(struct fsl_mc_io *mc_io, uint16_t token, int *en)return 0 ; } -int dpbp_reset (struct fsl_mc_io *mc_io,uint16_t token) +int dpbp_reset (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +uint16_t token) {struct mc_command cmd = {0 };/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_RESET , -MC_CMD_PRI_LOW , token); + cmd_flags, + token);/* send command to mc*/ return mc_send_command (mc_io, &cmd); } -int dpbp_set_irq (struct fsl_mc_io *mc_io, -uint16_t token, -uint8_t irq_index, -uint64_t irq_paddr, -uint32_t irq_val, -int user_irq_id) +int dpbp_set_irq (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +uint16_t token, +uint8_t irq_index, +struct dpbp_irq_cfg *irq_cfg) {struct mc_command cmd = {0 };/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_SET_IRQ , -MC_CMD_PRI_LOW , token); + cmd_flags, + token); + cmd.params[0 ] |=mc_enc (0 ,8 , irq_index); - cmd.params[0 ] |=mc_enc (32 ,32 , irq_val); - cmd.params[1 ] |=mc_enc (0 ,64 , irq_paddr); - cmd.params[2 ] |=mc_enc (0 ,32 , user_irq_id); + cmd.params[0 ] |=mc_enc (32 ,32 , irq_cfg->val); + cmd.params[1 ] |=mc_enc (0 ,64 , irq_cfg->addr); + cmd.params[2 ] |=mc_enc (0 ,32 , irq_cfg->user_irq_id);/* send command to mc*/ return mc_send_command (mc_io, &cmd); } -int dpbp_get_irq (struct fsl_mc_io *mc_io, -uint16_t token, -uint8_t irq_index, -int *type, -uint64_t *irq_paddr, -uint32_t *irq_val, -int *user_irq_id) +int dpbp_get_irq (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +uint16_t token, +uint8_t irq_index, +int *type, +struct dpbp_irq_cfg *irq_cfg) {struct mc_command cmd = {0 };int err;/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_GET_IRQ , -MC_CMD_PRI_LOW , token); + cmd_flags, + token); + cmd.params[0 ] |=mc_enc (32 ,8 , irq_index);/* send command to mc*/
@@ -205,14 +226,16 @@ int dpbp_get_irq(struct fsl_mc_io *mc_io,return err;/* retrieve response parameters */ - *irq_val = (uint32_t )mc_dec (cmd.params[0 ],0 ,32 ); - *irq_paddr = (uint64_t )mc_dec (cmd.params[1 ],0 ,64 ); - *user_irq_id = (int )mc_dec (cmd.params[2 ],0 ,32 ); + irq_cfg->val = (uint32_t )mc_dec (cmd.params[0 ],0 ,32 ); + irq_cfg->addr = (uint64_t )mc_dec (cmd.params[1 ],0 ,64 ); + irq_cfg->user_irq_id = (int )mc_dec (cmd.params[2 ],0 ,32 ); *type = (int )mc_dec (cmd.params[2 ],32 ,32 ); +return 0 ; }int dpbp_set_irq_enable (struct fsl_mc_io *mc_io, +uint32_t cmd_flags,uint16_t token,uint8_t irq_index,uint8_t en)
@@ -221,7 +244,9 @@ int dpbp_set_irq_enable(struct fsl_mc_io *mc_io,/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_SET_IRQ_ENABLE , -MC_CMD_PRI_LOW , token); + cmd_flags, + token); + cmd.params[0 ] |=mc_enc (0 ,8 , en); cmd.params[0 ] |=mc_enc (32 ,8 , irq_index);
@@ -230,6 +255,7 @@ int dpbp_set_irq_enable(struct fsl_mc_io *mc_io, }int dpbp_get_irq_enable (struct fsl_mc_io *mc_io, +uint32_t cmd_flags,uint16_t token,uint8_t irq_index,uint8_t *en)
@@ -239,7 +265,9 @@ int dpbp_get_irq_enable(struct fsl_mc_io *mc_io,/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_GET_IRQ_ENABLE , -MC_CMD_PRI_LOW , token); + cmd_flags, + token); + cmd.params[0 ] |=mc_enc (32 ,8 , irq_index);/* send command to mc*/
@@ -249,10 +277,12 @@ int dpbp_get_irq_enable(struct fsl_mc_io *mc_io,/* retrieve response parameters */ *en = (uint8_t )mc_dec (cmd.params[0 ],0 ,8 ); +return 0 ; }int dpbp_set_irq_mask (struct fsl_mc_io *mc_io, +uint32_t cmd_flags,uint16_t token,uint8_t irq_index,uint32_t mask)
@@ -261,7 +291,9 @@ int dpbp_set_irq_mask(struct fsl_mc_io *mc_io,/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_SET_IRQ_MASK , -MC_CMD_PRI_LOW , token); + cmd_flags, + token); + cmd.params[0 ] |=mc_enc (0 ,32 , mask); cmd.params[0 ] |=mc_enc (32 ,8 , irq_index);
@@ -270,6 +302,7 @@ int dpbp_set_irq_mask(struct fsl_mc_io *mc_io, }int dpbp_get_irq_mask (struct fsl_mc_io *mc_io, +uint32_t cmd_flags,uint16_t token,uint8_t irq_index,uint32_t *mask)
@@ -279,7 +312,9 @@ int dpbp_get_irq_mask(struct fsl_mc_io *mc_io,/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_GET_IRQ_MASK , -MC_CMD_PRI_LOW , token); + cmd_flags, + token); + cmd.params[0 ] |=mc_enc (32 ,8 , irq_index);/* send command to mc*/
@@ -289,10 +324,12 @@ int dpbp_get_irq_mask(struct fsl_mc_io *mc_io,/* retrieve response parameters */ *mask = (uint32_t )mc_dec (cmd.params[0 ],0 ,32 ); +return 0 ; }int dpbp_get_irq_status (struct fsl_mc_io *mc_io, +uint32_t cmd_flags,uint16_t token,uint8_t irq_index,uint32_t *status)
@@ -302,7 +339,9 @@ int dpbp_get_irq_status(struct fsl_mc_io *mc_io,/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_GET_IRQ_STATUS , -MC_CMD_PRI_LOW , token); + cmd_flags, + token); + cmd.params[0 ] |=mc_enc (32 ,8 , irq_index);/* send command to mc*/
@@ -312,10 +351,12 @@ int dpbp_get_irq_status(struct fsl_mc_io *mc_io,/* retrieve response parameters */ *status = (uint32_t )mc_dec (cmd.params[0 ],0 ,32 ); +return 0 ; }int dpbp_clear_irq_status (struct fsl_mc_io *mc_io, +uint32_t cmd_flags,uint16_t token,uint8_t irq_index,uint32_t status)
@@ -324,7 +365,9 @@ int dpbp_clear_irq_status(struct fsl_mc_io *mc_io,/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_CLEAR_IRQ_STATUS , -MC_CMD_PRI_LOW , token); + cmd_flags, + token); + cmd.params[0 ] |=mc_enc (0 ,32 , status); cmd.params[0 ] |=mc_enc (32 ,8 , irq_index);
@@ -333,6 +376,7 @@ int dpbp_clear_irq_status(struct fsl_mc_io *mc_io, }int dpbp_get_attributes (struct fsl_mc_io *mc_io, +uint32_t cmd_flags,uint16_t token,struct dpbp_attr *attr) {
@@ -341,7 +385,8 @@ int dpbp_get_attributes(struct fsl_mc_io *mc_io,/* prepare command */ cmd.header =mc_encode_cmd_header (DPBP_CMDID_GET_ATTR , -MC_CMD_PRI_LOW , token); + cmd_flags, + token);/* send command to mc*/ err =mc_send_command (mc_io, &cmd);
@@ -353,6 +398,6 @@ int dpbp_get_attributes(struct fsl_mc_io *mc_io, attr->id = (int )mc_dec (cmd.params[0 ],32 ,32 ); attr->version.major = (uint16_t )mc_dec (cmd.params[1 ],0 ,16 ); attr->version.minor = (uint16_t )mc_dec (cmd.params[1 ],16 ,16 ); +return 0 ; } -EXPORT_SYMBOL (dpbp_get_attributes);
drivers/staging/fsl-mc/bus/dpmcp-cmd.h +1 -1
@@ -34,7 +34,7 @@/* DPMCP Version */ #define DPMCP_VER_MAJOR 2 -#define DPMCP_VER_MINOR 0 +#define DPMCP_VER_MINOR 1/* Command IDs */ #define DPMCP_CMDID_CLOSE 0x800
drivers/staging/fsl-mc/bus/dpmcp.c +76 -47
298 lines not on this page · raw message
drivers/staging/fsl-mc/bus/dpmcp.h +77 -46
286 lines not on this page · raw message
drivers/staging/fsl-mc/bus/dpmng.c +10 -4
@@ -34,14 +34,17 @@#include "../include/dpmng.h" #include "dpmng-cmd.h" -int mc_get_version (struct fsl_mc_io *mc_io,struct mc_version *mc_ver_info) +int mc_get_version (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +struct mc_version *mc_ver_info) {struct mc_command cmd = {0 };int err;/* prepare command */ cmd.header =mc_encode_cmd_header (DPMNG_CMDID_GET_VERSION , -MC_CMD_PRI_LOW ,0 ); + cmd_flags, +0 );/* send command to mc*/ err =mc_send_command (mc_io, &cmd);
@@ -56,14 +59,17 @@ int mc_get_version(struct fsl_mc_io *mc_io, struct mc_version *mc_ver_info)return 0 ; } -int dpmng_get_container_id (struct fsl_mc_io *mc_io,int *container_id) +int dpmng_get_container_id (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +int *container_id) {struct mc_command cmd = {0 };int err;/* prepare command */ cmd.header =mc_encode_cmd_header (DPMNG_CMDID_GET_CONT_ID , -MC_CMD_PRI_LOW ,0 ); + cmd_flags, +0 );/* send command to mc*/ err =mc_send_command (mc_io, &cmd);
drivers/staging/fsl-mc/bus/dprc-cmd.h +5 -2
@@ -41,7 +41,7 @@#define _FSL_DPRC_CMD_H/* DPRC Version */ -#define DPRC_VER_MAJOR 3 +#define DPRC_VER_MAJOR 4#define DPRC_VER_MINOR 0/* Command IDs */
@@ -72,12 +72,15 @@#define DPRC_CMDID_GET_RES_COUNT 0x15B#define DPRC_CMDID_GET_RES_IDS 0x15C#define DPRC_CMDID_GET_OBJ_REG 0x15E +#define DPRC_CMDID_SET_OBJ_IRQ 0x15F +#define DPRC_CMDID_GET_OBJ_IRQ 0x160 +#define DPRC_CMDID_SET_OBJ_LABEL 0x161 +#define DPRC_CMDID_GET_OBJ_DESC 0x162#define DPRC_CMDID_CONNECT 0x167#define DPRC_CMDID_DISCONNECT 0x168#define DPRC_CMDID_GET_POOL 0x169#define DPRC_CMDID_GET_POOL_COUNT 0x16A -#define DPRC_CMDID_GET_PORTAL_PADDR 0x16B#define DPRC_CMDID_GET_CONNECTION 0x16C
drivers/staging/fsl-mc/bus/dprc-driver.c +5 -3
@@ -262,6 +262,7 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev)struct dprc_obj_desc *child_obj_desc_array =NULL ; error =dprc_get_obj_count (mc_bus_dev->mc_io, +0 , mc_bus_dev->mc_handle, &num_child_objects);if (error <0 ) {
@@ -289,6 +290,7 @@ int dprc_scan_objects(struct fsl_mc_device *mc_bus_dev) &child_obj_desc_array[i]; error =dprc_get_obj (mc_bus_dev->mc_io, +0 , mc_bus_dev->mc_handle, i, obj_desc);if (error <0 ) {
@@ -399,7 +401,7 @@ static int dprc_probe(struct fsl_mc_device *mc_dev)return error; } - error =dprc_open (mc_dev->mc_io, mc_dev->obj_desc.id, + error =dprc_open (mc_dev->mc_io,0 , mc_dev->obj_desc.id, &mc_dev->mc_handle);if (error <0 ) {dev_err (&mc_dev->dev,"dprc_open() failed: %d\n" , error);
@@ -419,7 +421,7 @@ static int dprc_probe(struct fsl_mc_device *mc_dev)return 0 ; error_cleanup_open: - (void )dprc_close (mc_dev->mc_io, mc_dev->mc_handle); + (void )dprc_close (mc_dev->mc_io,0 , mc_dev->mc_handle); error_cleanup_mc_io:fsl_destroy_mc_io (mc_dev->mc_io);
@@ -447,7 +449,7 @@ static int dprc_remove(struct fsl_mc_device *mc_dev)device_for_each_child (&mc_dev->dev,NULL , __fsl_mc_device_remove);dprc_cleanup_all_resource_pools (mc_dev); - error =dprc_close (mc_dev->mc_io, mc_dev->mc_handle); + error =dprc_close (mc_dev->mc_io,0 , mc_dev->mc_handle);if (error <0 )dev_err (&mc_dev->dev,"dprc_close() failed: %d\n" , error);
drivers/staging/fsl-mc/bus/dprc.c +383 -81
887 lines not on this page · raw message
drivers/staging/fsl-mc/bus/mc-allocator.c +3 -3
@@ -373,19 +373,19 @@ int fsl_mc_portal_reset(struct fsl_mc_io *mc_io)if (WARN_ON (!mc_dev))return -EINVAL ; - error =dpmcp_open (mc_io, mc_dev->obj_desc.id, &token); + error =dpmcp_open (mc_io,0 , mc_dev->obj_desc.id, &token);if (error <0 ) {dev_err (&mc_dev->dev,"dpmcp_open() failed: %d\n" , error);return error; } - error =dpmcp_reset (mc_io, token); + error =dpmcp_reset (mc_io,0 , token);if (error <0 ) {dev_err (&mc_dev->dev,"dpmcp_reset() failed: %d\n" , error);return error; } - error =dpmcp_close (mc_io, token); + error =dpmcp_close (mc_io,0 , token);if (error <0 ) {dev_err (&mc_dev->dev,"dpmcp_close() failed: %d\n" , error);return error;
drivers/staging/fsl-mc/bus/mc-bus.c +38 -16
131 lines not on this page · raw message
drivers/staging/fsl-mc/include/dpbp-cmd.h +1 -1
@@ -34,7 +34,7 @@/* DPBP Version */ #define DPBP_VER_MAJOR 2 -#define DPBP_VER_MINOR 0 +#define DPBP_VER_MINOR 1/* Command IDs */ #define DPBP_CMDID_CLOSE 0x800
drivers/staging/fsl-mc/include/dpbp.h +68 -23
278 lines not on this page · raw message
drivers/staging/fsl-mc/include/dpcon-cmd.h +1 -1
@@ -34,7 +34,7 @@/* DPCON Version */ #define DPCON_VER_MAJOR 2 -#define DPCON_VER_MINOR 0 +#define DPCON_VER_MINOR 1/* Command IDs */ #define DPCON_CMDID_CLOSE 0x800
drivers/staging/fsl-mc/include/dpmng.h +10 -4
@@ -41,11 +41,11 @@ struct fsl_mc_io;/** * Management Complex firmware version information */ -#define MC_VER_MAJOR 6 +#define MC_VER_MAJOR 8#define MC_VER_MINOR 0/** -* struct mc_versoin +* struct mc_version * @major: Major version number: incremented on API compatibility changes * @minor: Minor version number: incremented on API additions (that are * backward compatible); reset when major version is incremented
@@ -62,19 +62,25 @@ struct mc_version {* mc_get_version() - Retrieves the Management Complex firmware * version information * @mc_io: Pointer to opaque I/O object +* @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' * @mc_ver_info: Returned version information structure * * Return: '0' on Success; Error code otherwise. */ -int mc_get_version (struct fsl_mc_io *mc_io,struct mc_version *mc_ver_info); +int mc_get_version (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +struct mc_version *mc_ver_info);/** * dpmng_get_container_id() - Get container ID associated with a given portal. * @mc_io: Pointer to MC portal's I/O object +* @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' * @container_id: Requested container ID * * Return: '0' on Success; Error code otherwise. */ -int dpmng_get_container_id (struct fsl_mc_io *mc_io,int *container_id); +int dpmng_get_container_id (struct fsl_mc_io *mc_io, +uint32_t cmd_flags, +int *container_id);#endif /* __FSL_DPMNG_H */
drivers/staging/fsl-mc/include/dprc.h +250 -63
578 lines not on this page · raw message
drivers/staging/fsl-mc/include/mc-cmd.h +22 -6
Lines of this file are not shown. View the raw message.
drivers/staging/fsl-mc/include/mc-private.h +9 -6
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.3.3
Part of the diff is not shown here. View the raw message.
Greg KH
maintainerQuoted 32 lines · J. German Rivera
The DPAA2 management complex has a versioned binary interface that has to be kept in sync with the DPAA2 drivers. This patch uprevs the APIs that build MC commands and parse results. This uprev is needed to support object interrupts.
MC binary interface changes
-overall version from 6.0 to 8.0
-dprc version from 3.0 to 4.0
-dpbp and dpmcp versions from 2.0 to 2.1
-new dprc commands -- set/get obj irq, set obj label,
get obj descriptor
-removed commands -- get portal paddr
-object regions are reported as region offsets not physical
addressesbuild/parse API changes
-flags arg is added to all APIs for future extensibility,
hardcoded priority bit is now a flag
-IRQ-related args are consolidated into anirq_cfgstructSigned-off-by J. German Rivera <[email protected]>--- drivers/staging/fsl-mc/bus/dpbp.c | 141 ++++++--- drivers/staging/fsl-mc/bus/dpmcp-cmd.h | 2 +- drivers/staging/fsl-mc/bus/dpmcp.c | 123 +++++--- drivers/staging/fsl-mc/bus/dpmcp.h | 123 +++++--- drivers/staging/fsl-mc/bus/dpmng.c | 14 +- drivers/staging/fsl-mc/bus/dprc-cmd.h | 7 +- drivers/staging/fsl-mc/bus/dprc-driver.c | 8 +- drivers/staging/fsl-mc/bus/dprc.c | 464 +++++++++++++++++++++++----- drivers/staging/fsl-mc/bus/mc-allocator.c | 6 +- drivers/staging/fsl-mc/bus/mc-bus.c | 54 +++-
Quoted 8 lines
drivers/staging/fsl-mc/include/dpbp-cmd.h | 2 +- drivers/staging/fsl-mc/include/dpbp.h | 91 ++++-- drivers/staging/fsl-mc/include/dpcon-cmd.h | 2 +- drivers/staging/fsl-mc/include/dpmng.h | 14 +- drivers/staging/fsl-mc/include/dprc.h | 313 +++++++++++++++---- drivers/staging/fsl-mc/include/mc-cmd.h | 28 +- drivers/staging/fsl-mc/include/mc-private.h | 15 +- 17 files changed, 1052 insertions(+), 355 deletions(-)
This patch does many things all at once. Please break it up into different logical patches, each one only doing one thing, and send it as a series so that it can be properly reviewed and applied to the tree.
thanks,
greg k-h