hw_emac_ctrl.h 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /**
  2. * \file hw_emac_ctrl.h
  3. *
  4. * \brief EMAC ctrl register definitions
  5. */
  6. /*
  7. * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/
  8. */
  9. /*
  10. * Redistribution and use in source and binary forms, with or without
  11. * modification, are permitted provided that the following conditions
  12. * are met:
  13. *
  14. * Redistributions of source code must retain the above copyright
  15. * notice, this list of conditions and the following disclaimer.
  16. *
  17. * Redistributions in binary form must reproduce the above copyright
  18. * notice, this list of conditions and the following disclaimer in the
  19. * documentation and/or other materials provided with the
  20. * distribution.
  21. *
  22. * Neither the name of Texas Instruments Incorporated nor the names of
  23. * its contributors may be used to endorse or promote products derived
  24. * from this software without specific prior written permission.
  25. *
  26. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  27. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  28. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  29. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  30. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  31. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  32. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  33. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  34. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  35. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  36. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  37. *
  38. */
  39. #ifndef _HW_EMAC_CTRL_H_
  40. #define _HW_EMAC_CTRL_H_
  41. #ifdef __cplusplus
  42. extern "C" {
  43. #endif
  44. #define EMAC_CTRL_REVID (0x0u)
  45. #define EMAC_CTRL_SOFTRESET (0x4u)
  46. #define EMAC_CTRL_INTCONTROL (0xCu)
  47. #define EMAC_CTRL_C0RXTHRESHEN (0x10u)
  48. #define EMAC_CTRL_CnRXEN(n) (0x14u + (n << 4))
  49. #define EMAC_CTRL_CnTXEN(n) (0x18u + (n << 4))
  50. #define EMAC_CTRL_CnMISCEN(n) (0x1Cu + (n << 4))
  51. #define EMAC_CTRL_CnRXTHRESHEN(n) (0x20u + (n << 4))
  52. #define EMAC_CTRL_C0RXTHRESHSTAT (0x40u)
  53. #define EMAC_CTRL_C0RXSTAT (0x44u)
  54. #define EMAC_CTRL_C0TXSTAT (0x48u)
  55. #define EMAC_CTRL_C0MISCSTAT (0x4Cu)
  56. #define EMAC_CTRL_C1RXTHRESHSTAT (0x50u)
  57. #define EMAC_CTRL_C1RXSTAT (0x54u)
  58. #define EMAC_CTRL_C1TXSTAT (0x58u)
  59. #define EMAC_CTRL_C1MISCSTAT (0x5Cu)
  60. #define EMAC_CTRL_C2RXTHRESHSTAT (0x60u)
  61. #define EMAC_CTRL_C2RXSTAT (0x64u)
  62. #define EMAC_CTRL_C2TXSTAT (0x68u)
  63. #define EMAC_CTRL_C2MISCSTAT (0x6Cu)
  64. #define EMAC_CTRL_C0RXIMAX (0x70u)
  65. #define EMAC_CTRL_C0TXIMAX (0x74u)
  66. #define EMAC_CTRL_C1RXIMAX (0x78u)
  67. #define EMAC_CTRL_C1TXIMAX (0x7Cu)
  68. #define EMAC_CTRL_C2RXIMAX (0x80u)
  69. #define EMAC_CTRL_C2TXIMAX (0x84u)
  70. /**************************************************************************\
  71. * Field Definition Macros
  72. \**************************************************************************/
  73. #ifdef __cplusplus
  74. }
  75. #endif
  76. #endif