Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ucc_geth.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/stddef.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/mm.h>
#include <linux/dma-mapping.h>
#include <linux/mii.h>
#include <linux/phy.h>
#include <linux/workqueue.h>
#include <linux/of_mdio.h>
#include <linux/of_net.h>
#include <linux/of_platform.h>
#include <asm/uaccess.h>
#include <asm/irq.h>
#include <asm/io.h>
#include <asm/immap_qe.h>
#include <asm/qe.h>
#include <asm/ucc.h>
#include <asm/ucc_fast.h>
#include <asm/machdep.h>
#include "ucc_geth.h"

Go to the source code of this file.

Macros

#define ugeth_printk(level, format, arg...)   printk(level format "\n", ## arg)
 
#define ugeth_dbg(format, arg...)   ugeth_printk(KERN_DEBUG , format , ## arg)
 
#define ugeth_err(format, arg...)   ugeth_printk(KERN_ERR , format , ## arg)
 
#define ugeth_info(format, arg...)   ugeth_printk(KERN_INFO , format , ## arg)
 
#define ugeth_warn(format, arg...)   ugeth_printk(KERN_WARNING , format , ## arg)
 
#define ugeth_vdbg(fmt, args...)   do { } while (0)
 
#define UGETH_MSG_DEFAULT   (NETIF_MSG_IFUP << 1 ) - 1
 
#define ucc_geth_suspend   NULL
 
#define ucc_geth_resume   NULL
 

Functions

 module_param_named (debug, debug.msg_enable, int, 0)
 
 MODULE_PARM_DESC (debug,"Debug verbosity level (0=none, ..., 0xffff=all)")
 
int init_flow_control_params (u32 automatic_flow_control_mode, int rx_flow_control_enable, int tx_flow_control_enable, u16 pause_period, u16 extension_field, u32 __iomem *upsmr_register, u32 __iomem *uempr_register, u32 __iomem *maccfg1_register)
 
 MODULE_DEVICE_TABLE (of, ucc_geth_match)
 
 module_init (ucc_geth_init)
 
 module_exit (ucc_geth_exit)
 
 MODULE_AUTHOR ("Freescale Semiconductor, Inc")
 
 MODULE_DESCRIPTION (DRV_DESC)
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define ucc_geth_resume   NULL

Definition at line 3728 of file ucc_geth.c.

#define ucc_geth_suspend   NULL

Definition at line 3727 of file ucc_geth.c.

#define ugeth_dbg (   format,
  arg... 
)    ugeth_printk(KERN_DEBUG , format , ## arg)

Definition at line 51 of file ucc_geth.c.

#define ugeth_err (   format,
  arg... 
)    ugeth_printk(KERN_ERR , format , ## arg)

Definition at line 53 of file ucc_geth.c.

#define ugeth_info (   format,
  arg... 
)    ugeth_printk(KERN_INFO , format , ## arg)

Definition at line 55 of file ucc_geth.c.

#define UGETH_MSG_DEFAULT   (NETIF_MSG_IFUP << 1 ) - 1

Definition at line 65 of file ucc_geth.c.

#define ugeth_printk (   level,
  format,
  arg... 
)    printk(level format "\n", ## arg)

Definition at line 48 of file ucc_geth.c.

#define ugeth_vdbg (   fmt,
  args... 
)    do { } while (0)

Definition at line 63 of file ucc_geth.c.

#define ugeth_warn (   format,
  arg... 
)    ugeth_printk(KERN_WARNING , format , ## arg)

Definition at line 57 of file ucc_geth.c.

Function Documentation

int init_flow_control_params ( u32  automatic_flow_control_mode,
int  rx_flow_control_enable,
int  tx_flow_control_enable,
u16  pause_period,
u16  extension_field,
u32 __iomem upsmr_register,
u32 __iomem uempr_register,
u32 __iomem maccfg1_register 
)

Definition at line 1126 of file ucc_geth.c.

MODULE_AUTHOR ( "Freescale  Semiconductor,
Inc"   
)
MODULE_DESCRIPTION ( DRV_DESC  )
MODULE_DEVICE_TABLE ( of  ,
ucc_geth_match   
)
module_exit ( ucc_geth_exit  )
module_init ( ucc_geth_init  )
MODULE_LICENSE ( "GPL"  )
module_param_named ( debug  ,
debug.  msg_enable,
int  ,
 
)
MODULE_PARM_DESC ( debug  ,
"Debug verbosity level (0=none, ..., 0xffff=all)"   
)
MODULE_VERSION ( DRV_VERSION  )

Variable Documentation

u32 msg_enable

Definition at line 71 of file ucc_geth.c.