Go to the documentation of this file.
16 #define ELECTRABUZZ_ID 0
17 #define MAGNEMITE_ID 0x1a01
20 #define FT1000_REG_DPRAM_ADDR 0x000E
21 #define FT1000_REG_SUP_CTRL 0x0020
22 #define FT1000_REG_SUP_STAT 0x0022
23 #define FT1000_REG_RESET 0x0024
24 #define FT1000_REG_SUP_ISR 0x0026
25 #define FT1000_REG_SUP_IMASK 0x0028
26 #define FT1000_REG_DOORBELL 0x002a
27 #define FT1000_REG_ASIC_ID 0x002e
30 #define FT1000_REG_UFIFO_STAT 0x0000
31 #define FT1000_REG_UFIFO_BEG 0x0002
32 #define FT1000_REG_UFIFO_MID 0x0004
33 #define FT1000_REG_UFIFO_END 0x0006
34 #define FT1000_REG_DFIFO_STAT 0x0008
35 #define FT1000_REG_DFIFO 0x000A
36 #define FT1000_REG_DPRAM_DATA 0x000C
37 #define FT1000_REG_WATERMARK 0x0010
40 #define FT1000_REG_MAG_UFDR 0x0000
41 #define FT1000_REG_MAG_UFDRL 0x0000
42 #define FT1000_REG_MAG_UFDRH 0x0002
43 #define FT1000_REG_MAG_UFER 0x0004
44 #define FT1000_REG_MAG_UFSR 0x0006
45 #define FT1000_REG_MAG_DFR 0x0008
46 #define FT1000_REG_MAG_DFRL 0x0008
47 #define FT1000_REG_MAG_DFRH 0x000a
48 #define FT1000_REG_MAG_DFSR 0x000c
49 #define FT1000_REG_MAG_DPDATA 0x0010
50 #define FT1000_REG_MAG_DPDATAL 0x0010
51 #define FT1000_REG_MAG_DPDATAH 0x0012
52 #define FT1000_REG_MAG_WATERMARK 0x002c
53 #define FT1000_REG_MAG_VERSION 0x0030
56 #define FT1000_DPRAM_TX_BASE 0x0002
57 #define FT1000_DPRAM_RX_BASE 0x0800
58 #define FT1000_FIFO_LEN 0x07FC
59 #define FT1000_HI_HO 0x07FE
60 #define FT1000_DSP_STATUS 0x0FFE
61 #define FT1000_DSP_LED 0x0FFA
62 #define FT1000_DSP_CON_STATE 0x0FF8
63 #define FT1000_DPRAM_FEFE 0x0002
64 #define FT1000_DSP_TIMER0 0x1FF0
65 #define FT1000_DSP_TIMER1 0x1FF2
66 #define FT1000_DSP_TIMER2 0x1FF4
67 #define FT1000_DSP_TIMER3 0x1FF6
70 #define FT1000_DPRAM_MAG_TX_BASE 0x0000
71 #define FT1000_DPRAM_MAG_RX_BASE 0x0200
73 #define FT1000_MAG_FIFO_LEN 0x1FF
74 #define FT1000_MAG_FIFO_LEN_INDX 0x1
75 #define FT1000_MAG_HI_HO 0x1FF
76 #define FT1000_MAG_HI_HO_INDX 0x0
77 #define FT1000_MAG_DSP_LED 0x3FE
78 #define FT1000_MAG_DSP_LED_INDX 0x0
79 #define FT1000_MAG_DSP_CON_STATE 0x3FE
80 #define FT1000_MAG_DSP_CON_STATE_INDX 0x1
81 #define FT1000_MAG_DPRAM_FEFE 0x000
82 #define FT1000_MAG_DPRAM_FEFE_INDX 0x0
83 #define FT1000_MAG_DSP_TIMER0 0x3FC
84 #define FT1000_MAG_DSP_TIMER0_INDX 0x1
85 #define FT1000_MAG_DSP_TIMER1 0x3FC
86 #define FT1000_MAG_DSP_TIMER1_INDX 0x0
87 #define FT1000_MAG_DSP_TIMER2 0x3FD
88 #define FT1000_MAG_DSP_TIMER2_INDX 0x1
89 #define FT1000_MAG_DSP_TIMER3 0x3FD
90 #define FT1000_MAG_DSP_TIMER3_INDX 0x0
91 #define FT1000_MAG_TOTAL_LEN 0x200
92 #define FT1000_MAG_TOTAL_LEN_INDX 0x1
93 #define FT1000_MAG_PH_LEN 0x200
94 #define FT1000_MAG_PH_LEN_INDX 0x0
95 #define FT1000_MAG_PORT_ID 0x201
96 #define FT1000_MAG_PORT_ID_INDX 0x0
98 #define HOST_INTF_LE 0x0
99 #define HOST_INTF_BE 0x1
102 #define FT1000_DB_DPRAM_RX 0x0001
103 #define FT1000_DB_DNLD_RX 0x0002
104 #define FT1000_ASIC_RESET_REQ 0x0004
105 #define FT1000_DSP_ASIC_RESET 0x0008
106 #define FT1000_DB_COND_RESET 0x0010
109 #define FT1000_DB_DPRAM_TX 0x0100
110 #define FT1000_DB_DNLD_TX 0x0200
111 #define FT1000_ASIC_RESET_DSP 0x0400
112 #define FT1000_DB_HB 0x1000
118 #define hi_mag 0x6968
119 #define ho_mag 0x6f68
123 #define ISR_EMPTY 0x00
124 #define ISR_DOORBELL_ACK 0x01
125 #define ISR_DOORBELL_PEND 0x02
127 #define ISR_WATERMARK 0x08
130 #define ISR_MASK_NONE 0x0000
131 #define ISR_MASK_DOORBELL_ACK 0x0001
132 #define ISR_MASK_DOORBELL_PEND 0x0002
133 #define ISR_MASK_RCV 0x0004
134 #define ISR_MASK_WATERMARK 0x0008
135 #define ISR_MASK_ALL 0xffff
137 #define ISR_DEFAULT_MASK 0x7ff9
140 #define DSP_RESET_BIT 0x0001
142 #define ASIC_RESET_BIT 0x0002
144 #define DSP_UNENCRYPTED 0x0004
145 #define DSP_ENCRYPTED 0x0008
146 #define EFUSE_MEM_DISABLE 0x0040
151 #define DSPAIRID 0x90
152 #define DRIVERID 0x00
153 #define NETWORKID 0x20
156 #define MAX_CMD_SQSIZE 1780
158 #define ENET_MAX_SIZE 1514
159 #define ENET_HEADER_SIZE 14
164 #define MAX_DSP_SESS_REC 1024
166 #define DSP_QID_OFFSET 4
169 #define MEDIA_STATE 0x0010
170 #define TIME_UPDATE 0x0020
171 #define DSP_PROVISION 0x0030
172 #define DSP_INIT_MSG 0x0050
173 #define DSP_HIBERNATE 0x0060
174 #define DSP_STORE_INFO 0x0070
175 #define DSP_GET_INFO 0x0071
176 #define GET_DRV_ERR_RPT_MSG 0x0073
177 #define RSP_DRV_ERR_RPT_MSG 0x0074
180 #define DSP_HB_INFO 0x7ef0
181 #define DSP_FIFO_INFO 0x7ef1
182 #define DSP_CONDRESET_INFO 0x7ef2
183 #define DSP_CMDLEN_INFO 0x7ef3
184 #define DSP_CMDPHCKSUM_INFO 0x7ef4
185 #define DSP_PKTPHCKSUM_INFO 0x7ef5
186 #define DSP_PKTLEN_INFO 0x7ef6
187 #define DSP_USER_RESET 0x7ef7
188 #define FIFO_FLUSH_MAXLIMIT 0x7ef8
189 #define FIFO_FLUSH_BADCNT 0x7ef9
190 #define FIFO_ZERO_LEN 0x7efa