enet.h 960 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Applied Micro X-Gene SoC Ethernet v2 Driver
  4. *
  5. * Copyright (c) 2017, Applied Micro Circuits Corporation
  6. * Author(s): Iyappan Subramanian <[email protected]>
  7. * Keyur Chudgar <[email protected]>
  8. */
  9. #ifndef __XGENE_ENET_V2_ENET_H__
  10. #define __XGENE_ENET_V2_ENET_H__
  11. #define ENET_CLKEN 0xc008
  12. #define ENET_SRST 0xc000
  13. #define ENET_SHIM 0xc010
  14. #define CFG_MEM_RAM_SHUTDOWN 0xd070
  15. #define BLOCK_MEM_RDY 0xd074
  16. #define MEM_RDY 0xffffffff
  17. #define DEVM_ARAUX_COH BIT(19)
  18. #define DEVM_AWAUX_COH BIT(3)
  19. #define CFG_FORCE_LINK_STATUS_EN 0x229c
  20. #define FORCE_LINK_STATUS 0x22a0
  21. #define CFG_LINK_AGGR_RESUME 0x27c8
  22. #define RX_DV_GATE_REG 0x2dfc
  23. void xge_wr_csr(struct xge_pdata *pdata, u32 offset, u32 val);
  24. u32 xge_rd_csr(struct xge_pdata *pdata, u32 offset);
  25. int xge_port_reset(struct net_device *ndev);
  26. void xge_port_init(struct net_device *ndev);
  27. #endif /* __XGENE_ENET_V2_ENET__H__ */