#include <asm/arch/hwregs/dma.h>Include dependency graph for eth_v32.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | transceiver_ops |
| struct | crisv32_eth_descr |
| struct | crisv32_eth_leds |
| struct | crisv32_ethernet_local |
Defines | |
| #define | MAX_MEDIA_DATA_SIZE 1522 |
| #define | NBR_RX_DESC 64 |
| #define | NBR_TX_DESC 32 |
| #define | RX_COPYBREAK (256) |
| #define | ETHER_HEAD_LEN (14) |
| #define | MDIO_START 0x1 |
| #define | MDIO_READ 0x2 |
| #define | MDIO_WRITE 0x1 |
| #define | MDIO_PREAMBLE 0xfffffffful |
| #define | MDIO_AUX_CTRL_STATUS_REG 0x18 |
| #define | MDIO_BC_FULL_DUPLEX_IND 0x1 |
| #define | MDIO_BC_SPEED 0x2 |
| #define | MDIO_TDK_DIAGNOSTIC_REG 18 |
| #define | MDIO_TDK_DIAGNOSTIC_RATE 0x400 |
| #define | MDIO_TDK_DIAGNOSTIC_DPLX 0x800 |
| #define | MDIO_INT_STATUS_REG_2 0x0011 |
| #define | MDIO_INT_FULL_DUPLEX_IND ( 0x0001 << 9 ) |
| #define | MDIO_INT_SPEED ( 0x0001 << 14 ) |
| #define | MDIO_NAT_LINK_AN_REG 0x11 |
| #define | MDIO_NAT_1000 (0x0001 << 4) |
| #define | MDIO_NAT_100 (0x0001 << 3) |
| #define | MDIO_NAT_FULL_DUPLEX_IND (0x0001 << 1) |
| #define | MDIO_VIT_AUX_STAT 0x1c |
| #define | MDIO_VIT_1000 (0x2 << 3) |
| #define | MDIO_VIT_100 (0x1 << 3) |
| #define | MDIO_VIT_10 0 |
| #define | MDIO_VIT_FD (0x1 << 5) |
| #define | NET_FLASH_TIME (HZ/50) |
| #define | NET_FLASH_PAUSE (HZ/100) |
| #define | NET_LINK_UP_CHECK_INTERVAL (2*HZ) |
| #define | NET_DUPLEX_CHECK_INTERVAL (2*HZ) |
| #define | LED_GRP_0 0 |
| #define | LED_GRP_1 1 |
| #define | LED_GRP_NONE 2 |
| #define | LED_ACTIVITY 0 |
| #define | LED_NOACTIVITY 1 |
| #define | LED_LINK 2 |
| #define | LED_NOLINK 3 |
| #define | NET_LED_SET(x, y) |
Enumerations | |
| enum | duplex { half, full, autoneg } |
Functions | |
| static int | crisv32_ethernet_init (void) |
| static int | crisv32_ethernet_device_init (struct net_device *dev) |
| static int | crisv32_eth_open (struct net_device *dev) |
| static int | crisv32_eth_poll (struct net_device *dev, int *budget) |
| static int | crisv32_eth_close (struct net_device *dev) |
| static int | crisv32_eth_set_mac_address (struct net_device *dev, void *vpntr) |
| static irqreturn_t | crisv32rx_eth_interrupt (int irq, void *dev_id) |
| static irqreturn_t | crisv32tx_eth_interrupt (int irq, void *dev_id) |
| static irqreturn_t | crisv32nw_eth_interrupt (int irq, void *dev_id) |
| static void | crisv32_eth_receive_packet (struct net_device *dev) |
| static int | crisv32_eth_send_packet (struct sk_buff *skb, struct net_device *dev) |
| static void | crisv32_eth_hw_send_packet (unsigned char *buf, int length, void *priv) |
| static void | crisv32_eth_tx_timeout (struct net_device *dev) |
| static void | crisv32_eth_set_multicast_list (struct net_device *dev) |
| static int | crisv32_eth_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd) |
| static int | crisv32_eth_set_config (struct net_device *dev, struct ifmap *map) |
| static void | crisv32_eth_negotiate (struct net_device *dev) |
| static void | crisv32_eth_check_speed (unsigned long idev) |
| static void | crisv32_eth_set_speed (struct net_device *dev, unsigned long speed) |
| static void | crisv32_eth_check_duplex (unsigned long idev) |
| static void | crisv32_eth_set_duplex (struct net_device *dev, enum duplex) |
| static int | crisv32_eth_probe_transceiver (struct net_device *dev) |
| static void | generic_check_speed (struct net_device *dev) |
| static void | generic_check_duplex (struct net_device *dev) |
| static void | broadcom_check_speed (struct net_device *dev) |
| static void | broadcom_check_duplex (struct net_device *dev) |
| static void | tdk_check_speed (struct net_device *dev) |
| static void | tdk_check_duplex (struct net_device *dev) |
| static void | intel_check_speed (struct net_device *dev) |
| static void | intel_check_duplex (struct net_device *dev) |
| static void | national_check_speed (struct net_device *dev) |
| static void | national_check_duplex (struct net_device *dev) |
| static void | vitesse_check_speed (struct net_device *dev) |
| static void | vitesse_check_duplex (struct net_device *dev) |
| static void | crisv32_clear_network_leds (unsigned long dummy) |
| static void | crisv32_set_network_leds (int active, struct net_device *dev) |
| static void | crisv32_eth_reset_tranceiver (struct net_device *dev) |
| static unsigned short | crisv32_eth_get_mdio_reg (struct net_device *dev, unsigned char reg_num) |
| static void | crisv32_eth_set_mdio_reg (struct net_device *dev, unsigned char reg_num, int val) |
| static void | crisv32_eth_send_mdio_cmd (struct net_device *dev, unsigned short cmd, int write_cmd) |
| static void | crisv32_eth_send_mdio_bit (struct net_device *dev, unsigned char bit) |
| static unsigned char | crisv32_eth_receive_mdio_bit (struct net_device *dev) |
| static struct net_device_stats * | crisv32_get_stats (struct net_device *dev) |
| static void | crisv32_start_dma_out (struct crisv32_ethernet_local *np) |
Variables | |
| static struct ethtool_ops | crisv32_ethtool_ops |
| #define ETHER_HEAD_LEN (14) |
| #define LED_ACTIVITY 0 |
Definition at line 113 of file eth_v32.h.
Referenced by crisv32_eth_receive_packet(), crisv32_eth_send_packet(), and crisv32_set_network_leds().
| #define LED_GRP_0 0 |
| #define LED_GRP_1 1 |
| #define LED_GRP_NONE 2 |
Definition at line 111 of file eth_v32.h.
Referenced by crisv32_ethernet_init(), and crisv32_set_network_leds().
| #define LED_LINK 2 |
Definition at line 115 of file eth_v32.h.
Referenced by crisv32_eth_check_speed(), and crisv32_set_network_leds().
| #define LED_NOACTIVITY 1 |
Definition at line 114 of file eth_v32.h.
Referenced by crisv32_clear_network_leds(), and crisv32_set_network_leds().
| #define LED_NOLINK 3 |
Definition at line 116 of file eth_v32.h.
Referenced by crisv32_eth_check_speed(), and crisv32_set_network_leds().
| #define MAX_MEDIA_DATA_SIZE 1522 |
Definition at line 13 of file eth_v32.h.
Referenced by __crisv32_eth_rx_ring_advance(), crisv32_eth_init_rings(), crisv32_eth_receive_packet(), and crisv32_eth_reset_rings().
| #define MDIO_AUX_CTRL_STATUS_REG 0x18 |
Definition at line 45 of file eth_v32.h.
Referenced by broadcom_check_duplex(), and broadcom_check_speed().
| #define MDIO_BC_FULL_DUPLEX_IND 0x1 |
| #define MDIO_BC_SPEED 0x2 |
| #define MDIO_INT_FULL_DUPLEX_IND ( 0x0001 << 9 ) |
| #define MDIO_INT_SPEED ( 0x0001 << 14 ) |
| #define MDIO_INT_STATUS_REG_2 0x0011 |
Definition at line 55 of file eth_v32.h.
Referenced by intel_check_duplex(), and intel_check_speed().
| #define MDIO_NAT_100 (0x0001 << 3) |
| #define MDIO_NAT_1000 (0x0001 << 4) |
| #define MDIO_NAT_FULL_DUPLEX_IND (0x0001 << 1) |
| #define MDIO_NAT_LINK_AN_REG 0x11 |
Definition at line 60 of file eth_v32.h.
Referenced by national_check_duplex(), and national_check_speed().
| #define MDIO_PREAMBLE 0xfffffffful |
| #define MDIO_READ 0x2 |
| #define MDIO_START 0x1 |
Definition at line 39 of file eth_v32.h.
Referenced by crisv32_eth_get_mdio_reg(), crisv32_eth_reset_tranceiver(), and crisv32_eth_set_mdio_reg().
| #define MDIO_TDK_DIAGNOSTIC_DPLX 0x800 |
| #define MDIO_TDK_DIAGNOSTIC_RATE 0x400 |
| #define MDIO_TDK_DIAGNOSTIC_REG 18 |
| #define MDIO_VIT_100 (0x1 << 3) |
| #define MDIO_VIT_1000 (0x2 << 3) |
| #define MDIO_VIT_AUX_STAT 0x1c |
Definition at line 66 of file eth_v32.h.
Referenced by vitesse_check_duplex(), and vitesse_check_speed().
| #define MDIO_WRITE 0x1 |
Definition at line 41 of file eth_v32.h.
Referenced by crisv32_eth_reset_tranceiver(), and crisv32_eth_set_mdio_reg().
| #define NBR_RX_DESC 64 |
Definition at line 15 of file eth_v32.h.
Referenced by crisv32_eth_init_rings(), and crisv32_eth_reset_rings().
| #define NBR_TX_DESC 32 |
Definition at line 16 of file eth_v32.h.
Referenced by crisv32_eth_init_rings(), and crisv32_ethernet_bug().
| #define NET_DUPLEX_CHECK_INTERVAL (2*HZ) |
Definition at line 76 of file eth_v32.h.
Referenced by crisv32_eth_check_duplex(), and crisv32_ethernet_device_init().
| #define NET_FLASH_PAUSE (HZ/100) |
| #define NET_FLASH_TIME (HZ/50) |
Definition at line 73 of file eth_v32.h.
Referenced by crisv32_eth_receive_packet(), and crisv32_eth_send_packet().
| #define NET_LED_SET | ( | x, | |||
| y | ) |
Value:
do { \ if (x == 0) LED_NETWORK_GRP0_SET(y); \ if (x == 1) LED_NETWORK_GRP1_SET(y); \ } while (0)
| #define NET_LINK_UP_CHECK_INTERVAL (2*HZ) |
Definition at line 75 of file eth_v32.h.
Referenced by crisv32_eth_check_speed(), and crisv32_ethernet_device_init().
| static void broadcom_check_duplex | ( | struct net_device * | dev | ) | [static] |
| static void broadcom_check_speed | ( | struct net_device * | dev | ) | [static] |
| static void crisv32_clear_network_leds | ( | unsigned long | dummy | ) | [static] |
| static void crisv32_eth_check_duplex | ( | unsigned long | idev | ) | [static] |
| static void crisv32_eth_check_speed | ( | unsigned long | idev | ) | [static] |
| static int crisv32_eth_close | ( | struct net_device * | dev | ) | [static] |
| static unsigned short crisv32_eth_get_mdio_reg | ( | struct net_device * | dev, | |
| unsigned char | reg_num | |||
| ) | [static] |
| static void crisv32_eth_hw_send_packet | ( | unsigned char * | buf, | |
| int | length, | |||
| void * | priv | |||
| ) | [static] |
| static int crisv32_eth_ioctl | ( | struct net_device * | dev, | |
| struct ifreq * | ifr, | |||
| int | cmd | |||
| ) | [static] |
| static void crisv32_eth_negotiate | ( | struct net_device * | dev | ) | [static] |
| static int crisv32_eth_open | ( | struct net_device * | dev | ) | [static] |
| static int crisv32_eth_poll | ( | struct net_device * | dev, | |
| int * | budget | |||
| ) | [static] |
| static int crisv32_eth_probe_transceiver | ( | struct net_device * | dev | ) | [static] |
| static unsigned char crisv32_eth_receive_mdio_bit | ( | struct net_device * | dev | ) | [static] |
| static void crisv32_eth_receive_packet | ( | struct net_device * | dev | ) | [static] |
| static void crisv32_eth_reset_tranceiver | ( | struct net_device * | dev | ) | [static] |
| static void crisv32_eth_send_mdio_bit | ( | struct net_device * | dev, | |
| unsigned char | bit | |||
| ) | [static] |
| static void crisv32_eth_send_mdio_cmd | ( | struct net_device * | dev, | |
| unsigned short | cmd, | |||
| int | write_cmd | |||
| ) | [static] |
| static int crisv32_eth_send_packet | ( | struct sk_buff * | skb, | |
| struct net_device * | dev | |||
| ) | [static] |
| static int crisv32_eth_set_config | ( | struct net_device * | dev, | |
| struct ifmap * | map | |||
| ) | [static] |
| static void crisv32_eth_set_duplex | ( | struct net_device * | dev, | |
| enum | duplex | |||
| ) | [static] |
| static int crisv32_eth_set_mac_address | ( | struct net_device * | dev, | |
| void * | vpntr | |||
| ) | [static] |
| static void crisv32_eth_set_mdio_reg | ( | struct net_device * | dev, | |
| unsigned char | reg_num, | |||
| int | val | |||
| ) | [static] |
| static void crisv32_eth_set_multicast_list | ( | struct net_device * | dev | ) | [static] |
| static void crisv32_eth_set_speed | ( | struct net_device * | dev, | |
| unsigned long | speed | |||
| ) | [static] |
| static void crisv32_eth_tx_timeout | ( | struct net_device * | dev | ) | [static] |
| static int crisv32_ethernet_device_init | ( | struct net_device * | dev | ) | [static] |
| static int crisv32_ethernet_init | ( | void | ) | [static] |
| static struct net_device_stats* crisv32_get_stats | ( | struct net_device * | dev | ) | [static] |
| static void crisv32_set_network_leds | ( | int | active, | |
| struct net_device * | dev | |||
| ) | [static] |
| static void crisv32_start_dma_out | ( | struct crisv32_ethernet_local * | np | ) | [static] |
| static irqreturn_t crisv32nw_eth_interrupt | ( | int | irq, | |
| void * | dev_id | |||
| ) | [static] |
| static irqreturn_t crisv32rx_eth_interrupt | ( | int | irq, | |
| void * | dev_id | |||
| ) | [static] |
| static irqreturn_t crisv32tx_eth_interrupt | ( | int | irq, | |
| void * | dev_id | |||
| ) | [static] |
| static void generic_check_duplex | ( | struct net_device * | dev | ) | [static] |
| static void generic_check_speed | ( | struct net_device * | dev | ) | [static] |
| static void intel_check_duplex | ( | struct net_device * | dev | ) | [static] |
| static void intel_check_speed | ( | struct net_device * | dev | ) | [static] |
| static void national_check_duplex | ( | struct net_device * | dev | ) | [static] |
| static void national_check_speed | ( | struct net_device * | dev | ) | [static] |
| static void tdk_check_duplex | ( | struct net_device * | dev | ) | [static] |
| static void tdk_check_speed | ( | struct net_device * | dev | ) | [static] |
| static void vitesse_check_duplex | ( | struct net_device * | dev | ) | [static] |
| static void vitesse_check_speed | ( | struct net_device * | dev | ) | [static] |
struct ethtool_ops crisv32_ethtool_ops [static] |
1.5.1