3 * \brief Solarflare sfn5122f driver: Constants
9 * Copyright (c) 2007, 2008, 2009, ETH Zurich.
10 * All rights reserved.
12 * This file is distributed under the terms in the attached LICENSE file.
13 * If you do not find this file, copies can be found by writing to:
14 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
20 #include <dev/sfn5122f_dev.h>
21 #include <dev/sfn5122f_q_dev.h>
26 #define DEVICE_ID 0x803
28 #define TX_DESC_CACHE_SIZE 16
29 #define TX_ENTRIES 1024
30 #define TX_DC_BASE 0x11000
35 #define EV_CODE_DRV_GEN 7
36 #define EV_CODE_USER 8
37 #define EV_CODE_MCDI 12
38 #define EV_CODE_GLOBAL 6
40 /* for each TX/RX entry one entry plus an additonal 2 for mcdi completion
41 and link state events */
42 #define EV_ENTRIES 4096
45 #define RX_DESC_CACHE_SIZE 64
46 #define RX_ENTRIES 2048
47 #define RX_DC_BASE 0xD000
48 // calculcat max frame length
51 /* PHY and MAC stats */
52 #define NUM_MAC_STATS 0x61
53 // Numer of buffer table entries for each type of queue
54 #define NUM_ENT_EVQ ((EV_ENTRIES*8)/BUF_SIZE)
55 #define NUM_ENT_RX ((RX_ENTRIES*8)/BUF_SIZE)
56 #define NUM_ENT_TX ((TX_ENTRIES*8) / BUF_SIZE)
57 #define NUM_ENT_RX_USR ((RX_ENTRIES*4) / BUF_SIZE)
58 #define MAX_BUF_TBL_ENTRIES 147456
61 #define NUM_FILTERS_IP 8192
62 #define NUM_FILTERS_MAC 512
65 #endif /* SFN5122F_H_ */