Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
media.c File Reference
#include <linux/kernel.h>
#include <linux/mii.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/pci.h>
#include "tulip.h"

Go to the source code of this file.

Macros

#define mdio_delay()   ioread32(mdio_addr)
 
#define MDIO_SHIFT_CLK   0x10000
 
#define MDIO_DATA_WRITE0   0x00000
 
#define MDIO_DATA_WRITE1   0x20000
 
#define MDIO_ENB   0x00000 /* Ignore the 0x02000 databook setting. */
 
#define MDIO_ENB_IN   0x40000
 
#define MDIO_DATA_READ   0x80000
 

Functions

int tulip_mdio_read (struct net_device *dev, int phy_id, int location)
 
void tulip_mdio_write (struct net_device *dev, int phy_id, int location, int val)
 
void tulip_select_media (struct net_device *dev, int startup)
 
int tulip_check_duplex (struct net_device *dev)
 
void __devinit tulip_find_mii (struct net_device *dev, int board_idx)
 

Macro Definition Documentation

#define MDIO_DATA_READ   0x80000

Definition at line 34 of file media.c.

#define MDIO_DATA_WRITE0   0x00000

Definition at line 30 of file media.c.

#define MDIO_DATA_WRITE1   0x20000

Definition at line 31 of file media.c.

#define mdio_delay ( )    ioread32(mdio_addr)

Definition at line 24 of file media.c.

#define MDIO_ENB   0x00000 /* Ignore the 0x02000 databook setting. */

Definition at line 32 of file media.c.

#define MDIO_ENB_IN   0x40000

Definition at line 33 of file media.c.

#define MDIO_SHIFT_CLK   0x10000

Definition at line 29 of file media.c.

Function Documentation

int tulip_check_duplex ( struct net_device dev)

Definition at line 403 of file media.c.

void __devinit tulip_find_mii ( struct net_device dev,
int  board_idx 
)

Definition at line 450 of file media.c.

int tulip_mdio_read ( struct net_device dev,
int  phy_id,
int  location 
)

Definition at line 48 of file media.c.

void tulip_mdio_write ( struct net_device dev,
int  phy_id,
int  location,
int  val 
)

Definition at line 110 of file media.c.

void tulip_select_media ( struct net_device dev,
int  startup 
)

Definition at line 168 of file media.c.