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

Go to the source code of this file.

Macros

#define ZMII_FER_MDI(idx)   (0x80000000 >> ((idx) * 4))
 
#define ZMII_FER_MDI_ALL
 
#define ZMII_FER_SMII(idx)   (0x40000000 >> ((idx) * 4))
 
#define ZMII_FER_RMII(idx)   (0x20000000 >> ((idx) * 4))
 
#define ZMII_FER_MII(idx)   (0x10000000 >> ((idx) * 4))
 
#define ZMII_SSR_SCI(idx)   (0x40000000 >> ((idx) * 4))
 
#define ZMII_SSR_FSS(idx)   (0x20000000 >> ((idx) * 4))
 
#define ZMII_SSR_SP(idx)   (0x10000000 >> ((idx) * 4))
 

Functions

int __devinit zmii_attach (struct platform_device *ofdev, int input, int *mode)
 
void zmii_get_mdio (struct platform_device *ofdev, int input)
 
void zmii_put_mdio (struct platform_device *ofdev, int input)
 
void zmii_set_speed (struct platform_device *ofdev, int input, int speed)
 
void zmii_detach (struct platform_device *ofdev, int input)
 
int zmii_get_regs_len (struct platform_device *ofdev)
 
voidzmii_dump_regs (struct platform_device *ofdev, void *buf)
 
int __init zmii_init (void)
 
void zmii_exit (void)
 

Macro Definition Documentation

#define ZMII_FER_MDI (   idx)    (0x80000000 >> ((idx) * 4))

Definition at line 33 of file zmii.c.

#define ZMII_FER_MDI_ALL
Value:
ZMII_FER_MDI(2) | ZMII_FER_MDI(3))

Definition at line 34 of file zmii.c.

#define ZMII_FER_MII (   idx)    (0x10000000 >> ((idx) * 4))

Definition at line 39 of file zmii.c.

#define ZMII_FER_RMII (   idx)    (0x20000000 >> ((idx) * 4))

Definition at line 38 of file zmii.c.

#define ZMII_FER_SMII (   idx)    (0x40000000 >> ((idx) * 4))

Definition at line 37 of file zmii.c.

#define ZMII_SSR_FSS (   idx)    (0x20000000 >> ((idx) * 4))

Definition at line 43 of file zmii.c.

#define ZMII_SSR_SCI (   idx)    (0x40000000 >> ((idx) * 4))

Definition at line 42 of file zmii.c.

#define ZMII_SSR_SP (   idx)    (0x10000000 >> ((idx) * 4))

Definition at line 44 of file zmii.c.

Function Documentation

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

Definition at line 85 of file zmii.c.

void zmii_detach ( struct platform_device ofdev,
int  input 
)

Definition at line 194 of file zmii.c.

void* zmii_dump_regs ( struct platform_device ofdev,
void buf 
)

Definition at line 219 of file zmii.c.

void zmii_exit ( void  )

Definition at line 326 of file zmii.c.

void zmii_get_mdio ( struct platform_device ofdev,
int  input 
)

Definition at line 151 of file zmii.c.

int zmii_get_regs_len ( struct platform_device ofdev)

Definition at line 213 of file zmii.c.

int __init zmii_init ( void  )

Definition at line 321 of file zmii.c.

void zmii_put_mdio ( struct platform_device ofdev,
int  input 
)

Definition at line 164 of file zmii.c.

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

Definition at line 173 of file zmii.c.