nvethernetrm: add support for MGBE initialization

Adds MAC CORE and DMA initialization support for
MGBE MAC Controller.

Bug 200548572

Change-Id: I6796229852b47ff0748a848a6dbe9addab6ab74f
Signed-off-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2250401
This commit is contained in:
Bhadram Varka
2019-09-16 13:53:44 +05:30
parent 2f4dfb0594
commit 731abcdc1e
17 changed files with 1803 additions and 58 deletions

View File

@@ -669,11 +669,11 @@ struct osi_core_priv_data {
/** Number of MTL queues enabled in MAC */
nveu32_t num_mtl_queues;
/** Array of MTL queues */
nveu32_t mtl_queues[OSI_EQOS_MAX_NUM_CHANS];
nveu32_t mtl_queues[OSI_MGBE_MAX_NUM_CHANS];
/** List of MTL Rx queue mode that need to be enabled */
nveu32_t rxq_ctrl[OSI_EQOS_MAX_NUM_CHANS];
nveu32_t rxq_ctrl[OSI_MGBE_MAX_NUM_CHANS];
/** Rx MTl Queue mapping based on User Priority field */
nveu32_t rxq_prio[OSI_EQOS_MAX_NUM_CHANS];
nveu32_t rxq_prio[OSI_MGBE_MAX_NUM_CHANS];
/** MAC HW type EQOS based on DT compatible */
nveu32_t mac;
/** MAC version */