Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mv88e6060.c File Reference
#include <linux/list.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/phy.h>
#include <net/dsa.h>

Go to the source code of this file.

Macros

#define REG_PORT(p)   (8 + (p))
 
#define REG_GLOBAL   0x0f
 
#define REG_READ(addr, reg)
 
#define REG_WRITE(addr, reg, val)
 

Functions

 module_init (mv88e6060_init)
 
 module_exit (mv88e6060_cleanup)
 
 MODULE_AUTHOR ("Lennert Buytenhek <[email protected]>")
 
 MODULE_DESCRIPTION ("Driver for Marvell 88E6060 ethernet switch chip")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:mv88e6060")
 

Macro Definition Documentation

#define REG_GLOBAL   0x0f

Definition at line 18 of file mv88e6060.c.

#define REG_PORT (   p)    (8 + (p))

Definition at line 17 of file mv88e6060.c.

#define REG_READ (   addr,
  reg 
)
Value:
({ \
int __ret; \
\
__ret = reg_read(ds, addr, reg); \
if (__ret < 0) \
return __ret; \
__ret; \
})

Definition at line 25 of file mv88e6060.c.

#define REG_WRITE (   addr,
  reg,
  val 
)
Value:
({ \
int __ret; \
\
__ret = reg_write(ds, addr, reg, val); \
if (__ret < 0) \
return __ret; \
})

Definition at line 42 of file mv88e6060.c.

Function Documentation

MODULE_ALIAS ( "platform:mv88e6060"  )
MODULE_AUTHOR ( "Lennert Buytenhek <[email protected]>"  )
MODULE_DESCRIPTION ( "Driver for Marvell 88E6060 ethernet switch chip"  )
module_exit ( mv88e6060_cleanup  )
module_init ( mv88e6060_init  )
MODULE_LICENSE ( "GPL"  )