OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [SuperH_SH7216_Renesas/] [RTOSDemo/] [RenesasCode/] [hwEthernetPhy.h] - Blame information for rev 615

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 585 jeremybenn
/******************************************************************************
2
* File Name    : hwEthernetPhy.h
3
* Version      : 1.0
4
* Device(s)    : Renesas
5
* Tool-Chain   : Renesas SH2A V9+
6
* OS           : None
7
* H/W Platform : SH2A
8
* Description  : Hardware driver for the LAN8700 PHY
9
*******************************************************************************
10
* History      : DD.MM.YYYY Ver. Description
11
*              : 01.08.2009 1.00 MAB First Release
12
******************************************************************************/
13
 
14
/******************************************************************************
15
* DISCLAIMER
16
* This software is supplied by Renesas Technology Corp. and is only
17
* intended for use with Renesas products. No other uses are authorized.
18
* This software is owned by Renesas Technology Corp. and is protected under
19
* all applicable laws, including copyright laws.
20
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES
21
* REGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY,
22
* INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
* PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY
24
* DISCLAIMED.
25
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
26
* TECHNOLOGY CORP. NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
27
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
28
* FOR ANY REASON RELATED TO THE THIS SOFTWARE, EVEN IF RENESAS OR ITS
29
* AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
30
* Renesas reserves the right, without notice, to make changes to this
31
* software and to discontinue the availability of this software.
32
* By using this software, you agree to the additional terms and
33
* conditions found by accessing the following link:
34
* http://www.renesas.com/disclaimer
35
******************************************************************************/
36
/* Copyright (C) 2008. Renesas Technology Corp.,       All Rights Reserved.  */
37
/* Copyright (C) 2009. Renesas Technology Europe Ltd., All Rights Reserved.  */
38
/*****************************************************************************/
39
 
40
#ifndef HWETHERNETPHY_H_INCLUDED
41
#define HWETHERNETPHY_H_INCLUDED
42
 
43
/*****************************************************************************
44
Enumerated Types
45
******************************************************************************/
46
 
47
typedef enum _NETLNK
48
{
49
    PHY_NO_LINK = 0,
50
    PHY_LINK_10H,
51
    PHY_LINK_10F,
52
    PHY_LINK_100H,
53
    PHY_LINK_100F
54
 
55
} NETLNK;
56
 
57
/*****************************************************************************
58
Public Functions
59
******************************************************************************/
60
 
61
#ifdef __cplusplus
62
extern "C" {
63
#endif
64
 
65
/*****************************************************************************
66
Function Name:  phyReset
67
Description:    Executes software reset of PHY and sets to auto negotiate link
68
Parameters:     None
69
Return value:   0 for success -1 on error
70
******************************************************************************/
71
 
72
extern  int phyReset(void);
73
 
74
/*****************************************************************************
75
Function Name: phyStatus
76
Description:   Function to reurn the type of physical link
77
Parameters:    none
78
Return value:  The link type
79
*****************************************************************************/
80
 
81
extern  NETLNK phyStatus(void);
82
 
83
#ifdef __cplusplus
84
}
85
#endif
86
 
87
#endif                              /* HWETHERNETPHY_H_INCLUDED */
88
 
89
/*****************************************************************************
90
End  Of File
91
******************************************************************************/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.