fpu.c (126) | fpu.c (593) |
---|---|
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 * | 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 * | 34 * from: @(#)npx.c 7.2 (Berkeley) 5/12/91 35 * $Id$ |
47 */ | 36 */ |
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; | 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; |
321 return (IO_NPXSIZE); | 309 /* 310 * special return value to flag that we do not 311 * actually use any I/O registers 312 */ 313 return (-1); |
322} 323 324/* 325 * Attach routine - announce which it is, and wire into system 326 */ 327int 328npxattach(dvp) 329 struct isa_device *dvp; 330{ | 314} 315 316/* 317 * Attach routine - announce which it is, and wire into system 318 */ 319int 320npxattach(dvp) 321 struct isa_device *dvp; 322{ |
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); | 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 } |
339 npxinit(__INITIAL_NPXCW__); 340 return (1); /* XXX unused */ 341} 342 343/* 344 * Initialize floating point unit. 345 */ 346void --- 218 unchanged lines hidden --- | 329 npxinit(__INITIAL_NPXCW__); 330 return (1); /* XXX unused */ 331} 332 333/* 334 * Initialize floating point unit. 335 */ 336void --- 218 unchanged lines hidden --- |