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

1 /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) */
2 /* Copyright 2017-2019 NXP */
9 /* ENETC device IDs */
14 /* ENETC register block BAR */
31 /* cache attribute registers for transactions initiated by ENETC */
46 /* VF-PF Message passing */
109 /** SI BDR sub-blocks, n = 0..7 */
385 /* ENETC register accessors */
387 /* MDIO issue workaround (on LS1028A) -
388 * Due to a hardware issue, an access to MDIO registers
389 * that is concurrent with other ENETC register accesses
390 * may lead to the MDIO access being dropped or corrupted.
391 * To protect the MDIO accesses a readers-writers locking
392 * scheme is used, where the MDIO register accesses are
394 * the remaining ENETC registers are accessed under read
395 * locks since they only compete with MDIO accesses.
400 * group together multiple non-MDIO register accesses to
431 /* internal helpers for the MDIO w/a */
506 #define enetc_rd(hw, off) enetc_rd_reg((hw)->reg + (off))
507 #define enetc_wr(hw, off, val) enetc_wr_reg((hw)->reg + (off), val)
508 #define enetc_rd_hot(hw, off) enetc_rd_reg_hot((hw)->reg + (off))
509 #define enetc_wr_hot(hw, off, val) enetc_wr_reg_hot((hw)->reg + (off), val)
510 #define enetc_rd64(hw, off) _enetc_rd_reg64_wa((hw)->reg + (off))
511 /* port register accessors - PF only */
512 #define enetc_port_rd(hw, off) enetc_rd_reg((hw)->port + (off))
513 #define enetc_port_wr(hw, off, val) enetc_wr_reg((hw)->port + (off), val)
514 #define enetc_port_rd_mdio(hw, off) _enetc_rd_mdio_reg_wa((hw)->port + (off))
516 (hw)->port + (off), val)
517 /* global register accessors - PF only */
518 #define enetc_global_rd(hw, off) enetc_rd_reg((hw)->global + (off))
519 #define enetc_global_wr(hw, off, val) enetc_wr_reg((hw)->global + (off), val)
670 *(u32 *)addr = __raw_readl(hw->reg + ENETC_SIPMAR0); in enetc_load_primary_mac_addr()
671 *(u16 *)(addr + 4) = __raw_readw(hw->reg + ENETC_SIPMAR1); in enetc_load_primary_mac_addr()
687 /* VSI-PSI command message types */
694 /* VSI-PSI command action types */
700 /* PSI-VSI command header format */
749 BDCR_CMD_MAX_LEN = __BDCR_CMD_MAX_LEN - 1,