Deleted Added
sdiff udiff text old ( 40160 ) new ( 40265 )
full compact
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 $
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>

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

144 bus_size_t maxsegsz;
145 bus_size_t maxsize;
146 bus_addr_t lowaddr;
147 int error;
148
149 if (port_addr == 0)
150 /* Already been attached */
151 continue;
152 id->id_iobase = port_addr;
153 if (haveseen_isadev(id, CC_IOADDR | CC_QUIET))
154 continue;
155
156 if (adv_find_signature(I386_BUS_SPACE_IO, port_addr)) {
157 /*
158 * Got one. Now allocate our softc
159 * and see if we can initialize the card.
160 */
161 struct adv_softc *adv;

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

262 bus_dmamap_load(overrun_dmat, overrun_dmamap,
263 overrun_buf, ADV_OVERRUN_BSIZE,
264 adv_map, &overrun_physbase,
265 /*flags*/0);
266 }
267
268 adv->overrun_physbase = overrun_physbase;
269
270 if (adv_init(adv) != 0) {
271 adv_free(adv);
272 return (0);
273 }
274
275 switch (adv->type) {
276 case ADV_ISAPNP:
277 if (adv->chip_version == ADV_CHIP_VER_ASYN_BUG){

--- 106 unchanged lines hidden ---