csl_emac.h 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*
  2. * Copyright (C) 2002-2015 Texas Instruments Incorporated - http://www.ti.com/
  3. *
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. *
  12. * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the
  15. * distribution.
  16. *
  17. * Neither the name of Texas Instruments Incorporated nor the names of
  18. * its contributors may be used to endorse or promote products derived
  19. * from this software without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. *
  33. */
  34. /** ============================================================================
  35. * @file csl_emac.h
  36. *
  37. * PATH: \$(CSLPATH)\\inc
  38. *
  39. * @brief EMAC CSL Implementation on DSP side
  40. *
  41. * NOTE:
  42. * When used in an multitasking environment, no EMAC function may be
  43. * called while another EMAC function is operating on the same device
  44. * handle in another thread. It is the responsibility of the application
  45. * to assure adherence to this restriction.
  46. *
  47. */
  48. /* =============================================================================
  49. * Revision History
  50. * ===============
  51. * 07-Oct-05 XXX File created
  52. * 14-Mar-06 PSK Added multi core support
  53. * 22-May-07 PSK Removed multi core support to support new SoC
  54. * 16-July-2008 Update for Doxygen
  55. * =============================================================================
  56. */
  57. /** @defgroup CSL_EMAC_API EMAC
  58. *
  59. * @section Introduction
  60. *
  61. * @subsection xxx Overview
  62. * The Ethernet Media Access Controller (EMAC) module provides an interface
  63. * between the C6457 DSP core processor and the networked community. The EMAC
  64. * supports 10Base-T (10 Mbits/second [Mbps]), and 100BaseTX (100 Mbps), in
  65. * either half- or full-duplex mode, and 1000BaseT (1000 Mbps) in full-duplex
  66. * mode, with hardware flow control and quality-of-service (QOS) support. There
  67. * are two ports of EMAC on C6457 DSP. The EMAC module conforms to the IEEE
  68. * 802.3-2002 standard, describing the "Carrier Sense Multiple Access with
  69. * Collision Detection (CSMA/CD) Access Method and Physical Layer"
  70. * specifications. The IEEE 802.3 standard has also been adopted by ISO/IEC and
  71. * re-designated as ISO/IEC 8802-3:2000(E). Deviation from this standard, the
  72. * EMAC module does not use the Transmit Coding Error signal MTXER. Instead of
  73. * driving the error pin when an underflow condition occurs on a transmitted
  74. * frame, the EMAC will intentionally generate an incorrect checksum by
  75. * inverting the frame CRC, so that the transmitted frame will be detected as
  76. * an error by the network.
  77. *
  78. * The EMAC control module is the main interface between the device core
  79. * processor, the MDIO module, and the EMAC module. The EMAC control module
  80. * contains the necessary components to allow the EMAC to make efficient use of
  81. * device memory, plus it controls device interrupts. The EMAC control module
  82. * incorporates 8K-bytes of internal RAM to hold EMAC buffer descriptors.
  83. *
  84. * @subsection References
  85. * -# EMAC/MDIO User's Guide SPRUFC4.pdf (May 2008)
  86. *
  87. * @subsection Assumptions
  88. * The abbreviations EMAC, emac and Emac have been used throughout this
  89. * document to refer to Ethernet Media Access Controller and MDIO or mdio
  90. * or Mdio refer to Management Data Input/Output.
  91. */
  92. #ifndef CSL_EMAC_TOP_H
  93. #define CSL_EMAC_TOP_H
  94. #ifdef __cplusplus
  95. extern "C" {
  96. #endif
  97. #include <ti/csl/csl.h>
  98. #include <ti/csl/tistdtypes.h>
  99. #if defined (SOC_C6657) || defined (SOC_OMAPL137) || defined (SOC_OMAPL138)
  100. #include <ti/csl/src/ip/emac/V3/csl_emac.h>
  101. #endif
  102. #ifdef __cplusplus
  103. }
  104. #endif
  105. #endif