Deleted Added
full compact
adv_isa.c (40265) adv_isa.c (41048)
1/*
2 * Device probe and attach routines for the following
3 * Advanced Systems Inc. SCSI controllers:
4 *
5 * Connectivity Products:
6 * ABP510/5150 - Bus-Master ISA (240 CDB) *
7 * ABP5140 - Bus-Master ISA PnP (16 CDB) * **
8 * ABP5142 - Bus-Master ISA PnP with floppy (16 CDB) ***

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

39 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
40 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
41 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
42 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
44 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * SUCH DAMAGE.
46 *
1/*
2 * Device probe and attach routines for the following
3 * Advanced Systems Inc. SCSI controllers:
4 *
5 * Connectivity Products:
6 * ABP510/5150 - Bus-Master ISA (240 CDB) *
7 * ABP5140 - Bus-Master ISA PnP (16 CDB) * **
8 * ABP5142 - Bus-Master ISA PnP with floppy (16 CDB) ***

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

39 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
40 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
41 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
42 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
43 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
44 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
45 * SUCH DAMAGE.
46 *
47 * $Id: adv_isa.c,v 1.5 1998/10/10 00:44:12 imp Exp $
47 * $Id: adv_isa.c,v 1.6 1998/10/12 18:53:33 imp Exp $
48 */
49
50#include <sys/param.h>
51#include <sys/systm.h>
52#include <sys/malloc.h>
53
54#include <machine/bus_pio.h>
55#include <machine/bus.h>

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

117 /*
118 * Default to scanning all possible device locations.
119 */
120 port_index = 0;
121 max_port_index = MAX_ISA_IOPORT_INDEX;
122
123 if (id->id_iobase > 0) {
124 for (;port_index <= max_port_index; port_index++)
48 */
49
50#include <sys/param.h>
51#include <sys/systm.h>
52#include <sys/malloc.h>
53
54#include <machine/bus_pio.h>
55#include <machine/bus.h>

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

117 /*
118 * Default to scanning all possible device locations.
119 */
120 port_index = 0;
121 max_port_index = MAX_ISA_IOPORT_INDEX;
122
123 if (id->id_iobase > 0) {
124 for (;port_index <= max_port_index; port_index++)
125 if (id->id_iobase >= adv_isa_ioports[port_index])
125 if (id->id_iobase <= adv_isa_ioports[port_index])
126 break;
127 if ((port_index > max_port_index)
128 || (id->id_iobase != adv_isa_ioports[port_index])) {
129 printf("adv%d: Invalid baseport of 0x%x specified. "
130 "Neerest valid baseport is 0x%x. Failing "
131 "probe.\n", id->id_unit, id->id_iobase,
132 (port_index <= max_port_index) ?
133 adv_isa_ioports[port_index] :

--- 250 unchanged lines hidden ---
126 break;
127 if ((port_index > max_port_index)
128 || (id->id_iobase != adv_isa_ioports[port_index])) {
129 printf("adv%d: Invalid baseport of 0x%x specified. "
130 "Neerest valid baseport is 0x%x. Failing "
131 "probe.\n", id->id_unit, id->id_iobase,
132 (port_index <= max_port_index) ?
133 adv_isa_ioports[port_index] :

--- 250 unchanged lines hidden ---