1 1.3 martin /* $NetBSD: if_iereg.h,v 1.3 2008/04/28 20:23:10 martin Exp $ */ 2 1.1 reinoud 3 1.1 reinoud /* 4 1.1 reinoud * Copyright (C) 1994 Wolfgang Solfrank. 5 1.1 reinoud * Copyright (C) 1994 TooLs GmbH. 6 1.1 reinoud * All rights reserved. 7 1.1 reinoud * 8 1.1 reinoud * Redistribution and use in source and binary forms, with or without 9 1.1 reinoud * modification, are permitted provided that the following conditions 10 1.1 reinoud * are met: 11 1.1 reinoud * 1. Redistributions of source code must retain the above copyright 12 1.1 reinoud * notice, this list of conditions and the following disclaimer. 13 1.1 reinoud * 2. Redistributions in binary form must reproduce the above copyright 14 1.1 reinoud * notice, this list of conditions and the following disclaimer in the 15 1.1 reinoud * documentation and/or other materials provided with the distribution. 16 1.1 reinoud * 3. All advertising materials mentioning features or use of this software 17 1.1 reinoud * must display the following acknowledgement: 18 1.1 reinoud * This product includes software developed by TooLs GmbH. 19 1.1 reinoud * 4. The name of TooLs GmbH may not be used to endorse or promote products 20 1.1 reinoud * derived from this software without specific prior written permission. 21 1.1 reinoud * 22 1.1 reinoud * THIS SOFTWARE IS PROVIDED BY TOOLS GMBH ``AS IS'' AND ANY EXPRESS OR 23 1.1 reinoud * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 24 1.1 reinoud * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 25 1.1 reinoud * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 26 1.1 reinoud * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 27 1.1 reinoud * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; 28 1.1 reinoud * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 29 1.1 reinoud * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 30 1.1 reinoud * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 31 1.1 reinoud * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 32 1.1 reinoud */ 33 1.1 reinoud 34 1.1 reinoud #define IE_PAGE 0 35 1.1 reinoud 36 1.1 reinoud #define IE_CONTROL 1 37 1.1 reinoud #define IE_CONT_RESET 1 38 1.1 reinoud #define IE_CONT_LOOP 2 39 1.1 reinoud #define IE_CONT_ATTN 4 40 1.1 reinoud #define IE_CONT_CLI 8 41 1.1 reinoud 42 1.1 reinoud #define IE_MEMSIZE 65536 43 1.1 reinoud #define IE_PAGESIZE 4096 44 1.1 reinoud #define IE_MEMOFF 0x2000 45 1.1 reinoud #define IE_COFF2POFF(off) ((off) % IE_PAGESIZE * 2) 46 1.1 reinoud #define IE_COFF2PAGE(off) (((off) % IE_MEMSIZE) / IE_PAGESIZE) 47 1.1 reinoud 48 1.1 reinoud #define IE_ISCP_ADDR (IE_SCP_ADDR - sizeof(struct ie_int_sys_conf_ptr)) 49 1.1 reinoud #define IE_IBASE (0x1000000 - IE_MEMSIZE) 50 1.1 reinoud #define IE_SCB_OFF 0 51 1.1 reinoud 52 1.1 reinoud /*- 53 1.1 reinoud * Copyright (c) 1998 The NetBSD Foundation, Inc. 54 1.1 reinoud * All rights reserved. 55 1.1 reinoud * 56 1.1 reinoud * This code is derived from software contributed to The NetBSD Foundation 57 1.1 reinoud * by Paul Kranenburg. 58 1.1 reinoud * 59 1.1 reinoud * Redistribution and use in source and binary forms, with or without 60 1.1 reinoud * modification, are permitted provided that the following conditions 61 1.1 reinoud * are met: 62 1.1 reinoud * 1. Redistributions of source code must retain the above copyright 63 1.1 reinoud * notice, this list of conditions and the following disclaimer. 64 1.1 reinoud * 2. Redistributions in binary form must reproduce the above copyright 65 1.1 reinoud * notice, this list of conditions and the following disclaimer in the 66 1.1 reinoud * documentation and/or other materials provided with the distribution. 67 1.1 reinoud * 68 1.1 reinoud * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 69 1.1 reinoud * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 70 1.1 reinoud * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 71 1.1 reinoud * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 72 1.1 reinoud * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 73 1.1 reinoud * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 74 1.1 reinoud * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 75 1.1 reinoud * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 76 1.1 reinoud * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 77 1.1 reinoud * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 78 1.1 reinoud * POSSIBILITY OF SUCH DAMAGE. 79 1.1 reinoud */ 80 1.1 reinoud 81 1.1 reinoud /*- 82 1.1 reinoud * Copyright (c) 1992, University of Vermont and State Agricultural College. 83 1.1 reinoud * Copyright (c) 1992, Garrett A. Wollman. 84 1.1 reinoud * All rights reserved. 85 1.1 reinoud * 86 1.1 reinoud * Redistribution and use in source and binary forms, with or without 87 1.1 reinoud * modification, are permitted provided that the following conditions 88 1.1 reinoud * are met: 89 1.1 reinoud * 1. Redistributions of source code must retain the above copyright 90 1.1 reinoud * notice, this list of conditions and the following disclaimer. 91 1.1 reinoud * 2. Redistributions in binary form must reproduce the above copyright 92 1.1 reinoud * notice, this list of conditions and the following disclaimer in the 93 1.1 reinoud * documentation and/or other materials provided with the distribution. 94 1.1 reinoud * 3. All advertising materials mentioning features or use of this software 95 1.1 reinoud * must display the following acknowledgement: 96 1.1 reinoud * This product includes software developed by the University of 97 1.1 reinoud * Vermont and State Agricultural College and Garrett A. Wollman. 98 1.1 reinoud * 4. Neither the name of the University nor the name of the author 99 1.1 reinoud * may be used to endorse or promote products derived from this software 100 1.1 reinoud * without specific prior written permission. 101 1.1 reinoud * 102 1.1 reinoud * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 103 1.1 reinoud * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 104 1.1 reinoud * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 105 1.1 reinoud * ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OR AUTHOR BE LIABLE 106 1.1 reinoud * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 107 1.1 reinoud * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 108 1.1 reinoud * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 109 1.1 reinoud * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 110 1.1 reinoud * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 111 1.1 reinoud * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 112 1.1 reinoud * SUCH DAMAGE. 113 1.1 reinoud */ 114 1.1 reinoud 115 1.1 reinoud /* 116 1.1 reinoud * Intel 82586 Ethernet chip 117 1.1 reinoud * Register, bit, and structure definitions. 118 1.1 reinoud * 119 1.1 reinoud * Written by GAW with reference to the Clarkson Packet Driver code for this 120 1.1 reinoud * chip written by Russ Nelson and others. 121 1.1 reinoud */ 122 1.1 reinoud 123 1.1 reinoud /* 124 1.1 reinoud * NOTE, the structure definitions in here are for reference only. 125 1.1 reinoud * We use integer offsets exclusively to access the i82586 data structures. 126 1.1 reinoud */ 127 1.1 reinoud 128 1.1 reinoud /* 129 1.1 reinoud * OLD i82586.h; REMOVE WHEN ALL DRIVERS HAVE BEEN CONVERTED 130 1.1 reinoud */ 131 1.1 reinoud 132 1.1 reinoud struct ie_en_addr { 133 1.1 reinoud u_char data[6]; 134 1.1 reinoud }; 135 1.1 reinoud 136 1.1 reinoud /* 137 1.1 reinoud * This is the master configuration block. It tells the hardware where all 138 1.1 reinoud * the rest of the stuff is. 139 1.1 reinoud */ 140 1.1 reinoud struct ie_sys_conf_ptr { 141 1.1 reinoud u_short mbz; /* must be zero */ 142 1.1 reinoud u_char ie_bus_use; /* true if 8-bit only */ 143 1.1 reinoud u_char mbz2[5]; /* must be zero */ 144 1.2 christos void *ie_iscp_ptr; /* 24-bit physaddr of ISCP */ 145 1.1 reinoud }; 146 1.1 reinoud 147 1.1 reinoud /* 148 1.1 reinoud * Note that this is wired in hardware; the SCP is always located here, no 149 1.1 reinoud * matter what. 150 1.1 reinoud */ 151 1.1 reinoud #define IE_SCP_ADDR 0xfffff4 152 1.1 reinoud 153 1.1 reinoud /* 154 1.1 reinoud * The tells the hardware where all the rest of the stuff is, too. 155 1.1 reinoud * FIXME: some of these should be re-commented after we figure out their 156 1.1 reinoud * REAL function. 157 1.1 reinoud */ 158 1.1 reinoud struct ie_int_sys_conf_ptr { 159 1.1 reinoud u_char ie_busy; /* zeroed after init */ 160 1.1 reinoud u_char mbz; 161 1.1 reinoud u_short ie_scb_offset; /* 16-bit physaddr of next struct */ 162 1.2 christos void *ie_base; /* 24-bit physaddr for all 16-bit vars */ 163 1.1 reinoud }; 164 1.1 reinoud 165 1.1 reinoud /* 166 1.1 reinoud * This FINALLY tells the hardware what to do and where to put it. 167 1.1 reinoud */ 168 1.1 reinoud struct ie_sys_ctl_block { 169 1.1 reinoud u_short ie_status; /* status word */ 170 1.1 reinoud u_short ie_command; /* command word */ 171 1.1 reinoud u_short ie_command_list; /* 16-pointer to command block list */ 172 1.1 reinoud u_short ie_recv_list; /* 16-pointer to receive frame list */ 173 1.1 reinoud u_short ie_err_crc; /* CRC errors */ 174 1.1 reinoud u_short ie_err_align; /* Alignment errors */ 175 1.1 reinoud u_short ie_err_resource; /* Resource errors */ 176 1.1 reinoud u_short ie_err_overrun; /* Overrun errors */ 177 1.1 reinoud }; 178 1.1 reinoud 179 1.1 reinoud /* Command values */ 180 1.1 reinoud #define IE_RU_COMMAND 0x0070 /* mask for RU command */ 181 1.1 reinoud #define IE_RU_NOP 0 /* for completeness */ 182 1.1 reinoud #define IE_RU_START 0x0010 /* start receive unit command */ 183 1.1 reinoud #define IE_RU_ENABLE 0x0020 /* enable receiver command */ 184 1.1 reinoud #define IE_RU_DISABLE 0x0030 /* disable receiver command */ 185 1.1 reinoud #define IE_RU_ABORT 0x0040 /* abort current receive operation */ 186 1.1 reinoud 187 1.1 reinoud #define IE_CU_COMMAND 0x0700 /* mask for CU command */ 188 1.1 reinoud #define IE_CU_NOP 0 /* included for completeness */ 189 1.1 reinoud #define IE_CU_START 0x0100 /* do-command command */ 190 1.1 reinoud #define IE_CU_RESUME 0x0200 /* resume a suspended cmd list */ 191 1.1 reinoud #define IE_CU_STOP 0x0300 /* SUSPEND was already taken */ 192 1.1 reinoud #define IE_CU_ABORT 0x0400 /* abort current command */ 193 1.1 reinoud 194 1.1 reinoud #define IE_ACK_COMMAND 0xf000 /* mask for ACK command */ 195 1.1 reinoud #define IE_ACK_CX 0x8000 /* ack IE_ST_CX */ 196 1.1 reinoud #define IE_ACK_FR 0x4000 /* ack IE_ST_FR */ 197 1.1 reinoud #define IE_ACK_CNA 0x2000 /* ack IE_ST_CNA */ 198 1.1 reinoud #define IE_ACK_RNR 0x1000 /* ack IE_ST_RNR */ 199 1.1 reinoud 200 1.1 reinoud #define IE_ACTION_COMMAND(x) (((x) & IE_CU_COMMAND) == IE_CU_START) 201 1.1 reinoud /* is this command an action command? */ 202 1.1 reinoud 203 1.1 reinoud /* Status values */ 204 1.1 reinoud #define IE_ST_WHENCE 0xf000 /* mask for cause of interrupt */ 205 1.1 reinoud #define IE_ST_CX 0x8000 /* command with I bit completed */ 206 1.1 reinoud #define IE_ST_FR 0x4000 /* frame received */ 207 1.1 reinoud #define IE_ST_CNA 0x2000 /* all commands completed */ 208 1.1 reinoud #define IE_ST_RNR 0x1000 /* receive not ready */ 209 1.1 reinoud 210 1.1 reinoud #define IE_CU_STATUS 0x700 /* mask for command unit status */ 211 1.1 reinoud #define IE_CU_ACTIVE 0x200 /* command unit is active */ 212 1.1 reinoud #define IE_CU_SUSPEND 0x100 /* command unit is suspended */ 213 1.1 reinoud 214 1.1 reinoud #define IE_RU_STATUS 0x70 /* mask for receiver unit status */ 215 1.1 reinoud #define IE_RU_SUSPEND 0x10 /* receiver is suspended */ 216 1.1 reinoud #define IE_RU_NOSPACE 0x20 /* receiver has no resources */ 217 1.1 reinoud #define IE_RU_READY 0x40 /* reveiver is ready */ 218 1.1 reinoud 219 1.1 reinoud /* 220 1.1 reinoud * This is filled in partially by the chip, partially by us. 221 1.1 reinoud */ 222 1.1 reinoud struct ie_recv_frame_desc { 223 1.1 reinoud u_short ie_fd_status; /* status for this frame */ 224 1.1 reinoud u_short ie_fd_last; /* end of frame list flag */ 225 1.1 reinoud u_short ie_fd_next; /* 16-pointer to next RFD */ 226 1.1 reinoud u_short ie_fd_buf_desc; /* 16-pointer to list of buffer desc's */ 227 1.1 reinoud struct ie_en_addr dest; /* destination ether */ 228 1.1 reinoud struct ie_en_addr src; /* source ether */ 229 1.1 reinoud u_short ie_length; /* 802 length/Ether type */ 230 1.1 reinoud u_short mbz; /* must be zero */ 231 1.1 reinoud }; 232 1.1 reinoud 233 1.1 reinoud #define IE_FD_LAST 0x8000 /* last rfd in list */ 234 1.1 reinoud #define IE_FD_SUSP 0x4000 /* suspend RU after receipt */ 235 1.1 reinoud 236 1.1 reinoud #define IE_FD_COMPLETE 0x8000 /* frame is complete */ 237 1.1 reinoud #define IE_FD_BUSY 0x4000 /* frame is busy */ 238 1.1 reinoud #define IE_FD_OK 0x2000 /* frame is bad */ 239 1.1 reinoud #define IE_FD_RNR 0x0200 /* receiver out of resources here */ 240 1.1 reinoud 241 1.1 reinoud /* 242 1.1 reinoud * linked list of buffers... 243 1.1 reinoud */ 244 1.1 reinoud struct ie_recv_buf_desc { 245 1.1 reinoud u_short ie_rbd_actual; /* status for this buffer */ 246 1.1 reinoud u_short ie_rbd_next; /* 16-pointer to next RBD */ 247 1.2 christos void *ie_rbd_buffer; /* 24-pointer to buffer for this RBD */ 248 1.1 reinoud u_short ie_rbd_length; /* length of the buffer */ 249 1.1 reinoud u_short mbz; /* must be zero */ 250 1.1 reinoud }; 251 1.1 reinoud 252 1.1 reinoud #define IE_RBD_LAST 0x8000 /* last buffer */ 253 1.1 reinoud #define IE_RBD_USED 0x4000 /* this buffer has data */ 254 1.1 reinoud /* 255 1.1 reinoud * All commands share this in common. 256 1.1 reinoud */ 257 1.1 reinoud struct ie_cmd_common { 258 1.1 reinoud u_short ie_cmd_status; /* status of this command */ 259 1.1 reinoud u_short ie_cmd_cmd; /* command word */ 260 1.1 reinoud u_short ie_cmd_link; /* link to next command */ 261 1.1 reinoud }; 262 1.1 reinoud 263 1.1 reinoud #define IE_STAT_COMPL 0x8000 /* command is completed */ 264 1.1 reinoud #define IE_STAT_BUSY 0x4000 /* command is running now */ 265 1.1 reinoud #define IE_STAT_OK 0x2000 /* command completed successfully */ 266 1.1 reinoud #define IE_STAT_ABORT 0x1000 /* command was aborted */ 267 1.1 reinoud 268 1.1 reinoud #define IE_CMD_NOP 0x0000 /* NOP */ 269 1.1 reinoud #define IE_CMD_IASETUP 0x0001 /* initial address setup */ 270 1.1 reinoud #define IE_CMD_CONFIG 0x0002 /* configure command */ 271 1.1 reinoud #define IE_CMD_MCAST 0x0003 /* multicast setup command */ 272 1.1 reinoud #define IE_CMD_XMIT 0x0004 /* transmit command */ 273 1.1 reinoud #define IE_CMD_TDR 0x0005 /* time-domain reflectometer command */ 274 1.1 reinoud #define IE_CMD_DUMP 0x0006 /* dump command */ 275 1.1 reinoud #define IE_CMD_DIAGNOSE 0x0007 /* diagnostics command */ 276 1.1 reinoud 277 1.1 reinoud #define IE_CMD_LAST 0x8000 /* this is the last command in the list */ 278 1.1 reinoud #define IE_CMD_SUSPEND 0x4000 /* suspend CU after this command */ 279 1.1 reinoud #define IE_CMD_INTR 0x2000 /* post an interrupt after completion */ 280 1.1 reinoud 281 1.1 reinoud /* 282 1.1 reinoud * This is the command to transmit a frame. 283 1.1 reinoud */ 284 1.1 reinoud struct ie_xmit_cmd { 285 1.1 reinoud struct ie_cmd_common com; /* common part */ 286 1.1 reinoud #define ie_xmit_status com.ie_cmd_status 287 1.1 reinoud 288 1.1 reinoud u_short ie_xmit_desc; /* 16-pointer to buffer descriptor */ 289 1.1 reinoud struct ie_en_addr ie_xmit_addr; /* destination address */ 290 1.1 reinoud 291 1.1 reinoud u_short ie_xmit_length; /* 802.3 length/Ether type field */ 292 1.1 reinoud }; 293 1.1 reinoud 294 1.1 reinoud #define IE_XS_MAXCOLL 0x000f /* number of collisions during transmit */ 295 1.1 reinoud #define IE_XS_EXCMAX 0x0020 /* exceeded maximum number of collisions */ 296 1.1 reinoud #define IE_XS_SQE 0x0040 /* SQE positive */ 297 1.1 reinoud #define IE_XS_DEFERRED 0x0080 /* transmission deferred */ 298 1.1 reinoud #define IE_XS_UNDERRUN 0x0100 /* DMA underrun */ 299 1.1 reinoud #define IE_XS_LOSTCTS 0x0200 /* Lost CTS */ 300 1.1 reinoud #define IE_XS_NOCARRIER 0x0400 /* No Carrier */ 301 1.1 reinoud #define IE_XS_LATECOLL 0x0800 /* Late collision */ 302 1.1 reinoud 303 1.1 reinoud /* 304 1.1 reinoud * This is a buffer descriptor for a frame to be transmitted. 305 1.1 reinoud */ 306 1.1 reinoud 307 1.1 reinoud struct ie_xmit_buf { 308 1.1 reinoud u_short ie_xmit_flags; /* see below */ 309 1.1 reinoud u_short ie_xmit_next; /* 16-pointer to next desc. */ 310 1.2 christos void *ie_xmit_buf; /* 24-pointer to the actual buffer */ 311 1.1 reinoud }; 312 1.1 reinoud 313 1.1 reinoud #define IE_XMIT_LAST 0x8000 /* this TBD is the last one */ 314 1.1 reinoud /* The rest of the `flags' word is actually the length. */ 315 1.1 reinoud 316 1.1 reinoud /* 317 1.1 reinoud * Multicast setup command. 318 1.1 reinoud */ 319 1.1 reinoud 320 1.1 reinoud #define MAXMCAST 250 /* must fit in transmit buffer */ 321 1.1 reinoud 322 1.1 reinoud struct ie_mcast_cmd { 323 1.1 reinoud struct ie_cmd_common com; /* common part */ 324 1.1 reinoud #define ie_mcast_status com.ie_cmd_status 325 1.1 reinoud 326 1.1 reinoud u_short ie_mcast_bytes; /* size (in bytes) of multicast addresses */ 327 1.1 reinoud struct ie_en_addr ie_mcast_addrs[MAXMCAST + 1]; /* space for them */ 328 1.1 reinoud }; 329 1.1 reinoud 330 1.1 reinoud /* 331 1.1 reinoud * Time Domain Reflectometer command. 332 1.1 reinoud */ 333 1.1 reinoud 334 1.1 reinoud struct ie_tdr_cmd { 335 1.1 reinoud struct ie_cmd_common com; /* common part */ 336 1.1 reinoud #define ie_tdr_status com.ie_cmd_status 337 1.1 reinoud 338 1.1 reinoud u_short ie_tdr_time; /* error bits and time */ 339 1.1 reinoud }; 340 1.1 reinoud 341 1.1 reinoud #define IE_TDR_SUCCESS 0x8000 /* TDR succeeded without error */ 342 1.1 reinoud #define IE_TDR_XCVR 0x4000 /* detected a transceiver problem */ 343 1.1 reinoud #define IE_TDR_OPEN 0x2000 /* detected an open */ 344 1.1 reinoud #define IE_TDR_SHORT 0x1000 /* TDR detected a short */ 345 1.1 reinoud #define IE_TDR_TIME 0x07ff /* mask for reflection time */ 346 1.1 reinoud 347 1.1 reinoud /* 348 1.1 reinoud * Initial Address Setup command 349 1.1 reinoud */ 350 1.1 reinoud struct ie_iasetup_cmd { 351 1.1 reinoud struct ie_cmd_common com; 352 1.1 reinoud #define ie_iasetup_status com.ie_cmd_status 353 1.1 reinoud 354 1.1 reinoud struct ie_en_addr ie_address; 355 1.1 reinoud }; 356 1.1 reinoud 357 1.1 reinoud /* 358 1.1 reinoud * Configuration command 359 1.1 reinoud */ 360 1.1 reinoud struct ie_config_cmd { 361 1.1 reinoud struct ie_cmd_common com; /* common part */ 362 1.1 reinoud #define ie_config_status com.ie_cmd_status 363 1.1 reinoud 364 1.1 reinoud u_char ie_config_count; /* byte count (0x0c) */ 365 1.1 reinoud u_char ie_fifo; /* fifo (8) */ 366 1.1 reinoud u_char ie_save_bad; /* save bad frames (0x40) */ 367 1.1 reinoud u_char ie_addr_len; /* address length (0x2e) (AL-LOC == 1) */ 368 1.1 reinoud u_char ie_priority; /* priority and backoff (0x0) */ 369 1.1 reinoud u_char ie_ifs; /* inter-frame spacing (0x60) */ 370 1.1 reinoud u_char ie_slot_low; /* slot time, LSB (0x0) */ 371 1.1 reinoud u_char ie_slot_high; /* slot time, MSN, and retries (0xf2) */ 372 1.1 reinoud u_char ie_promisc; /* 1 if promiscuous, else 0 */ 373 1.1 reinoud u_char ie_crs_cdt; /* CSMA/CD parameters (0x0) */ 374 1.1 reinoud u_char ie_min_len; /* min frame length (0x40) */ 375 1.1 reinoud u_char ie_junk; /* stuff for 82596 (0xff) */ 376 1.1 reinoud }; 377