Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rgmii.c File Reference
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/ethtool.h>
#include <asm/io.h>
#include "emac.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define RGMII_FER_MASK(idx)   (0x7 << ((idx) * 4))
 
#define RGMII_FER_RTBI(idx)   (0x4 << ((idx) * 4))
 
#define RGMII_FER_RGMII(idx)   (0x5 << ((idx) * 4))
 
#define RGMII_FER_TBI(idx)   (0x6 << ((idx) * 4))
 
#define RGMII_FER_GMII(idx)   (0x7 << ((idx) * 4))
 
#define RGMII_FER_MII(idx)   RGMII_FER_GMII(idx)
 
#define RGMII_SSR_MASK(idx)   (0x7 << ((idx) * 8))
 
#define RGMII_SSR_100(idx)   (0x2 << ((idx) * 8))
 
#define RGMII_SSR_1000(idx)   (0x4 << ((idx) * 8))
 

Functions

int __devinit rgmii_attach (struct platform_device *ofdev, int input, int mode)
 
void rgmii_set_speed (struct platform_device *ofdev, int input, int speed)
 
void rgmii_get_mdio (struct platform_device *ofdev, int input)
 
void rgmii_put_mdio (struct platform_device *ofdev, int input)
 
void rgmii_detach (struct platform_device *ofdev, int input)
 
int rgmii_get_regs_len (struct platform_device *ofdev)
 
voidrgmii_dump_regs (struct platform_device *ofdev, void *buf)
 
int __init rgmii_init (void)
 
void rgmii_exit (void)
 

Macro Definition Documentation

#define RGMII_FER_GMII (   idx)    (0x7 << ((idx) * 4))

Definition at line 42 of file rgmii.c.

#define RGMII_FER_MASK (   idx)    (0x7 << ((idx) * 4))

Definition at line 38 of file rgmii.c.

#define RGMII_FER_MII (   idx)    RGMII_FER_GMII(idx)

Definition at line 43 of file rgmii.c.

#define RGMII_FER_RGMII (   idx)    (0x5 << ((idx) * 4))

Definition at line 40 of file rgmii.c.

#define RGMII_FER_RTBI (   idx)    (0x4 << ((idx) * 4))

Definition at line 39 of file rgmii.c.

#define RGMII_FER_TBI (   idx)    (0x6 << ((idx) * 4))

Definition at line 41 of file rgmii.c.

#define RGMII_SSR_100 (   idx)    (0x2 << ((idx) * 8))

Definition at line 47 of file rgmii.c.

#define RGMII_SSR_1000 (   idx)    (0x4 << ((idx) * 8))

Definition at line 48 of file rgmii.c.

#define RGMII_SSR_MASK (   idx)    (0x7 << ((idx) * 8))

Definition at line 46 of file rgmii.c.

Function Documentation

int __devinit rgmii_attach ( struct platform_device ofdev,
int  input,
int  mode 
)

Definition at line 96 of file rgmii.c.

void rgmii_detach ( struct platform_device ofdev,
int  input 
)

Definition at line 189 of file rgmii.c.

void* rgmii_dump_regs ( struct platform_device ofdev,
void buf 
)

Definition at line 215 of file rgmii.c.

void rgmii_exit ( void  )

Definition at line 332 of file rgmii.c.

void rgmii_get_mdio ( struct platform_device ofdev,
int  input 
)

Definition at line 147 of file rgmii.c.

int rgmii_get_regs_len ( struct platform_device ofdev)

Definition at line 209 of file rgmii.c.

int __init rgmii_init ( void  )

Definition at line 327 of file rgmii.c.

void rgmii_put_mdio ( struct platform_device ofdev,
int  input 
)

Definition at line 168 of file rgmii.c.

void rgmii_set_speed ( struct platform_device ofdev,
int  input,
int  speed 
)

Definition at line 125 of file rgmii.c.