Go to the documentation of this file.
32 #define GELIC_NET_RX_DESCRIPTORS 128
33 #define GELIC_NET_TX_DESCRIPTORS 128
35 #define GELIC_NET_MAX_MTU VLAN_ETH_FRAME_LEN
36 #define GELIC_NET_MIN_MTU VLAN_ETH_ZLEN
37 #define GELIC_NET_RXBUF_ALIGN 128
38 #define GELIC_CARD_RX_CSUM_DEFAULT 1
39 #define GELIC_NET_WATCHDOG_TIMEOUT 5*HZ
40 #define GELIC_NET_NAPI_WEIGHT (GELIC_NET_RX_DESCRIPTORS)
41 #define GELIC_NET_BROADCAST_ADDR 0xffffffffffffL
43 #define GELIC_NET_MC_COUNT_MAX 32
47 #define GELIC_CARD_TX_RAM_FULL_ERR 0x0000000000000001L
48 #define GELIC_CARD_RX_RAM_FULL_ERR 0x0000000000000002L
49 #define GELIC_CARD_TX_SHORT_FRAME_ERR 0x0000000000000004L
50 #define GELIC_CARD_TX_INVALID_DESCR_ERR 0x0000000000000008L
51 #define GELIC_CARD_RX_FIFO_FULL_ERR 0x0000000000002000L
52 #define GELIC_CARD_RX_DESCR_CHAIN_END 0x0000000000004000L
53 #define GELIC_CARD_RX_INVALID_DESCR_ERR 0x0000000000008000L
54 #define GELIC_CARD_TX_RESPONCE_ERR 0x0000000000010000L
55 #define GELIC_CARD_RX_RESPONCE_ERR 0x0000000000100000L
56 #define GELIC_CARD_TX_PROTECTION_ERR 0x0000000000400000L
57 #define GELIC_CARD_RX_PROTECTION_ERR 0x0000000004000000L
58 #define GELIC_CARD_TX_TCP_UDP_CHECKSUM_ERR 0x0000000008000000L
59 #define GELIC_CARD_PORT_STATUS_CHANGED 0x0000000020000000L
60 #define GELIC_CARD_WLAN_EVENT_RECEIVED 0x0000000040000000L
61 #define GELIC_CARD_WLAN_COMMAND_COMPLETED 0x0000000080000000L
63 #define GELIC_CARD_TX_FLAGGED_DESCR 0x0004000000000000L
64 #define GELIC_CARD_RX_FLAGGED_DESCR 0x0040000000000000L
65 #define GELIC_CARD_TX_TRANSFER_END 0x0080000000000000L
66 #define GELIC_CARD_TX_DESCR_CHAIN_END 0x0100000000000000L
67 #define GELIC_CARD_NUMBER_OF_RX_FRAME 0x1000000000000000L
68 #define GELIC_CARD_ONE_TIME_COUNT_TIMER 0x4000000000000000L
69 #define GELIC_CARD_FREE_RUN_COUNT_TIMER 0x8000000000000000L
72 #define GELIC_CARD_TXINT GELIC_CARD_TX_DESCR_CHAIN_END
74 #define GELIC_CARD_RXINT (GELIC_CARD_RX_DESCR_CHAIN_END | \
75 GELIC_CARD_NUMBER_OF_RX_FRAME)
95 #define GELIC_DESCR_DATA_STATUS_CHK_MASK \
96 (GELIC_DESCR_RXIPCHK | GELIC_DESCR_RXTCPCHK)
124 #define GELIC_DESCR_DATA_ERROR_CHK_MASK \
125 (GELIC_DESCR_RXIPCHKERR | GELIC_DESCR_RXTCPCHKERR)
139 #define GELIC_DESCR_DMA_STAT_MASK (0xf0000000)
160 #define GELIC_DESCR_DMA_CMD_NO_CHKSUM \
161 (GELIC_DESCR_DMA_CARDOWNED | GELIC_DESCR_TX_DMA_IKE | \
162 GELIC_DESCR_TX_DMA_NO_CHKSUM)
164 #define GELIC_DESCR_DMA_CMD_TCP_CHKSUM \
165 (GELIC_DESCR_DMA_CARDOWNED | GELIC_DESCR_TX_DMA_IKE | \
166 GELIC_DESCR_TX_DMA_TCP_CHKSUM)
168 #define GELIC_DESCR_DMA_CMD_UDP_CHKSUM \
169 (GELIC_DESCR_DMA_CARDOWNED | GELIC_DESCR_TX_DMA_IKE | \
170 GELIC_DESCR_TX_DMA_UDP_CHKSUM)
238 #define GELIC_DESCR_SIZE (32)
338 return ((
struct gelic_port *)netdev_priv(d))->card;
346 return &card->
dev->core;
350 return card->
dev->bus_id;
354 return card->
dev->dev_id;
362 #ifdef CONFIG_PPC_EARLY_DEBUG_PS3GELIC