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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ColdFire_MCF52233_Eclipse/] [RTOSDemo/] [webserver/] [mii.h] - Blame information for rev 578

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 jeremybenn
/*!
2
 * \file    mii.h
3
 * \brief   Media Independent Interface (MII) driver
4
 * \version $Revision: 2 $
5
 * \author  Michael Norman
6
 *
7
 * \warning This driver assumes that FEC0 is used for all MII management
8
 *          communications.  For dual PHYs, etc., insure that FEC0_MDC and
9
 *          FEC0_MDIO are connected to the PHY's MDC and MDIO.
10
 */
11
 
12
#ifndef _MII_H_
13
#define _MII_H_
14
 
15
/*******************************************************************/
16
 
17
int
18
mii_write(int, int, uint16);
19
 
20
int
21
mii_read(int, int, uint16*);
22
 
23
void
24
mii_init(int);
25
 
26
/* MII Speed Settings */
27
typedef enum {
28
        MII_10BASE_T,   /*!< 10Base-T  operation */
29
        MII_100BASE_TX  /*!< 100Base-TX operation */
30
} MII_SPEED;
31
 
32
/* MII Duplex Settings */
33
typedef enum {
34
        MII_HDX,                /*!< half-duplex */
35
        MII_FDX                 /*!< full-duplex */
36
} MII_DUPLEX;
37
 
38
#define MII_TIMEOUT                 0x10000
39
#define MII_LINK_TIMEOUT        0x10000
40
 
41
/*******************************************************************/
42
 
43
#endif /* _MII_H_ */

powered by: WebSVN 2.1.0

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