Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
stmmac.h File Reference
#include <linux/clk.h>
#include <linux/stmmac.h>
#include <linux/phy.h>
#include <linux/pci.h>
#include "common.h"

Go to the source code of this file.

Data Structures

struct  stmmac_priv
 

Macros

#define STMMAC_RESOURCE_NAME   "stmmaceth"
 
#define DRV_MODULE_VERSION   "March_2012"
 

Functions

int stmmac_mdio_unregister (struct net_device *ndev)
 
int stmmac_mdio_register (struct net_device *ndev)
 
void stmmac_set_ethtool_ops (struct net_device *netdev)
 
int stmmac_freeze (struct net_device *ndev)
 
int stmmac_restore (struct net_device *ndev)
 
int stmmac_resume (struct net_device *ndev)
 
int stmmac_suspend (struct net_device *ndev)
 
int stmmac_dvr_remove (struct net_device *ndev)
 
struct stmmac_privstmmac_dvr_probe (struct device *device, struct plat_stmmacenet_data *plat_dat, void __iomem *addr)
 
void stmmac_disable_eee_mode (struct stmmac_priv *priv)
 
bool stmmac_eee_init (struct stmmac_priv *priv)
 

Variables

int phyaddr
 
struct stmmac_desc_ops enh_desc_ops
 
struct stmmac_desc_ops ndesc_ops
 

Macro Definition Documentation

#define DRV_MODULE_VERSION   "March_2012"

Definition at line 27 of file stmmac.h.

#define STMMAC_RESOURCE_NAME   "stmmaceth"

Definition at line 26 of file stmmac.h.

Function Documentation

void stmmac_disable_eee_mode ( struct stmmac_priv priv)

Definition at line 244 of file stmmac_main.c.

struct stmmac_priv* stmmac_dvr_probe ( struct device device,
struct plat_stmmacenet_data plat_dat,
void __iomem addr 
)
read

stmmac_dvr_probe : device pointer : platform data pointer : iobase memory address Description: this is the main probe function used to call the alloc_etherdev, allocate the priv structure.

Definition at line 2001 of file stmmac_main.c.

int stmmac_dvr_remove ( struct net_device ndev)

stmmac_dvr_remove : net device pointer Description: this function resets the TX/RX processes, disables the MAC RX/TX changes the link status, releases the DMA descriptor rings.

Definition at line 2108 of file stmmac_main.c.

bool stmmac_eee_init ( struct stmmac_priv priv)

stmmac_eee_init : private device pointer Description: If the EEE support has been enabled while configuring the driver, if the GMAC actually supports the EEE (from the HW cap reg) and the phy can also manage EEE, so enable the LPI state and start the timer to verify if the tx path can enter in LPI state.

Definition at line 276 of file stmmac_main.c.

int stmmac_freeze ( struct net_device ndev)
int stmmac_mdio_register ( struct net_device ndev)

stmmac_mdio_register : net device structure Description: it registers the MII bus

Definition at line 154 of file stmmac_mdio.c.

int stmmac_mdio_unregister ( struct net_device ndev)

stmmac_mdio_unregister : net device structure Description: it unregisters the MII bus

Definition at line 255 of file stmmac_mdio.c.

int stmmac_restore ( struct net_device ndev)
int stmmac_resume ( struct net_device ndev)
void stmmac_set_ethtool_ops ( struct net_device netdev)

Definition at line 544 of file stmmac_ethtool.c.

int stmmac_suspend ( struct net_device ndev)

Variable Documentation

struct stmmac_desc_ops enh_desc_ops

Definition at line 326 of file enh_desc.c.

Definition at line 218 of file norm_desc.c.

int phyaddr

Definition at line 91 of file stmmac_main.c.