Go to the documentation of this file.
13 #define SEEQ8005_IO_EXTENT 16
15 #define SEEQ_B (ioaddr)
17 #define SEEQ_CMD (SEEQ_B)
18 #define SEEQ_STATUS (SEEQ_B)
19 #define SEEQ_CFG1 (SEEQ_B + 2)
20 #define SEEQ_CFG2 (SEEQ_B + 4)
21 #define SEEQ_REA (SEEQ_B + 6)
22 #define SEEQ_RPR (SEEQ_B + 10)
23 #define SEEQ_TPR (SEEQ_B + 12)
24 #define SEEQ_DMAAR (SEEQ_B + 14)
25 #define SEEQ_BUFFER (SEEQ_B + 8)
27 #define DEFAULT_TEA (0x3f)
29 #define SEEQCMD_DMA_INT_EN (0x0001)
30 #define SEEQCMD_RX_INT_EN (0x0002)
31 #define SEEQCMD_TX_INT_EN (0x0004)
32 #define SEEQCMD_WINDOW_INT_EN (0x0008)
33 #define SEEQCMD_INT_MASK (0x000f)
35 #define SEEQCMD_DMA_INT_ACK (0x0010)
36 #define SEEQCMD_RX_INT_ACK (0x0020)
37 #define SEEQCMD_TX_INT_ACK (0x0040)
38 #define SEEQCMD_WINDOW_INT_ACK (0x0080)
39 #define SEEQCMD_ACK_ALL (0x00f0)
41 #define SEEQCMD_SET_DMA_ON (0x0100)
42 #define SEEQCMD_SET_RX_ON (0x0200)
43 #define SEEQCMD_SET_TX_ON (0x0400)
44 #define SEEQCMD_SET_DMA_OFF (0x0800)
45 #define SEEQCMD_SET_RX_OFF (0x1000)
46 #define SEEQCMD_SET_TX_OFF (0x2000)
47 #define SEEQCMD_SET_ALL_OFF (0x3800)
49 #define SEEQCMD_FIFO_READ (0x4000)
50 #define SEEQCMD_FIFO_WRITE (0x8000)
52 #define SEEQSTAT_DMA_INT_EN (0x0001)
53 #define SEEQSTAT_RX_INT_EN (0x0002)
54 #define SEEQSTAT_TX_INT_EN (0x0004)
55 #define SEEQSTAT_WINDOW_INT_EN (0x0008)
57 #define SEEQSTAT_DMA_INT (0x0010)
58 #define SEEQSTAT_RX_INT (0x0020)
59 #define SEEQSTAT_TX_INT (0x0040)
60 #define SEEQSTAT_WINDOW_INT (0x0080)
61 #define SEEQSTAT_ANY_INT (0x00f0)
63 #define SEEQSTAT_DMA_ON (0x0100)
64 #define SEEQSTAT_RX_ON (0x0200)
65 #define SEEQSTAT_TX_ON (0x0400)
67 #define SEEQSTAT_FIFO_FULL (0x2000)
68 #define SEEQSTAT_FIFO_EMPTY (0x4000)
69 #define SEEQSTAT_FIFO_DIR (0x8000)
71 #define SEEQCFG1_BUFFER_MASK (0x000f)
72 #define SEEQCFG1_BUFFER_MAC0 (0x0000)
73 #define SEEQCFG1_BUFFER_MAC1 (0x0001)
74 #define SEEQCFG1_BUFFER_MAC2 (0x0002)
75 #define SEEQCFG1_BUFFER_MAC3 (0x0003)
76 #define SEEQCFG1_BUFFER_MAC4 (0x0004)
77 #define SEEQCFG1_BUFFER_MAC5 (0x0005)
78 #define SEEQCFG1_BUFFER_PROM (0x0006)
79 #define SEEQCFG1_BUFFER_TEA (0x0007)
80 #define SEEQCFG1_BUFFER_BUFFER (0x0008)
81 #define SEEQCFG1_BUFFER_INT_VEC (0x0009)
83 #define SEEQCFG1_DMA_INTVL_MASK (0x0030)
84 #define SEEQCFG1_DMA_CONT (0x0000)
85 #define SEEQCFG1_DMA_800ns (0x0010)
86 #define SEEQCFG1_DMA_1600ns (0x0020)
87 #define SEEQCFG1_DMA_3200ns (0x0030)
89 #define SEEQCFG1_DMA_LEN_MASK (0x00c0)
90 #define SEEQCFG1_DMA_LEN1 (0x0000)
91 #define SEEQCFG1_DMA_LEN2 (0x0040)
92 #define SEEQCFG1_DMA_LEN4 (0x0080)
93 #define SEEQCFG1_DMA_LEN8 (0x00c0)
95 #define SEEQCFG1_MAC_MASK (0x3f00)
96 #define SEEQCFG1_MAC0_EN (0x0100)
97 #define SEEQCFG1_MAC1_EN (0x0200)
98 #define SEEQCFG1_MAC2_EN (0x0400)
99 #define SEEQCFG1_MAC3_EN (0x0800)
100 #define SEEQCFG1_MAC4_EN (0x1000)
101 #define SEEQCFG1_MAC5_EN (0x2000)
103 #define SEEQCFG1_MATCH_MASK (0xc000)
104 #define SEEQCFG1_MATCH_SPECIFIC (0x0000)
105 #define SEEQCFG1_MATCH_BROAD (0x4000)
106 #define SEEQCFG1_MATCH_MULTI (0x8000)
107 #define SEEQCFG1_MATCH_ALL (0xc000)
109 #define SEEQCFG1_DEFAULT (SEEQCFG1_BUFFER_BUFFER | SEEQCFG1_MAC0_EN | SEEQCFG1_MATCH_BROAD)
111 #define SEEQCFG2_BYTE_SWAP (0x0001)
112 #define SEEQCFG2_AUTO_REA (0x0002)
114 #define SEEQCFG2_CRC_ERR_EN (0x0008)
115 #define SEEQCFG2_DRIBBLE_EN (0x0010)
116 #define SEEQCFG2_SHORT_EN (0x0020)
118 #define SEEQCFG2_SLOTSEL (0x0040)
119 #define SEEQCFG2_NO_PREAM (0x0080)
120 #define SEEQCFG2_ADDR_LEN (0x0100)
121 #define SEEQCFG2_REC_CRC (0x0200)
122 #define SEEQCFG2_XMIT_NO_CRC (0x0400)
123 #define SEEQCFG2_LOOPBACK (0x0800)
124 #define SEEQCFG2_CTRLO (0x1000)
125 #define SEEQCFG2_RESET (0x8000)
140 #define SEEQPKTH_BAB_INT_EN (0x01)
141 #define SEEQPKTH_COL_INT_EN (0x02)
142 #define SEEQPKTH_COL16_INT_EN (0x04)
143 #define SEEQPKTH_XMIT_INT_EN (0x08)
144 #define SEEQPKTH_DATA_FOLLOWS (0x20)
145 #define SEEQPKTH_CHAIN (0x40)
146 #define SEEQPKTH_XMIT (0x80)
148 #define SEEQPKTS_BABBLE (0x0100)
149 #define SEEQPKTS_OVERSIZE (0x0100)
150 #define SEEQPKTS_COLLISION (0x0200)
151 #define SEEQPKTS_CRC_ERR (0x0200)
152 #define SEEQPKTS_COLL16 (0x0400)
153 #define SEEQPKTS_DRIB (0x0400)
154 #define SEEQPKTS_SHORT (0x0800)
155 #define SEEQPKTS_DONE (0x8000)
156 #define SEEQPKTS_ANY_ERROR (0x0f00)