#include <linux/config.h>#include <linux/kernel.h>#include <linux/sched.h>#include <linux/string.h>#include <linux/ptrace.h>#include <linux/errno.h>#include <linux/ioport.h>#include <linux/malloc.h>#include <linux/interrupt.h>#include <linux/pci.h>#include <linux/init.h>#include <linux/delay.h>#include <linux/netdevice.h>#include <linux/etherdevice.h>#include <linux/skbuff.h>#include <asm/8xx_immap.h>#include <asm/pgtable.h>#include <asm/fads.h>#include <asm/bitops.h>#include <asm/uaccess.h>#include "commproc.h"Include dependency graph for enet.c:

Go to the source code of this file.
Defines | |
| #define | CPM_ENET_RX_PAGES 4 |
| #define | CPM_ENET_RX_FRSIZE 2048 |
| #define | CPM_ENET_RX_FRPPG (PAGE_SIZE / CPM_ENET_RX_FRSIZE) |
| #define | RX_RING_SIZE (CPM_ENET_RX_FRPPG * CPM_ENET_RX_PAGES) |
| #define | TX_RING_SIZE 8 |
| #define | TX_RING_MOD_MASK 7 |
| #define | PKT_MAXBUF_SIZE 1518 |
| #define | PKT_MINBUF_SIZE 64 |
| #define | PKT_MAXBLR_SIZE 1520 |
| #define | CPM_CR_ENET CPM_CR_CH_SCC2 |
| #define | PROFF_ENET PROFF_SCC2 |
| #define | SCC_ENET 1 |
| #define | CPMVEC_ENET CPMVEC_SCC2 |
Functions | |
| static int | cpm_enet_open (struct device *dev) |
| static int | cpm_enet_start_xmit (struct sk_buff *skb, struct device *dev) |
| static int | cpm_enet_rx (struct device *dev) |
| static void | cpm_enet_interrupt (void *dev_id) |
| static int | cpm_enet_close (struct device *dev) |
| static struct net_device_stats * | cpm_enet_get_stats (struct device *dev) |
| static void | set_multicast_list (struct device *dev) |
| int __init | cpm_enet_init () |
| int __init | m8xx_enet_init (void) |
|
|
Definition at line 172 of file enet.c. Referenced by cpm_enet_interrupt(), m8xx_enet_init(), and set_multicast_list(). |
|
|
Definition at line 118 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
Definition at line 117 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
Definition at line 116 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
Definition at line 175 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
Definition at line 127 of file enet.c. Referenced by __initfunc(), and m8xx_enet_init(). |
|
|
Definition at line 125 of file enet.c. Referenced by __initfunc(), and m8xx_enet_init(). |
|
|
Definition at line 126 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
Definition at line 173 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
|
Definition at line 174 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
Definition at line 121 of file enet.c. Referenced by __initfunc(), cpm_enet_interrupt(), cpm_enet_start_xmit(), fec_enet_interrupt(), fec_enet_start_xmit(), lance_interrupt(), lance_open(), lance_start_xmit(), lance_tx(), pcnet32_interrupt(), and pcnet32_start_xmit(). |
|
|
|
Definition at line 600 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
Definition at line 608 of file enet.c. References cpm_enet_private::stats. Referenced by m8xx_enet_init(). |
|
|
Definition at line 701 of file enet.c. References m8xx_enet_init(). Referenced by __initfunc(). Here is the call graph for this function: ![]() |
|
|
|
Definition at line 184 of file enet.c. Referenced by m8xx_enet_init(). |
|
|
Definition at line 506 of file enet.c. References __va, BD_ENET_RX_CL, BD_ENET_RX_CR, BD_ENET_RX_EMPTY, BD_ENET_RX_FIRST, BD_ENET_RX_LAST, BD_ENET_RX_LG, BD_ENET_RX_NO, BD_ENET_RX_OV, BD_ENET_RX_SH, BD_ENET_RX_STATS, BD_ENET_RX_WRAP, cpm_buf_desc::cbd_bufaddr, cpm_buf_desc::cbd_datlen, cpm_buf_desc::cbd_sc, cpm_enet_private::cur_rx, sk_buff::dev, eth_copy_and_sum(), eth_type_trans(), netif_rx(), NULL, printk, sk_buff::protocol, cpm_enet_private::rx_bd_base, net_device_stats::rx_bytes, net_device_stats::rx_crc_errors, net_device_stats::rx_dropped, net_device_stats::rx_frame_errors, net_device_stats::rx_length_errors, net_device_stats::rx_packets, cpm_enet_private::stats, and ushort. Referenced by cpm_enet_interrupt(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
|
|
Definition at line 625 of file enet.c. References comm_proc::cp_cpcr, CPM_CR_ENET, CPM_CR_FLG, CPM_CR_SET_GADDR, cpmp, ep, i, IFF_ALLMULTI, IFF_PROMISC, j, mk_cr_cmd, printk, scc::scc_pmsr, SCC_PMSR_PRO, cpm_enet_private::sccp, scc_enet::sen_gaddr1, scc_enet::sen_gaddr2, scc_enet::sen_gaddr3, scc_enet::sen_gaddr4, scc_enet::sen_taddrh, u_char, and udelay. Referenced by __initfunc(), depca_ioctl(), eepro_probe1(), el3_probe(), ethdev_init(), ewrk3_init(), ewrk3_ioctl(), lp486e_probe(), ltpc_init(), m8xx_enet_init(), and sbni_probe1(). |