Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mace.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/crc32.h>
#include <linux/spinlock.h>
#include <linux/bitrev.h>
#include <linux/slab.h>
#include <asm/prom.h>
#include <asm/dbdma.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/macio.h>
#include "mace.h"

Go to the source code of this file.

Data Structures

struct  mace_data
 

Macros

#define N_RX_RING   8
 
#define N_TX_RING   6
 
#define MAX_TX_ACTIVE   1
 
#define NCMDS_TX   1 /* dma commands per element in tx ring */
 
#define RX_BUFLEN   (ETH_FRAME_LEN + 8)
 
#define TX_TIMEOUT   HZ /* 1 second */
 
#define BROKEN_ADDRCHG_REV   0x0941
 
#define TX_DMA_ERR   0x80
 
#define PRIV_BYTES
 

Functions

 MODULE_DEVICE_TABLE (of, mace_match)
 
 MODULE_AUTHOR ("Paul Mackerras")
 
 MODULE_DESCRIPTION ("PowerMac MACE driver.")
 
 module_param (port_aaui, int, 0)
 
 MODULE_PARM_DESC (port_aaui,"MACE uses AAUI port (0-1)")
 
 MODULE_LICENSE ("GPL")
 
 module_init (mace_init)
 
 module_exit (mace_cleanup)
 

Macro Definition Documentation

#define BROKEN_ADDRCHG_REV   0x0941

Definition at line 39 of file mace.c.

#define MAX_TX_ACTIVE   1

Definition at line 33 of file mace.c.

#define N_RX_RING   8

Definition at line 31 of file mace.c.

#define N_TX_RING   6

Definition at line 32 of file mace.c.

#define NCMDS_TX   1 /* dma commands per element in tx ring */

Definition at line 34 of file mace.c.

#define PRIV_BYTES
Value:
(sizeof(struct mace_data) \
+ (N_RX_RING + NCMDS_TX * N_TX_RING + 3) * sizeof(struct dbdma_cmd))

Definition at line 76 of file mace.c.

#define RX_BUFLEN   (ETH_FRAME_LEN + 8)

Definition at line 35 of file mace.c.

#define TX_DMA_ERR   0x80

Definition at line 42 of file mace.c.

#define TX_TIMEOUT   HZ /* 1 second */

Definition at line 36 of file mace.c.

Function Documentation

MODULE_AUTHOR ( "Paul Mackerras"  )
MODULE_DESCRIPTION ( "PowerMac MACE driver."  )
MODULE_DEVICE_TABLE ( of  ,
mace_match   
)
module_exit ( mace_cleanup  )
module_init ( mace_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( port_aaui  ,
int  ,
 
)
MODULE_PARM_DESC ( port_aaui  ,
"MACE uses AAUI port (0-1)"   
)