diff --git a/include/osi_core.h b/include/osi_core.h index 2bf6fe5..3d2d094 100644 --- a/include/osi_core.h +++ b/include/osi_core.h @@ -78,7 +78,6 @@ typedef my_lint_64 nvel64_t; #define OSI_CMD_PTP_RXQ_ROUTE 35U #define OSI_CMD_CONFIG_RSS 37U #define OSI_CMD_CONFIG_FW_ERR 29U -#define OSI_CMD_START_MAC 5U #define OSI_CMD_SET_MODE 16U #define OSI_CMD_POLL_FOR_MAC_RST 4U #define OSI_CMD_GET_MAC_VER 10U @@ -232,7 +231,6 @@ typedef my_lint_64 nvel64_t; * @{ */ #define OSI_CMD_L3L4_FILTER 3U -#define OSI_CMD_STOP_MAC 6U #define OSI_CMD_COMMON_ISR 7U #define OSI_CMD_PAD_CALIBRATION 8U #define OSI_CMD_READ_MMC 9U @@ -1582,10 +1580,6 @@ nve32_t osi_init_core_ops(struct osi_core_priv_data *const osi_core); * arg1_u32 - CSR (AXI CBB) clock rate. * - OSI_CMD_POLL_FOR_MAC_RST * Poll Software reset bit in MAC HW - * - OSI_CMD_START_MAC - * Start MAC Tx/Rx engine - * - OSI_CMD_STOP_MAC - * Stop MAC Tx/Rx engine * - OSI_CMD_COMMON_ISR * Common ISR handler * - OSI_CMD_PAD_CALIBRATION diff --git a/osi/core/ivc_core.c b/osi/core/ivc_core.c index 5d77efe..7b4a2a5 100644 --- a/osi/core/ivc_core.c +++ b/osi/core/ivc_core.c @@ -123,8 +123,7 @@ static void ivc_core_deinit(struct osi_core_priv_data *const osi_core) osi_memset(&msg, 0, sizeof(msg)); - msg.cmd = handle_ioctl; - msg.data.ioctl_data.cmd = OSI_CMD_STOP_MAC; + msg.cmd = core_deinit; ret = osi_core->osd_ops.ivc_send(osi_core, &msg, sizeof(msg)); if (ret < 0) { diff --git a/osi/core/osi_hal.c b/osi/core/osi_hal.c index 211988a..cc4eace 100644 --- a/osi/core/osi_hal.c +++ b/osi/core/osi_hal.c @@ -2157,10 +2157,6 @@ static void store_l2_filter(struct osi_core_priv_data *osi_core, * Restore backup of MAC MMIO address space * - OSI_CMD_POLL_FOR_MAC_RST * Poll Software reset bit in MAC HW - * - OSI_CMD_START_MAC - * Start MAC Tx/Rx engine - * - OSI_CMD_STOP_MAC - * Stop MAC Tx/Rx engine * - OSI_CMD_COMMON_ISR * Common ISR handler * - OSI_CMD_PAD_CALIBRATION @@ -2413,15 +2409,6 @@ static nve32_t osi_hal_handle_ioctl(struct osi_core_priv_data *osi_core, ret = hw_poll_for_swr(osi_core); break; - case OSI_CMD_START_MAC: - hw_start_mac(osi_core); - ret = 0; - break; - - case OSI_CMD_STOP_MAC: - hw_stop_mac(osi_core); - ret = 0; - break; case OSI_CMD_GET_MAC_VER: ret = osi_get_mac_version(osi_core, &data->arg1_u32); break;