net/ice: fix GTPU down/uplink and extension conflict
[dpdk.git] / drivers / bus / fslmc / mc / dpci.c
index 95edae9..7e31327 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
  *
  * Copyright 2013-2016 Freescale Semiconductor Inc.
+ * Copyright 2017-2019 NXP
  *
  */
 #include <fsl_mc_sys.h>
@@ -301,81 +302,6 @@ int dpci_get_attributes(struct fsl_mc_io *mc_io,
        return 0;
 }
 
-/**
- * dpci_get_peer_attributes() - Retrieve peer DPCI attributes.
- * @mc_io:     Pointer to MC portal's I/O object
- * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_'
- * @token:     Token of DPCI object
- * @attr:      Returned peer attributes
- *
- * Return:     '0' on Success; Error code otherwise.
- */
-int dpci_get_peer_attributes(struct fsl_mc_io *mc_io,
-                            uint32_t cmd_flags,
-                            uint16_t token,
-                            struct dpci_peer_attr *attr)
-{
-       struct dpci_rsp_get_peer_attr *rsp_params;
-       struct mc_command cmd = { 0 };
-       int err;
-
-       /* prepare command */
-       cmd.header = mc_encode_cmd_header(DPCI_CMDID_GET_PEER_ATTR,
-                                         cmd_flags,
-                                         token);
-
-       /* send command to mc*/
-       err = mc_send_command(mc_io, &cmd);
-       if (err)
-               return err;
-
-       /* retrieve response parameters */
-       rsp_params = (struct dpci_rsp_get_peer_attr *)cmd.params;
-       attr->peer_id = le32_to_cpu(rsp_params->id);
-       attr->num_of_priorities = rsp_params->num_of_priorities;
-
-       return 0;
-}
-
-/**
- * dpci_get_link_state() - Retrieve the DPCI link state.
- * @mc_io:     Pointer to MC portal's I/O object
- * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_'
- * @token:     Token of DPCI object
- * @up:                Returned link state; returns '1' if link is up, '0' otherwise
- *
- * DPCI can be connected to another DPCI, together they
- * create a 'link'. In order to use the DPCI Tx and Rx queues,
- * both objects must be enabled.
- *
- * Return:     '0' on Success; Error code otherwise.
- */
-int dpci_get_link_state(struct fsl_mc_io *mc_io,
-                       uint32_t cmd_flags,
-                       uint16_t token,
-                       int *up)
-{
-       struct dpci_rsp_get_link_state *rsp_params;
-       struct mc_command cmd = { 0 };
-       int err;
-
-       /* prepare command */
-       cmd.header = mc_encode_cmd_header(DPCI_CMDID_GET_LINK_STATE,
-                                         cmd_flags,
-                                         token);
-
-       /* send command to mc*/
-       err = mc_send_command(mc_io, &cmd);
-       if (err)
-               return err;
-
-       /* retrieve response parameters */
-       rsp_params = (struct dpci_rsp_get_link_state *)cmd.params;
-       *up = dpci_get_field(rsp_params->up, UP);
-
-       return 0;
-}
-
 /**
  * dpci_set_rx_queue() - Set Rx queue configuration
  * @mc_io:     Pointer to MC portal's I/O object