Deleted Added
full compact
29c29
< * $Id: bt_isa.c,v 1.3 1998/10/10 00:44:12 imp Exp $
---
> * $Id: bt_isa.c,v 1.4 1998/10/12 18:53:33 imp Exp $
89,106c89
< if (dev->id_iobase > 0) {
< for (;port_index <= max_port_index; port_index++)
< if (dev->id_iobase >= bt_isa_ports[port_index].addr)
< break;
< if ((port_index > max_port_index)
< || (dev->id_iobase != bt_isa_ports[port_index].addr)) {
< printf("
< bt_isa_probe: Invalid baseport of 0x%x specified.
< bt_isa_probe: Nearest valid baseport is 0x%x.
< bt_isa_probe: Failing probe.\n",
< dev->id_iobase,
< (port_index <= max_port_index)
< ? bt_isa_ports[port_index].addr
< : bt_isa_ports[max_port_index].addr);
< return 0;
< }
< max_port_index = port_index;
< }
---
> bt_find_probe_range(dev->id_iobase, &port_index, &max_port_index);
107a91,93
> if (port_index < 0)
> return 0;
>
114c100
< ioport = bt_isa_ports[port_index].addr;
---
> ioport = bt_iop_from_bio(port_index);
122c108
< dev->id_iobase = bt_isa_ports[port_index].addr;
---
> dev->id_iobase = ioport;
171a158
> return (0);