1 /******************************************************************************
\r
2 * File Name : hwEthernetPhy.h
\r
4 * Device(s) : Renesas
\r
5 * Tool-Chain : Renesas SH2A V9+
\r
7 * H/W Platform : SH2A
\r
8 * Description : Hardware driver for the LAN8700 PHY
\r
9 *******************************************************************************
\r
10 * History : DD.MM.YYYY Ver. Description
\r
11 * : 01.08.2009 1.00 MAB First Release
\r
12 ******************************************************************************/
\r
14 /******************************************************************************
\r
16 * This software is supplied by Renesas Technology Corp. and is only
\r
17 * intended for use with Renesas products. No other uses are authorized.
\r
18 * This software is owned by Renesas Technology Corp. and is protected under
\r
19 * all applicable laws, including copyright laws.
\r
20 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES
\r
21 * REGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY,
\r
22 * INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
\r
23 * PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY
\r
25 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
\r
26 * TECHNOLOGY CORP. NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
\r
27 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
\r
28 * FOR ANY REASON RELATED TO THE THIS SOFTWARE, EVEN IF RENESAS OR ITS
\r
29 * AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
\r
30 * Renesas reserves the right, without notice, to make changes to this
\r
31 * software and to discontinue the availability of this software.
\r
32 * By using this software, you agree to the additional terms and
\r
33 * conditions found by accessing the following link:
\r
34 * http://www.renesas.com/disclaimer
\r
35 ******************************************************************************/
\r
36 /* Copyright (C) 2008. Renesas Technology Corp., All Rights Reserved. */
\r
37 /* Copyright (C) 2009. Renesas Technology Europe Ltd., All Rights Reserved. */
\r
38 /*****************************************************************************/
\r
40 #ifndef HWETHERNETPHY_H_INCLUDED
\r
41 #define HWETHERNETPHY_H_INCLUDED
\r
43 /*****************************************************************************
\r
45 ******************************************************************************/
\r
47 typedef enum _NETLNK
\r
57 /*****************************************************************************
\r
59 ******************************************************************************/
\r
65 /*****************************************************************************
\r
66 Function Name: phyReset
\r
67 Description: Executes software reset of PHY and sets to auto negotiate link
\r
69 Return value: 0 for success -1 on error
\r
70 ******************************************************************************/
\r
72 extern int phyReset(void);
\r
74 /*****************************************************************************
\r
75 Function Name: phyStatus
\r
76 Description: Function to reurn the type of physical link
\r
78 Return value: The link type
\r
79 *****************************************************************************/
\r
81 extern NETLNK phyStatus(void);
\r
87 #endif /* HWETHERNETPHY_H_INCLUDED */
\r
89 /*****************************************************************************
\r
91 ******************************************************************************/