Deleted Added
full compact
if_ep_isa.c (56429) if_ep_isa.c (63379)
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
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

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

22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
1/*
2 * Copyright (c) 1994 Herb Peyerl <hpeyerl@novatel.ca>
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

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

22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
23 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/dev/ep/if_ep_isa.c 56429 2000-01-23 08:46:21Z mdodd $
30 * $FreeBSD: head/sys/dev/ep/if_ep_isa.c 63379 2000-07-18 06:37:08Z mdodd $
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/socket.h>
37
38#include <sys/module.h>

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

216
217 /* Retreive IRQ */
218 data = get_eeprom_data(ELINK_ID_PORT, EEPROM_RESOURCE_CFG);
219 irq = (data >> 12);
220
221 /* Retreive IOPORT */
222 data = get_eeprom_data(ELINK_ID_PORT, EEPROM_ADDR_CFG);
223#ifdef PC98
31 */
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>
36#include <sys/socket.h>
37
38#include <sys/module.h>

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

216
217 /* Retreive IRQ */
218 data = get_eeprom_data(ELINK_ID_PORT, EEPROM_RESOURCE_CFG);
219 irq = (data >> 12);
220
221 /* Retreive IOPORT */
222 data = get_eeprom_data(ELINK_ID_PORT, EEPROM_ADDR_CFG);
223#ifdef PC98
224 ioport = (((data & 0x1f) * 0x100) + 0x40d0);
224 ioport = (((data & ADDR_CFG_MASK) * 0x100) + 0x40d0);
225#else
225#else
226 ioport = (((data & 0x1f) << 4) + 0x200);
226 ioport = (((data & ADDR_CFG_MASK) << 4) + 0x200);
227#endif
228
227#endif
228
229 if ((data & ADDR_CFG_MASK) == ADDR_CFG_EISA) {
230 device_printf(parent, "if_ep: <%s> at port 0x%03x in EISA mode!\n",
231 desc, ioport);
232 /* Set the adaptor tag so that the next card can be found. */
233 outb(ELINK_ID_PORT, tag--);
234 continue;
235 }
236
229 /* Test for an adapter with PnP support. */
230 data = get_eeprom_data(ELINK_ID_PORT, EEPROM_CAP);
231 if (data == CAP_ISA) {
232 data = get_eeprom_data(ELINK_ID_PORT, EEPROM_INT_CONFIG_1);
233 if (data & ICW1_IAS_PNP) {
234 if (bootverbose) {
235 device_printf(parent, "if_ep: <%s> at 0x%03x in PnP mode!\n",
236 desc, ioport);

--- 117 unchanged lines hidden ---
237 /* Test for an adapter with PnP support. */
238 data = get_eeprom_data(ELINK_ID_PORT, EEPROM_CAP);
239 if (data == CAP_ISA) {
240 data = get_eeprom_data(ELINK_ID_PORT, EEPROM_INT_CONFIG_1);
241 if (data & ICW1_IAS_PNP) {
242 if (bootverbose) {
243 device_printf(parent, "if_ep: <%s> at 0x%03x in PnP mode!\n",
244 desc, ioport);

--- 117 unchanged lines hidden ---