Deleted Added
full compact
1/*-
2 * Copyright (c) 1990 William Jolitz.
3 * Copyright (c) 1991 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

26 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE.
33 *
34 * from: @(#)npx.c 7.2 (Berkeley) 5/12/91
35 * $Id$
36 */
37
38#include "npx.h"
39#if NNPX > 0
40
41#include "param.h"
42#include "systm.h"
43#include "conf.h"
44#include "file.h"

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

301 }
302 }
303 /*
304 * Probe failed, but we want to get to npxattach to initialize the
305 * emulator and say that it has been installed. XXX handle devices
306 * that aren't really devices better.
307 */
308 dvp->id_irq = 0;
309 /*
310 * special return value to flag that we do not
311 * actually use any I/O registers
312 */
313 return (-1);
314}
315
316/*
317 * Attach routine - announce which it is, and wire into system
318 */
319int
320npxattach(dvp)
321 struct isa_device *dvp;
322{
323 if (!npx_ex16 && !npx_irq13) {
324 if (npx_exists)
325 printf("npx%d: Error reporting broken, using 387 emulator\n",dvp->id_unit);
326 else
327 printf("npx%d: 387 Emulator\n",dvp->id_unit);
328 }
329 npxinit(__INITIAL_NPXCW__);
330 return (1); /* XXX unused */
331}
332
333/*
334 * Initialize floating point unit.
335 */
336void

--- 218 unchanged lines hidden ---