AM263x MCU+ SDK  10.01.00
dp83826.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Texas Instruments Incorporated 2020
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
49 #ifndef dp83826_H_
50 #define dp83826_H_
51 
52 /* ========================================================================== */
53 /* Include Files */
54 /* ========================================================================== */
55 
56 #include <stdint.h>
57 
58 #include "phy_common.h"
59 #include "port.h"
60 
61 #ifdef __cplusplus
62 extern "C" {
63 #endif
64 
65 /* ========================================================================== */
66 /* Macros */
67 /* ========================================================================== */
68 
69 /* None */
70 
71 /* ========================================================================== */
72 /* Structures and Enums */
73 /* ========================================================================== */
74 
78 typedef struct Dp83826_Cfg_s
79 {
80  /* No extended config parameters at the moment */
81 } Dp83826_Cfg;
82 
83 /* ========================================================================== */
84 /* Global Variables Declarations */
85 /* ========================================================================== */
86 
87 /* None */
88 
89 /* ========================================================================== */
90 /* Function Declarations */
91 /* ========================================================================== */
92 
101 
103  uint8_t phyAddr,
104  Phy_RegAccessCb_t* pRegAccessCb);
105 
107  const void *pVersion);
108 
110  Phy_Mii mii);
111 
113  const void *pExtCfg,
114  const uint32_t extCfgSize,
115  Phy_Mii mii,
116  bool loopbackEn);
117 
119 
120 /* ========================================================================== */
121 /* Deprecated Function Declarations */
122 /* ========================================================================== */
123 
124 /* None */
125 
126 /* ========================================================================== */
127 /* Static Function Definitions */
128 /* ========================================================================== */
129 
130 /* None */
131 
132 #ifdef __cplusplus
133 }
134 #endif
135 
136 #endif /* dp83826_H_ */
137 
Phy_RegAccessCb_t
Definition: phy_common.h:217
EthPhyDrv_Handle
uint8_t EthPhyDrv_Handle[ETHPHYDRV_MAX_OBJ_SIZE]
Definition: phy_common.h:236
Dp83826_isPhyDevSupported
bool Dp83826_isPhyDevSupported(EthPhyDrv_Handle hPhy, const void *pVersion)
Dp83826_isMacModeSupported
bool Dp83826_isMacModeSupported(EthPhyDrv_Handle hPhy, Phy_Mii mii)
Phy_Mii
Phy_Mii
Definition: phy_common.h:196
Dp83826_bind
void Dp83826_bind(EthPhyDrv_Handle *hPhy, uint8_t phyAddr, Phy_RegAccessCb_t *pRegAccessCb)
Dp83826_printRegs
void Dp83826_printRegs(EthPhyDrv_Handle hPhy)
Dp83826_Cfg
dp83826 PHY configuration parameters.
Definition: dp83826.h:79
phy_common.h
Dp83826_initCfg
void Dp83826_initCfg(Dp83826_Cfg *cfg)
Initialize dp83826 PHY specific config params.
Dp83826_config
int32_t Dp83826_config(EthPhyDrv_Handle hPhy, const void *pExtCfg, const uint32_t extCfgSize, Phy_Mii mii, bool loopbackEn)