net: stmmac: configure mtl rx and tx algorithms
This patch adds the RX and TX scheduling algorithms programming. It introduces the multiple queues configuration function (stmmac_mtl_configuration) in stmmac_main. Signed-off-by: Joao Pinto <jpinto@synopsys.com> Signed-off-by: David S. Miller <davem@davemloft.net>
此提交包含在:
@@ -164,6 +164,16 @@ enum power_event {
|
||||
#define GMAC_HI_REG_AE BIT(31)
|
||||
|
||||
/* MTL registers */
|
||||
#define MTL_OPERATION_MODE 0x00000c00
|
||||
#define MTL_OPERATION_SCHALG_MASK GENMASK(6, 5)
|
||||
#define MTL_OPERATION_SCHALG_WRR (0x0 << 5)
|
||||
#define MTL_OPERATION_SCHALG_WFQ (0x1 << 5)
|
||||
#define MTL_OPERATION_SCHALG_DWRR (0x2 << 5)
|
||||
#define MTL_OPERATION_SCHALG_SP (0x3 << 5)
|
||||
#define MTL_OPERATION_RAA BIT(2)
|
||||
#define MTL_OPERATION_RAA_SP (0x0 << 2)
|
||||
#define MTL_OPERATION_RAA_WSP (0x1 << 2)
|
||||
|
||||
#define MTL_INT_STATUS 0x00000c20
|
||||
#define MTL_INT_Q0 BIT(0)
|
||||
|
||||
|
新增問題並參考
封鎖使用者