1/*
2 * Copyright (c) 1995, David Greenman
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 10 unchanged lines hidden (view full) ---
19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $Id: if_fxpreg.h,v 1.11 1997/09/29 11:27:42 davidg Exp $
28 */
29
30#define FXP_VENDORID_INTEL 0x8086
31#define FXP_DEVICEID_i82557 0x1229
32
33#define FXP_PCI_MMBA 0x10
34#define FXP_PCI_IOBA 0x14
35
--- 75 unchanged lines hidden (view full) ---
111 volatile u_int8_t macaddr[6];
112};
113/* I hate bit-fields :-( */
114struct fxp_cb_config {
115 void *fill[2];
116 volatile u_int16_t cb_status;
117 volatile u_int16_t cb_command;
118 volatile u_int32_t link_addr;
119 volatile u_int8_t byte_count:6,
120 :2;
121 volatile u_int8_t rx_fifo_limit:4,
122 tx_fifo_limit:3,
123 :1;
124 volatile u_int8_t adaptive_ifs;
125 volatile u_int8_t :8;
126 volatile u_int8_t rx_dma_bytecount:7,
127 :1;
128 volatile u_int8_t tx_dma_bytecount:7,
129 dma_bce:1;
130 volatile u_int8_t late_scb:1,
131 :1,
132 tno_int:1,
133 ci_int:1,
134 :3,
135 save_bf:1;
136 volatile u_int8_t disc_short_rx:1,
137 underrun_retry:2,
138 :5;
139 volatile u_int8_t mediatype:1,
140 :7;
141 volatile u_int8_t :8;
142 volatile u_int8_t :3,
143 nsai:1,
144 preamble_length:2,
145 loopback:2;
146 volatile u_int8_t linear_priority:3,
147 :5;
148 volatile u_int8_t linear_pri_mode:1,
149 :3,
150 interfrm_spacing:4;
151 volatile u_int8_t :8;
152 volatile u_int8_t :8;
153 volatile u_int8_t promiscuous:1,
154 bcast_disable:1,
155 :5,
156 crscdt:1;
157 volatile u_int8_t :8;
158 volatile u_int8_t :8;
159 volatile u_int8_t stripping:1,
160 padding:1,
161 rcv_crc_xfer:1,
162 :5;
163 volatile u_int8_t :6,
164 force_fdx:1,
165 fdx_pin_en:1;
166 volatile u_int8_t :6,
167 multi_ia:1,
168 :1;
169 volatile u_int8_t :3,
170 mc_all:1,
171 :4;
172};
173
174#define MAXMCADDR 80
175struct fxp_cb_mcs {
176 struct fxp_cb_tx *next;
177 struct mbuf *mb_head;
--- 170 unchanged lines hidden ---
2 * Copyright (c) 1995, David Greenman
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 10 unchanged lines hidden (view full) ---
19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $Id: if_fxpreg.h,v 1.11 1997/09/29 11:27:42 davidg Exp $
28 */
29
30#define FXP_VENDORID_INTEL 0x8086
31#define FXP_DEVICEID_i82557 0x1229
32
33#define FXP_PCI_MMBA 0x10
34#define FXP_PCI_IOBA 0x14
35
--- 75 unchanged lines hidden (view full) ---
111 volatile u_int8_t macaddr[6];
112};
113/* I hate bit-fields :-( */
114struct fxp_cb_config {
115 void *fill[2];
116 volatile u_int16_t cb_status;
117 volatile u_int16_t cb_command;
118 volatile u_int32_t link_addr;
119 volatile u_int8_t byte_count:6,
120 :2;
121 volatile u_int8_t rx_fifo_limit:4,
122 tx_fifo_limit:3,
123 :1;
124 volatile u_int8_t adaptive_ifs;
125 volatile u_int8_t :8;
126 volatile u_int8_t rx_dma_bytecount:7,
127 :1;
128 volatile u_int8_t tx_dma_bytecount:7,
129 dma_bce:1;
130 volatile u_int8_t late_scb:1,
131 :1,
132 tno_int:1,
133 ci_int:1,
134 :3,
135 save_bf:1;
136 volatile u_int8_t disc_short_rx:1,
137 underrun_retry:2,
138 :5;
139 volatile u_int8_t mediatype:1,
140 :7;
141 volatile u_int8_t :8;
142 volatile u_int8_t :3,
143 nsai:1,
144 preamble_length:2,
145 loopback:2;
146 volatile u_int8_t linear_priority:3,
147 :5;
148 volatile u_int8_t linear_pri_mode:1,
149 :3,
150 interfrm_spacing:4;
151 volatile u_int8_t :8;
152 volatile u_int8_t :8;
153 volatile u_int8_t promiscuous:1,
154 bcast_disable:1,
155 :5,
156 crscdt:1;
157 volatile u_int8_t :8;
158 volatile u_int8_t :8;
159 volatile u_int8_t stripping:1,
160 padding:1,
161 rcv_crc_xfer:1,
162 :5;
163 volatile u_int8_t :6,
164 force_fdx:1,
165 fdx_pin_en:1;
166 volatile u_int8_t :6,
167 multi_ia:1,
168 :1;
169 volatile u_int8_t :3,
170 mc_all:1,
171 :4;
172};
173
174#define MAXMCADDR 80
175struct fxp_cb_mcs {
176 struct fxp_cb_tx *next;
177 struct mbuf *mb_head;
--- 170 unchanged lines hidden ---