Lines Matching +full:enetc +full:- +full:mdio

1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
2 /* Copyright 2017-2019 NXP */
11 /* ENETC device IDs */
16 /* ENETC register block BAR */
32 /* cache attribute registers for transactions initiated by ENETC */
47 /* VF-PF Message passing */
110 /** SI BDR sub-blocks, n = 0..7 */
393 /* ENETC register accessors */
395 /* MDIO issue workaround (on LS1028A) -
396 * Due to a hardware issue, an access to MDIO registers
397 * that is concurrent with other ENETC register accesses
398 * may lead to the MDIO access being dropped or corrupted.
399 * To protect the MDIO accesses a readers-writers locking
400 * scheme is used, where the MDIO register accesses are
402 * the remaining ENETC registers are accessed under read
403 * locks since they only compete with MDIO accesses.
410 * group together multiple non-MDIO register accesses to
445 /* internal helpers for the MDIO w/a */
528 #define enetc_rd(hw, off) enetc_rd_reg((hw)->reg + (off))
529 #define enetc_wr(hw, off, val) enetc_wr_reg((hw)->reg + (off), val)
530 #define enetc_rd_hot(hw, off) enetc_rd_reg_hot((hw)->reg + (off))
531 #define enetc_wr_hot(hw, off, val) enetc_wr_reg_hot((hw)->reg + (off), val)
532 #define enetc_rd64(hw, off) _enetc_rd_reg64_wa((hw)->reg + (off))
533 /* port register accessors - PF only */
534 #define enetc_port_rd(hw, off) enetc_rd_reg((hw)->port + (off))
535 #define enetc_port_wr(hw, off, val) enetc_wr_reg((hw)->port + (off), val)
536 #define enetc_port_rd_mdio(hw, off) _enetc_rd_mdio_reg_wa((hw)->port + (off))
538 (hw)->port + (off), val)
539 /* global register accessors - PF only */
540 #define enetc_global_rd(hw, off) enetc_rd_reg((hw)->global + (off))
541 #define enetc_global_wr(hw, off, val) enetc_wr_reg((hw)->global + (off), val)
560 __le16 hdr_len; /* For LSO, ENETC 4.1 and later */
585 __le16 lso_sg_size; /* For ENETC 4.1 and later */
586 __le16 frm_len_ext; /* For ENETC 4.1 and later */
594 __le16 lso_err_count; /* For ENETC 4.1 and later */
601 ENETC_TXBD_FLAGS_L4CS = BIT(0), /* For ENETC 4.1 and later */
603 ENETC_TXBD_FLAGS_LSO = BIT(1), /* For ENETC 4.1 and later */
605 ENETC_TXBD_FLAGS_CSUM_LSO = BIT(3), /* For ENETC 4.1 and later */
710 *(u32 *)addr = __raw_readl(hw->reg + ENETC_SIPMAR0); in enetc_load_primary_mac_addr()
711 *(u16 *)(addr + 4) = __raw_readw(hw->reg + ENETC_SIPMAR1); in enetc_load_primary_mac_addr()
727 /* VSI-PSI command message types */
734 /* VSI-PSI command action types */
740 /* PSI-VSI command header format */
789 BDCR_CMD_MAX_LEN = __BDCR_CMD_MAX_LEN - 1,