Deleted Added
full compact
if_fe_cbus.c (68566) if_fe_cbus.c (79084)
1/*
2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
3 *
4 * This software may be used, modified, copied, distributed, and sold, in
5 * both source and binary form provided that the above copyright, these
6 * terms and the following disclaimer are retained. The name of the author
7 * and/or the contributor may not be used to endorse or promote products
8 * derived from this software without specific prior written permission.

--- 5 unchanged lines hidden (view full) ---

14 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
15 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
16 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION.
17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
20 * SUCH DAMAGE.
21 *
1/*
2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
3 *
4 * This software may be used, modified, copied, distributed, and sold, in
5 * both source and binary form provided that the above copyright, these
6 * terms and the following disclaimer are retained. The name of the author
7 * and/or the contributor may not be used to endorse or promote products
8 * derived from this software without specific prior written permission.

--- 5 unchanged lines hidden (view full) ---

14 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
15 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
16 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION.
17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
20 * SUCH DAMAGE.
21 *
22 * $FreeBSD: head/sys/dev/fe/if_fe_cbus.c 68566 2000-11-10 14:05:47Z nyan $
22 * $FreeBSD: head/sys/dev/fe/if_fe_cbus.c 79084 2001-07-02 10:14:57Z nyan $
23 */
24
25#include "opt_fe.h"
26#include "opt_inet.h"
27#include "opt_ipx.h"
28
29#include <sys/param.h>
30#include <sys/systm.h>

--- 186 unchanged lines hidden (view full) ---

217 int size, rid;
218
219 switch (type) {
220 case FE_TYPE_RE1000:
221 iat = ioaddr_re1000;
222 size = MAXREGISTERS;
223 break;
224 case FE_TYPE_CNET9NE:
23 */
24
25#include "opt_fe.h"
26#include "opt_inet.h"
27#include "opt_ipx.h"
28
29#include <sys/param.h>
30#include <sys/systm.h>

--- 186 unchanged lines hidden (view full) ---

217 int size, rid;
218
219 switch (type) {
220 case FE_TYPE_RE1000:
221 iat = ioaddr_re1000;
222 size = MAXREGISTERS;
223 break;
224 case FE_TYPE_CNET9NE:
225 iat = &ioaddr_cnet9ne[16];
226 size = 16;
225 iat = ioaddr_cnet9ne;
226 size = MAXREGISTERS;
227 break;
228 case FE_TYPE_SSI:
229 iat = ioaddr_generic;
230 size = MAXREGISTERS;
231 break;
232 case FE_TYPE_LNX:
233 iat = ioaddr_lnx;
234 size = MAXREGISTERS;

--- 17 unchanged lines hidden (view full) ---

252 }
253
254 rid = 0;
255 res = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid,
256 iat, size, RF_ACTIVE);
257 if (res == NULL)
258 return ENOENT;
259
227 break;
228 case FE_TYPE_SSI:
229 iat = ioaddr_generic;
230 size = MAXREGISTERS;
231 break;
232 case FE_TYPE_LNX:
233 iat = ioaddr_lnx;
234 size = MAXREGISTERS;

--- 17 unchanged lines hidden (view full) ---

252 }
253
254 rid = 0;
255 res = isa_alloc_resourcev(dev, SYS_RES_IOPORT, &rid,
256 iat, size, RF_ACTIVE);
257 if (res == NULL)
258 return ENOENT;
259
260 switch (type) {
261 case FE_TYPE_CNET9NE:
262 iat = ioaddr_cnet9ne;
263 size = MAXREGISTERS;
264 break;
265 }
266
267 isa_load_resourcev(res, iat, size);
268
269 sc->type = type;
270 sc->port_used = size;
271 sc->port_res = res;
272 sc->iot = rman_get_bustag(res);
273 sc->ioh = rman_get_bushandle(res);
274 return (0);

--- 741 unchanged lines hidden ---
260 isa_load_resourcev(res, iat, size);
261
262 sc->type = type;
263 sc->port_used = size;
264 sc->port_res = res;
265 sc->iot = rman_get_bustag(res);
266 sc->ioh = rman_get_bushandle(res);
267 return (0);

--- 741 unchanged lines hidden ---