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 * @(#)npx.c 7.2 (Berkeley) 5/12/91
35 *
36 * PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
37 * -------------------- ----- ----------------------
38 * CURRENT PATCH LEVEL: 1 00154
39 * -------------------- ----- ----------------------
40 *
41 * 20 Apr 93 Bruce Evans New npx-0.5 code
42 * 23 May 93 Rodney W. Grimes Return a special value of -1 from
43 * the probe code to keep isa_config from
44 * printing out the I/O address when we
45 * are using trap 16 handling.
46 *
47 */
48static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/isa/npx.c,v 1.1.1.1 1993/06/12 14:58:00 rgrimes Exp $";
49
50#include "npx.h"
51#if NNPX > 0
52
53#include "param.h"
54#include "systm.h"
55#include "conf.h"
56#include "file.h"
--- 256 unchanged lines hidden (view full) ---
313 }
314 }
315 /*
316 * Probe failed, but we want to get to npxattach to initialize the
317 * emulator and say that it has been installed. XXX handle devices
318 * that aren't really devices better.
319 */
320 dvp->id_irq = 0;
321 return (IO_NPXSIZE);
322}
323
324/*
325 * Attach routine - announce which it is, and wire into system
326 */
327int
328npxattach(dvp)
329 struct isa_device *dvp;
330{
331 if (npx_ex16)
332 printf("npx%d: Errors reported via Exception 16\n",dvp->id_unit);
333 else if (npx_irq13)
334 printf("npx%d: Errors reported via IRQ 13\n",dvp->id_unit);
335 else if (npx_exists)
336 printf("npx%d: Error reporting broken, using 387 emulator\n",dvp->id_unit);
337 else
338 printf("npx%d: 387 Emulator\n",dvp->id_unit);
339 npxinit(__INITIAL_NPXCW__);
340 return (1); /* XXX unused */
341}
342
343/*
344 * Initialize floating point unit.
345 */
346void
--- 218 unchanged lines hidden ---
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 * @(#)npx.c 7.2 (Berkeley) 5/12/91
35 *
36 * PATCHES MAGIC LEVEL PATCH THAT GOT US HERE
37 * -------------------- ----- ----------------------
38 * CURRENT PATCH LEVEL: 1 00154
39 * -------------------- ----- ----------------------
40 *
41 * 20 Apr 93 Bruce Evans New npx-0.5 code
42 * 23 May 93 Rodney W. Grimes Return a special value of -1 from
43 * the probe code to keep isa_config from
44 * printing out the I/O address when we
45 * are using trap 16 handling.
46 *
47 */
48static char rcsid[] = "$Header: /a/cvs/386BSD/src/sys.386bsd/i386/isa/npx.c,v 1.1.1.1 1993/06/12 14:58:00 rgrimes Exp $";
49
50#include "npx.h"
51#if NNPX > 0
52
53#include "param.h"
54#include "systm.h"
55#include "conf.h"
56#include "file.h"
--- 256 unchanged lines hidden (view full) ---
313 }
314 }
315 /*
316 * Probe failed, but we want to get to npxattach to initialize the
317 * emulator and say that it has been installed. XXX handle devices
318 * that aren't really devices better.
319 */
320 dvp->id_irq = 0;
321 return (IO_NPXSIZE);
322}
323
324/*
325 * Attach routine - announce which it is, and wire into system
326 */
327int
328npxattach(dvp)
329 struct isa_device *dvp;
330{
331 if (npx_ex16)
332 printf("npx%d: Errors reported via Exception 16\n",dvp->id_unit);
333 else if (npx_irq13)
334 printf("npx%d: Errors reported via IRQ 13\n",dvp->id_unit);
335 else if (npx_exists)
336 printf("npx%d: Error reporting broken, using 387 emulator\n",dvp->id_unit);
337 else
338 printf("npx%d: 387 Emulator\n",dvp->id_unit);
339 npxinit(__INITIAL_NPXCW__);
340 return (1); /* XXX unused */
341}
342
343/*
344 * Initialize floating point unit.
345 */
346void
--- 218 unchanged lines hidden ---