sxgbe_xpcs.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* 10G controller driver for Samsung SoCs
  2. *
  3. * Copyright (C) 2013 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  5. *
  6. * Author: Byungho An <bh74.an@samsung.com>
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #ifndef __SXGBE_XPCS_H__
  13. #define __SXGBE_XPCS_H__
  14. /* XPCS Registers */
  15. #define XPCS_OFFSET 0x1A060000
  16. #define SR_PCS_MMD_CONTROL1 0x030000
  17. #define SR_PCS_CONTROL2 0x030007
  18. #define VR_PCS_MMD_XAUI_MODE_CONTROL 0x038004
  19. #define VR_PCS_MMD_DIGITAL_STATUS 0x038010
  20. #define SR_MII_MMD_CONTROL 0x1F0000
  21. #define SR_MII_MMD_AN_ADV 0x1F0004
  22. #define SR_MII_MMD_AN_LINK_PARTNER_BA 0x1F0005
  23. #define VR_MII_MMD_AN_CONTROL 0x1F8001
  24. #define VR_MII_MMD_AN_INT_STATUS 0x1F8002
  25. #define XPCS_QSEQ_STATE_STABLE 0x10
  26. #define XPCS_QSEQ_STATE_MPLLOFF 0x1c
  27. #define XPCS_TYPE_SEL_R 0x00
  28. #define XPCS_TYPE_SEL_X 0x01
  29. #define XPCS_TYPE_SEL_W 0x02
  30. #define XPCS_XAUI_MODE 0x00
  31. #define XPCS_RXAUI_MODE 0x01
  32. int sxgbe_xpcs_init(struct net_device *ndev);
  33. int sxgbe_xpcs_init_1G(struct net_device *ndev);
  34. #endif /* __SXGBE_XPCS_H__ */