1 /**
2 * @file csl_mdio.h
3 *
4 * @brief
5 * Header file for functional layer of CSL MDIO.
6 *
7 * It contains the various enumerations, structure definitions and function
8 * declarations
9 *
10 * \par
11 * ============================================================================
12 * @n (C) Copyright 2009-2013, Texas Instruments, Inc.
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 *
18 * Redistributions of source code must retain the above copyright
19 * notice, this list of conditions and the following disclaimer.
20 *
21 * Redistributions in binary form must reproduce the above copyright
22 * notice, this list of conditions and the following disclaimer in the
23 * documentation and/or other materials provided with the
24 * distribution.
25 *
26 * Neither the name of Texas Instruments Incorporated nor the names of
27 * its contributors may be used to endorse or promote products derived
28 * from this software without specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 *
42 */
44 /** ============================================================================
45 *
46 * @defgroup CSL_MDIO_API MDIO
47 *
48 * @section Introduction
49 *
50 * @subsection xxx Overview
51 *
52 * @subsection References
53 * -# Ethernet Media Access Controller User Guide
54 * ============================================================================
55 */
57 #ifndef CSL_MDIO_TOP_H
58 #define CSL_MDIO_TOP_H
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
64 #include <ti/csl/soc.h>
65 #include <ti/csl/csl.h>
66 #include <ti/csl/cslr_mdio.h>
67 #include <ti/csl/csl_mdio_def.h>
69 #if defined(SOC_K2K)
71 #include <ti/csl/src/ip/mdio/V0/csl_mdio.h>
73 #elif defined(SOC_K2H)
75 #include <ti/csl/src/ip/mdio/V0/csl_mdio.h>
77 #elif defined(SOC_K2E)
79 #include <ti/csl/src/ip/mdio/V1/csl_mdio.h>
81 #elif defined(SOC_K2L)
83 #include <ti/csl/src/ip/mdio/V1/csl_mdio.h>
85 #elif defined(SOC_K2G)
87 #include <ti/csl/src/ip/mdio/V1/csl_mdio.h>
89 #elif defined(SOC_C6657)
91 #include <ti/csl/src/ip/mdio/V3/csl_mdio.h>
93 #elif defined(SOC_AM572x)||defined(SOC_AM571x)
95 #include <ti/csl/src/ip/mdio/V2/csl_mdio.h>
97 #endif /* DEVICE_XXXXX */
101 #ifdef __cplusplus
102 }
103 #endif
105 #endif /* _CSL_MDIO_H */