Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
macmace.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/crc32.h>
#include <linux/bitrev.h>
#include <linux/dma-mapping.h>
#include <linux/platform_device.h>
#include <linux/gfp.h>
#include <linux/interrupt.h>
#include <asm/io.h>
#include <asm/macints.h>
#include <asm/mac_psc.h>
#include <asm/page.h>
#include "mace.h"

Go to the source code of this file.

Data Structures

struct  mace_data
 
struct  mace_frame
 

Macros

#define N_TX_BUFF_ORDER   0
 
#define N_TX_RING   (1 << N_TX_BUFF_ORDER)
 
#define N_RX_BUFF_ORDER   3
 
#define N_RX_RING   (1 << N_RX_BUFF_ORDER)
 
#define TX_TIMEOUT   HZ
 
#define MACE_BUFF_SIZE   0x800
 
#define BROKEN_ADDRCHG_REV   0x0941
 
#define MACE_BASE   (void *)(0x50F1C000)
 
#define MACE_PROM   (void *)(0x50F08001)
 
#define PRIV_BYTES   sizeof(struct mace_data)
 

Functions

 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION ("Macintosh MACE ethernet driver")
 
 MODULE_ALIAS ("platform:macmace")
 
 module_init (mac_mace_init_module)
 
 module_exit (mac_mace_cleanup_module)
 

Macro Definition Documentation

#define BROKEN_ADDRCHG_REV   0x0941

Definition at line 53 of file macmace.c.

#define MACE_BASE   (void *)(0x50F1C000)

Definition at line 57 of file macmace.c.

#define MACE_BUFF_SIZE   0x800

Definition at line 50 of file macmace.c.

#define MACE_PROM   (void *)(0x50F08001)

Definition at line 58 of file macmace.c.

#define N_RX_BUFF_ORDER   3

Definition at line 45 of file macmace.c.

#define N_RX_RING   (1 << N_RX_BUFF_ORDER)

Definition at line 46 of file macmace.c.

#define N_TX_BUFF_ORDER   0

Definition at line 43 of file macmace.c.

#define N_TX_RING   (1 << N_TX_BUFF_ORDER)

Definition at line 44 of file macmace.c.

#define PRIV_BYTES   sizeof(struct mace_data)

Definition at line 88 of file macmace.c.

#define TX_TIMEOUT   HZ

Definition at line 48 of file macmace.c.

Function Documentation

MODULE_ALIAS ( "platform:macmace"  )
MODULE_DESCRIPTION ( "Macintosh MACE ethernet driver )
module_exit ( mac_mace_cleanup_module  )
module_init ( mac_mace_init_module  )
MODULE_LICENSE ( "GPL"  )