Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | gelic_descr |
struct | gelic_descr_chain |
struct | gelic_vlan_id |
struct | gelic_card |
struct | gelic_port |
Functions | |
struct gelic_descr | __attribute__ ((aligned(32))) |
int | gelic_card_set_irq_mask (struct gelic_card *card, u64 mask) |
void | gelic_card_up (struct gelic_card *card) |
void | gelic_card_down (struct gelic_card *card) |
int | gelic_net_open (struct net_device *netdev) |
int | gelic_net_stop (struct net_device *netdev) |
int | gelic_net_xmit (struct sk_buff *skb, struct net_device *netdev) |
void | gelic_net_set_multi (struct net_device *netdev) |
void | gelic_net_tx_timeout (struct net_device *netdev) |
int | gelic_net_change_mtu (struct net_device *netdev, int new_mtu) |
int | gelic_net_setup_netdev (struct net_device *netdev, struct gelic_card *card) |
void | gelic_net_get_drvinfo (struct net_device *netdev, struct ethtool_drvinfo *info) |
void | gelic_net_poll_controller (struct net_device *netdev) |
#define GELIC_CARD_FREE_RUN_COUNT_TIMER 0x8000000000000000L |
Definition at line 69 of file ps3_gelic_net.h.
#define GELIC_CARD_NUMBER_OF_RX_FRAME 0x1000000000000000L |
Definition at line 67 of file ps3_gelic_net.h.
#define GELIC_CARD_ONE_TIME_COUNT_TIMER 0x4000000000000000L |
Definition at line 68 of file ps3_gelic_net.h.
#define GELIC_CARD_PORT_STATUS_CHANGED 0x0000000020000000L |
Definition at line 59 of file ps3_gelic_net.h.
Definition at line 38 of file ps3_gelic_net.h.
#define GELIC_CARD_RX_DESCR_CHAIN_END 0x0000000000004000L |
Definition at line 52 of file ps3_gelic_net.h.
#define GELIC_CARD_RX_FIFO_FULL_ERR 0x0000000000002000L |
Definition at line 51 of file ps3_gelic_net.h.
#define GELIC_CARD_RX_FLAGGED_DESCR 0x0040000000000000L |
Definition at line 64 of file ps3_gelic_net.h.
#define GELIC_CARD_RX_INVALID_DESCR_ERR 0x0000000000008000L |
Definition at line 53 of file ps3_gelic_net.h.
#define GELIC_CARD_RX_PROTECTION_ERR 0x0000000004000000L |
Definition at line 57 of file ps3_gelic_net.h.
#define GELIC_CARD_RX_RAM_FULL_ERR 0x0000000000000002L |
Definition at line 48 of file ps3_gelic_net.h.
#define GELIC_CARD_RX_RESPONCE_ERR 0x0000000000100000L |
Definition at line 55 of file ps3_gelic_net.h.
#define GELIC_CARD_RXINT |
Definition at line 74 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_DESCR_CHAIN_END 0x0100000000000000L |
Definition at line 66 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_FLAGGED_DESCR 0x0004000000000000L |
Definition at line 63 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_INVALID_DESCR_ERR 0x0000000000000008L |
Definition at line 50 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_PROTECTION_ERR 0x0000000000400000L |
Definition at line 56 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_RAM_FULL_ERR 0x0000000000000001L |
Definition at line 47 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_RESPONCE_ERR 0x0000000000010000L |
Definition at line 54 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_SHORT_FRAME_ERR 0x0000000000000004L |
Definition at line 49 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_TCP_UDP_CHECKSUM_ERR 0x0000000008000000L |
Definition at line 58 of file ps3_gelic_net.h.
#define GELIC_CARD_TX_TRANSFER_END 0x0080000000000000L |
Definition at line 65 of file ps3_gelic_net.h.
#define GELIC_CARD_TXINT GELIC_CARD_TX_DESCR_CHAIN_END |
Definition at line 72 of file ps3_gelic_net.h.
#define GELIC_CARD_WLAN_COMMAND_COMPLETED 0x0000000080000000L |
Definition at line 61 of file ps3_gelic_net.h.
#define GELIC_CARD_WLAN_EVENT_RECEIVED 0x0000000040000000L |
Definition at line 60 of file ps3_gelic_net.h.
#define GELIC_DESCR_DATA_ERROR_CHK_MASK (GELIC_DESCR_RXIPCHKERR | GELIC_DESCR_RXTCPCHKERR) |
Definition at line 124 of file ps3_gelic_net.h.
#define GELIC_DESCR_DATA_STATUS_CHK_MASK (GELIC_DESCR_RXIPCHK | GELIC_DESCR_RXTCPCHK) |
Definition at line 95 of file ps3_gelic_net.h.
#define GELIC_DESCR_DMA_CMD_NO_CHKSUM |
Definition at line 160 of file ps3_gelic_net.h.
#define GELIC_DESCR_DMA_CMD_TCP_CHKSUM |
Definition at line 164 of file ps3_gelic_net.h.
#define GELIC_DESCR_DMA_CMD_UDP_CHKSUM |
Definition at line 168 of file ps3_gelic_net.h.
#define GELIC_DESCR_DMA_STAT_MASK (0xf0000000) |
Definition at line 139 of file ps3_gelic_net.h.
#define GELIC_DESCR_SIZE (32) |
Definition at line 238 of file ps3_gelic_net.h.
#define GELIC_NET_BROADCAST_ADDR 0xffffffffffffL |
Definition at line 41 of file ps3_gelic_net.h.
#define GELIC_NET_MAX_MTU VLAN_ETH_FRAME_LEN |
Definition at line 35 of file ps3_gelic_net.h.
Definition at line 43 of file ps3_gelic_net.h.
#define GELIC_NET_MIN_MTU VLAN_ETH_ZLEN |
Definition at line 36 of file ps3_gelic_net.h.
#define GELIC_NET_NAPI_WEIGHT (GELIC_NET_RX_DESCRIPTORS) |
Definition at line 40 of file ps3_gelic_net.h.
#define GELIC_NET_RX_DESCRIPTORS 128 /* num of descriptors */ |
Definition at line 32 of file ps3_gelic_net.h.
#define GELIC_NET_RXBUF_ALIGN 128 |
Definition at line 37 of file ps3_gelic_net.h.
#define GELIC_NET_TX_DESCRIPTORS 128 /* num of descriptors */ |
Definition at line 33 of file ps3_gelic_net.h.
#define GELIC_NET_WATCHDOG_TIMEOUT 5*HZ |
Definition at line 39 of file ps3_gelic_net.h.
Definition at line 128 of file ps3_gelic_net.h.
Definition at line 172 of file ps3_gelic_net.h.
enum gelic_descr_rx_error |
Definition at line 107 of file ps3_gelic_net.h.
GELIC_DESCR_RXDMADU | |
GELIC_DESCR_RXLSTFBF | |
GELIC_DESCR_RXIPCHK | |
GELIC_DESCR_RXTCPCHK | |
GELIC_DESCR_RXWTPKT | |
GELIC_DESCR_RXVLNPKT | |
GELIC_DESCR_RXRRECNUM |
Definition at line 78 of file ps3_gelic_net.h.
GELIC_DESCR_TX_DMA_IKE | |
GELIC_DESCR_TX_DMA_FRAME_TAIL | |
GELIC_DESCR_TX_DMA_TCP_CHKSUM | |
GELIC_DESCR_TX_DMA_UDP_CHKSUM | |
GELIC_DESCR_TX_DMA_NO_CHKSUM | |
GELIC_DESCR_TX_DMA_CHAIN_END |
Definition at line 142 of file ps3_gelic_net.h.
Definition at line 99 of file ps3_gelic_net.h.
GELIC_LV1_ETHER_LINK_UP | |
GELIC_LV1_ETHER_FULL_DUPLEX | |
GELIC_LV1_ETHER_AUTO_NEG | |
GELIC_LV1_ETHER_SPEED_10 | |
GELIC_LV1_ETHER_SPEED_100 | |
GELIC_LV1_ETHER_SPEED_1000 | |
GELIC_LV1_ETHER_SPEED_MASK |
Definition at line 212 of file ps3_gelic_net.h.
Definition at line 180 of file ps3_gelic_net.h.
enum gelic_lv1_phy |
Definition at line 233 of file ps3_gelic_net.h.
enum gelic_lv1_vlan_index |
GELIC_LV1_VLAN_TX_ETHERNET_0 | |
GELIC_LV1_VLAN_TX_WIRELESS | |
GELIC_LV1_VLAN_RX_ETHERNET_0 | |
GELIC_LV1_VLAN_RX_WIRELESS |
Definition at line 223 of file ps3_gelic_net.h.
Definition at line 193 of file ps3_gelic_net.h.
Definition at line 206 of file ps3_gelic_net.h.
enum gelic_lv1_wol_mp_arg |
Definition at line 200 of file ps3_gelic_net.h.
enum gelic_port_type |
Definition at line 240 of file ps3_gelic_net.h.
struct gelic_descr __attribute__ | ( | (aligned(32)) | ) |
void gelic_card_down | ( | struct gelic_card * | card | ) |
Definition at line 147 of file ps3_gelic_net.c.
int gelic_card_set_irq_mask | ( | struct gelic_card * | card, |
u64 | mask | ||
) |
Definition at line 69 of file ps3_gelic_net.c.
void gelic_card_up | ( | struct gelic_card * | card | ) |
Definition at line 130 of file ps3_gelic_net.c.
int gelic_net_change_mtu | ( | struct net_device * | netdev, |
int | new_mtu | ||
) |
gelic_net_change_mtu - changes the MTU of an interface : interface device structure : new MTU value
returns 0 on success, <0 on failure
Definition at line 1131 of file ps3_gelic_net.c.
void gelic_net_get_drvinfo | ( | struct net_device * | netdev, |
struct ethtool_drvinfo * | info | ||
) |
Definition at line 1227 of file ps3_gelic_net.c.
int gelic_net_open | ( | struct net_device * | netdev | ) |
gelic_net_open - called upon ifconfig up : interface device structure
returns 0 on success, <0 on failure
gelic_net_open allocates all the descriptors and memory needed for operation, sets up multicast list and enables interrupts
Definition at line 1212 of file ps3_gelic_net.c.
void gelic_net_poll_controller | ( | struct net_device * | netdev | ) |
void gelic_net_set_multi | ( | struct net_device * | netdev | ) |
gelic_net_set_multi - sets multicast addresses and promisc flags : interface device structure
gelic_net_set_multi configures multicast addresses as needed for the netdev interface. It also sets up multicast, allmulti and promisc flags appropriately
Definition at line 548 of file ps3_gelic_net.c.
int gelic_net_setup_netdev | ( | struct net_device * | netdev, |
struct gelic_card * | card | ||
) |
gelic_ether_setup_netdev - initialization of net_device : net_device structure : card structure
Returns 0 on success or <0 on failure
gelic_ether_setup_netdev initializes the net_device structure and register it.
Definition at line 1492 of file ps3_gelic_net.c.
int gelic_net_stop | ( | struct net_device * | netdev | ) |
gelic_net_stop - called upon ifconfig down : interface device structure
always returns 0
Definition at line 673 of file ps3_gelic_net.c.
void gelic_net_tx_timeout | ( | struct net_device * | netdev | ) |
gelic_net_tx_timeout - called when the tx timeout watchdog kicks in. : interface device structure
called, if tx hangs. Schedules a task that resets the interface
Definition at line 1439 of file ps3_gelic_net.c.
int gelic_net_xmit | ( | struct sk_buff * | skb, |
struct net_device * | netdev | ||
) |
gelic_net_xmit - transmits a frame over the device : packet to send out : interface device structure
returns 0 on success, <0 on failure
Definition at line 857 of file ps3_gelic_net.c.
__be32 buf_addr |
Definition at line 264 of file ps3_gelic_net.h.
__be32 buf_size |
Definition at line 265 of file ps3_gelic_net.h.
dma_addr_t bus_addr |
Definition at line 275 of file ps3_gelic_net.h.
__be32 data_error |
Definition at line 271 of file ps3_gelic_net.h.
__be32 data_status |
Definition at line 270 of file ps3_gelic_net.h.
__be32 dmac_cmd_status |
Definition at line 267 of file ps3_gelic_net.h.
struct gelic_descr* next |
Definition at line 276 of file ps3_gelic_net.h.
__be32 next_descr_addr |
Definition at line 266 of file ps3_gelic_net.h.
struct gelic_descr* prev |
Definition at line 277 of file ps3_gelic_net.h.
__be32 result_size |
Definition at line 268 of file ps3_gelic_net.h.
Definition at line 274 of file ps3_gelic_net.h.
__be32 valid_size |
Definition at line 269 of file ps3_gelic_net.h.