xgene_enet_ring2.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* Applied Micro X-Gene SoC Ethernet Driver
  2. *
  3. * Copyright (c) 2015, Applied Micro Circuits Corporation
  4. * Author: Iyappan Subramanian <isubramanian@apm.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef __XGENE_ENET_RING2_H__
  20. #define __XGENE_ENET_RING2_H__
  21. #include "xgene_enet_main.h"
  22. #define X2_NUM_RING_CONFIG 6
  23. #define INTR_MBOX_SIZE 1024
  24. #define CSR_VMID0_INTR_MBOX 0x0270
  25. #define INTR_CLEAR BIT(23)
  26. #define X2_MSG_AM_POS 10
  27. #define X2_QBASE_AM_POS 11
  28. #define X2_INTLINE_POS 24
  29. #define X2_INTLINE_LEN 5
  30. #define X2_CFGCRID_POS 29
  31. #define X2_CFGCRID_LEN 3
  32. #define X2_SELTHRSH_POS 7
  33. #define X2_SELTHRSH_LEN 3
  34. #define X2_RINGTYPE_POS 23
  35. #define X2_RINGTYPE_LEN 2
  36. #define X2_DEQINTEN_POS 29
  37. #define X2_RECOMTIMEOUT_POS 0
  38. #define X2_RECOMTIMEOUT_LEN 7
  39. #define X2_NUMMSGSINQ_POS 0
  40. #define X2_NUMMSGSINQ_LEN 17
  41. extern struct xgene_ring_ops xgene_ring2_ops;
  42. #endif /* __XGENE_ENET_RING2_H__ */