Commit Graph

11652 Commits

Author SHA1 Message Date
jonathan
ac99526674 Add defines for increasing SPL levels, assuming devices are wired up
in to CPU interrupt pins in order of increasing priority.
1997-05-18 03:19:41 +00:00
pk
0914945bfe Keep a shadow copy of the aux register's contents. 1997-05-17 17:52:50 +00:00
matthias
1574dad87a * Missed that one during last commit. 1997-05-17 14:06:26 +00:00
matthias
eed1dad537 * Reorganize pc532/stand similar to the alpha and hp300 ports (by stealing
Makefiles and scripts from hp300/alpha).
1997-05-17 13:55:34 +00:00
gwr
e2a58b69f7 Add #define __VM_PMAP_HACK as a temporary measure. 1997-05-16 21:35:30 +00:00
jeremy
f7e146ad7f Return EIO instead of EFAULT when read/write is too big or small. 1997-05-16 05:47:14 +00:00
jeremy
70d1c8b8c8 Return EIO instead of EFAULT when read/write is too big or small. 1997-05-16 05:33:48 +00:00
pk
7ae81c002a Actually use the passed physical address in viking_cache_flush(). Also,
use hardcoded cache parameters for now.
1997-05-15 22:53:01 +00:00
pk
72d640a497 Tweak gain curve (from nsayer@kfu.com; PR#2909) 1997-05-15 22:32:56 +00:00
pk
3f1da95bc5 Nuke old `mmu3l' references. 1997-05-15 22:25:45 +00:00
ragge
05de3b9034 Multicast definitions, forgotten in previous checkins. 1997-05-15 20:10:23 +00:00
pk
4f48bf2bb1 Change some malloc -> MALLOC and free -> FREE
More accuracy in diag/panic messages (part of PR3602; Eric Fair).
1997-05-15 19:19:49 +00:00
mjacob
9854f9917e Print some more info on unresolved user traps, mostly for DIAGNOSTIC. 1997-05-15 18:33:47 +00:00
mjacob
e005d20961 Allow MAXPHYS to be specified as a config file option. 1997-05-15 17:27:15 +00:00
mellon
dcf4d707a4 Only compile in rcons tests if rcons pseudo-device was declared 1997-05-15 16:43:36 +00:00
jonathan
e199d62111 Add hooks for definiing kernel RCSId and copyright symbols,
via  asm(".section"),  for compatibility with Alpha tc and ioasic  drivers.

Assumes ELF and binutils-2.8 toolchain.
1997-05-15 08:47:05 +00:00
mellon
d3c5a81e19 Don't do rcons-specific things if no rcons pseudo-device was declared. Clean up probe-time printfs. 1997-05-15 07:24:37 +00:00
jonathan
d592c85696 The pmax interrupt handlers were re-enabling clock interrupts ASAP after
hardclock() is called. Now, only do so if clock intrs were enabled beforehand.
1997-05-15 05:03:42 +00:00
jonathan
13f3645083 Merge in changes from Alpha scc driver with RCS log message:
>  revision 1.33
>  date: 1997/05/15 02:15:55;  author: thorpej;  state: Exp;  lines: +8 -4
>  - In sccmatch(), check any user-specified offset, allowing scc unit numbers
>  to be nailed down.  From Ken Hornstein <kenh@cmf.nrl.navy.mil>, PR #3626,
>  slightly modified to allow wildcarded offsets.
>  - Blow away the cf->cf_unit check in sccmatch(); it's bogus.

Also gc usused references to  NSCC and #include "scc.h"
1997-05-15 04:49:32 +00:00
jonathan
a72c2263f5 Change needs-count' on scc to needs-flag': should have been `needs-flag'
since rev 1.18  of pmax/tc/scc.c.
1997-05-15 04:42:12 +00:00
thorpej
2494f148f4 - In sccmatch(), check any user-specified offset, allowing scc unit numbers
to be nailed down.  From Ken Hornstein <kenh@cmf.nrl.navy.mil>, PR #3626,
  slightly modified to allow wildcarded offsets.
- Blow away the cf->cf_unit check in sccmatch(); it's bogus.
1997-05-15 02:15:55 +00:00
jeremy
608a6800e6 Things are stable enough that DDB, PMAP_DEBUG and DIAGNOSTIC aren't needed
anymore.
1997-05-15 01:49:27 +00:00
jonathan
3480029167 Add `offset' locator to ioasic-attached devices, for compatibility with
the ioasic_submatch() used in drivers shared by pmax and alpha ports.
1997-05-15 00:43:22 +00:00
veego
cc8306e0d2 Remove a : which is too much. fix pr#3621 1997-05-14 18:12:10 +00:00
gwr
a83cf310c1 The Hydra is 20 MHz and the Pegasus is 33 MHz. 1997-05-14 16:45:22 +00:00
gwr
5079510304 Make the "hydra" call leds_hydra() from clock_attach(). 1997-05-14 16:42:45 +00:00
gwr
e6fa5bc33d Add leds_hydra(). 1997-05-14 16:37:01 +00:00
gwr
b209530013 Remove call to leds_init (it is already in obio_init). 1997-05-14 16:13:31 +00:00
thorpej
2dc79e5c4b Link this program statically. 1997-05-14 07:57:13 +00:00
jeremy
ebb856e274 Long awaited MI/MD separation completed. 1997-05-14 01:37:23 +00:00
jtk
fb2e379487 add pci* at pchb? 1997-05-13 22:48:33 +00:00
jtk
548e1683bf add pcibus attribute to pchb, for Intel dual-bus host/PCI bridge chip 1997-05-13 22:48:02 +00:00
jtk
86bf57701c add support for dual PCI bus Intel host/PCI bridge. Thanks to Chris Demetriou for his assistance in educating me about the vagaries of PCI and its configuration model. 1997-05-13 22:47:30 +00:00
gwr
a8af683eb9 Eliminate references to vmspace.vm_pmap 1997-05-13 18:00:49 +00:00
gwr
1aa91b893d Eliminate references to vmspace.vm_pmap
(also fix some comments).
1997-05-13 17:17:12 +00:00
gwr
d69bf3ded2 Eliminate references to vmspace.vm_pmap
(also fix some typos in comments).
1997-05-13 17:16:28 +00:00
gwr
1d8ffff9d9 Use GLOBAL(), _C_LABEL(), etc. 1997-05-13 16:31:26 +00:00
scottr
fac0bcfedb Update a recently-added comment re: bytelanes values. 1997-05-13 13:22:56 +00:00
scottr
5b80f9077f Tweak sbc_drq_intr() (interrupt-driven PDMA interrupt handler); it
now works properly on at least some disks.  Further testing is
necessary.
1997-05-13 06:34:00 +00:00
scottr
3b7a1d3ab0 Convert several interrupt handlers to bus space model, removing some
XXX's.  Also, fix a bug in grfmv_intr_generic() that I found and
confirmed with Allen.
1997-05-12 20:35:50 +00:00
thorpej
4d989c06dd Add the following drivers:
- frodo at intio
- dnkbd at frodo (commented out until integrated)
- apci at frodo
1997-05-12 08:24:56 +00:00
thorpej
f8337a2c14 Add apci driver glue. 1997-05-12 08:23:28 +00:00
thorpej
286b3b171d Add glue for APCI driver at cdev minor #31 and in console switch. 1997-05-12 08:17:53 +00:00
thorpej
6cc1022d84 Garbage-collect an unneeded definition. 1997-05-12 08:14:01 +00:00
thorpej
a492e1df80 Add a kernel driver for the APCI 8250-like UARTs that live in the
Frodo ASIC, originally contributed by Mike Smith
<mike@pressed.spam.frisbee.net.au>, but reworked by me to:
- Essentially duplicate the dca driver, modifiying where necessary
  to work with the APCI.
- Deal with the different Frodo autoconfiguration model.
- Don't attach a tty to the 0th UART - it's not really useful for much
  more than the Domain keyboard.
- Added a routine to check for the existence of a DCA at select code 9.
  On most models, the 1'th UART is mapped to select code 9 by the PROM,
  and on these models, we do _NOT_ want to attach the device as an APCI.
  However, on the 425e, this mapping does not take place, so we attach
  as an APCI.  The 2'th and 3'th UARTs always get tty instances.
- Add console support which will only be invoked on the 425e (i.e. check
  for DCA at 9, and defer console to it if it exists).
1997-05-12 08:12:36 +00:00
thorpej
a155715d44 Add a driver for the Apollo Utility Chip (a.k.a. "frodo"), contributed
by Mike Smith <mike@pressed.spam.frisbee.net.au>, with some changes to
the autoconfiguration model and slight changes to the interrupt glue
by me.
1997-05-12 08:03:48 +00:00
thorpej
2392fb2a1c Bump version: Added APCI console support 1997-05-12 07:58:08 +00:00
thorpej
83c63bd2de - Always build a romout() stub.
- If kbdnmi() returns, stop cold, since it shouldn't.
1997-05-12 07:56:00 +00:00
thorpej
f39885279b - Define INTIOBASE here for use by the standalone programs.
- Add some extern's for "userom" and romputchar()
1997-05-12 07:54:45 +00:00
scottr
61322b7b85 KNF and other cosmetics. 1997-05-12 07:53:58 +00:00
scottr
bfc4c6c42d Whoops; here's the rest of the Deferred Task Manager changes. 1997-05-12 07:53:04 +00:00
thorpej
4e0ee78444 - Always build the romputchar() glue.
- Don't set "userom" in the trap handler (we didn't before, but we've
  removed the previous CPP conditional that was used to enable it.)
1997-05-12 07:53:02 +00:00
thorpej
eac0352a9e In kbdnmi(), after we have cleared the interrupt condition, reset
the machine, rather than simply returning to the assembly NMI handler.
Previously, the assembly handler would simply jump back to begin:, which
would frob the stack, and re-clear the BSS.  However, this is not sufficient,
as there may be state in initialized data that must be restored.  Thus,
the only reasonable solution is to re-load the boot block.
1997-05-12 07:51:32 +00:00
thorpej
c25bfe1365 Don't use hardcoded hex for the address of the internal HP-IB interface.
Instead, use definitions from <hp300/dev/dioreg.h>
1997-05-12 07:48:23 +00:00
thorpej
82ae3a106e Don't use a hard-coded hex address for the 0'th APCI port; use definitions
from <hp300/dev/frodoreg.h>
1997-05-12 07:47:03 +00:00
thorpej
0c5b002449 Add prototypes for standalone APCI driver. 1997-05-12 07:45:41 +00:00
thorpej
05333d3fa5 - Add glue for standalone APCI console driver.
- Make the romputchar() useage conditional only on "userom".
1997-05-12 07:44:53 +00:00
thorpej
225fbfa100 Build the standalone APCI driver. 1997-05-12 07:43:18 +00:00
thorpej
bbbc6052c1 Add a standalone APCI driver, adapted from the standalone DCA driver
by me.  This driver should only be invoked when there are no other
suitable console devices present in the system.  This situation currently
exists on the 425e, for which we do not have a frame buffer driver,
and who's PROM does not map the second APCI UART to select code 9,
like is done on the 4{00,25,33}{t,s}.
1997-05-12 07:41:55 +00:00
scottr
5842491f1c Add en implementation of the Deferred Task Manager, contributed by Paul
Goyette <paul@pgoyette.bdt.com>.
1997-05-12 07:29:29 +00:00
scottr
ee80f1200e Implement new NuBus slot space mapping/probing code, utilizing bus.h (and
our MD bus_space_probe() extension).  This has several side effects:

 - NuBus drivers must map and unmap slot space, rather than relying
   on this happening before they are attached.
 - Functions exported to NuBus drivers from nubus.c now need to be
   supplied with a bus space tag/handle pair.
 - Old bus map/peek functions can be garbage collected, as can pmap
   support for the same.

Because of some current limitations of the bus space specification, we
are violating the abstraction in grf_mv (NuBus grf driver).  All such
violations are clearly marked /* XXX */, and must be addressed when
the specification is updated.
1997-05-11 19:11:27 +00:00
jeremy
1c454cc472 Diagnostic LED on 3/80 appears to be active-high, not active-low as previously
thought.  It remains to be seen if this is true for the 3/470.
1997-05-11 06:16:26 +00:00
jeremy
3d8d0c485c Add call to leds_init() after everything has started up ok. 1997-05-11 06:15:09 +00:00
fvdl
f99df8aa9c rdsetimage -> mdsetimage in comment (enami tsugutomo, PR 3596) 1997-05-10 11:06:53 +00:00
matthias
9e785c6d3f * Define proc0paddr here and not in locore.s. 1997-05-10 09:29:26 +00:00
augustss
e63a553175 Change the interface between high and lowlevel audio drivers again:
Set the encoding parameters slightly differently.
Remove the SW encoding/decodinf functions from this interface
and move them to the audio_parameter struct; this is both more efficient
and flexible.
1997-05-09 22:16:27 +00:00
mycroft
cc4a1553a1 Eliminate bogus redefinitions of standard targets. 1997-05-09 07:50:03 +00:00
oki
6fd182057f cleanup use of whitespace 1997-05-08 16:39:35 +00:00
matthias
5c6f7fca32 * Update asm.h to be more like the other port's asm.h.
* Update locore.s to use all the macros defined asm.h
* Update random.s to use the much nicer algorithm from the m68k port.
1997-05-08 13:44:11 +00:00
scottr
94e0a9b88d Update to current configurations. 1997-05-08 04:09:27 +00:00
thorpej
47aae56862 Sync w/ SPARC port, from Paul Krannenburg <pk@netbsd.org>:
Remove esp FLUSH when residual bytes are present in FIFO, the ncr53c9x
driver will flush when necessary. Doing the FLUSH here interferes
with DMA-enabled target selection.
1997-05-08 01:33:49 +00:00
augustss
c4a52794f1 Convert to new orthogonal audio encoding scheme and implement
some of the new encodings.  The change to ioctl AUDIO_GETENC is
NOT backwards compatible.
1997-05-07 18:51:31 +00:00
mycroft
84bca5d679 Don't use _SUBDIRUSE outside of bsd.subdir.mk. 1997-05-07 17:28:47 +00:00
mycroft
53fb29bd67 We don't need a special clean: target here. 1997-05-07 17:16:05 +00:00
mjacob
11fc3c2a7a In case someone doesn't compile in DEBUG we need to still
snag the msgbuf. Also, observe protocols about message buffer
being 'mapped'.
1997-05-07 17:13:32 +00:00
mycroft
185b24dd5b Use libinstall::, not install:, to prevent instaling LIB. 1997-05-07 16:20:26 +00:00
mycroft
5432d44374 Override the proginstall target to do our special hackery. (Yuck.) 1997-05-07 16:15:01 +00:00
mycroft
29ed66d6d3 Minor change. 1997-05-07 16:13:46 +00:00
mycroft
f778381424 Clean up weirdness. 1997-05-07 16:13:13 +00:00
mycroft
6e0450c70f Use proginstall:: to disable installing PROG. 1997-05-07 15:59:08 +00:00
mycroft
ba4cf66fbe Add a missing .PHONY. 1997-05-07 08:26:04 +00:00
mycroft
fd8daf980e Add .MAKE to the .OBJDIR hacks, so they work with `make -n'. 1997-05-07 07:15:34 +00:00
lukem
6fe4889b92 cleanup use of whitespace 1997-05-07 02:20:26 +00:00
lukem
a9016579ab clean up whitespace use 1997-05-07 02:14:59 +00:00
lukem
8744fe853c clean up use of whitespace 1997-05-07 01:55:23 +00:00
lukem
c4eb220ea5 minor whitespaco fixes 1997-05-07 00:32:44 +00:00
lukem
7f69a90075 whitespacos i missed 1997-05-07 00:29:18 +00:00
lukem
3490941ddb cleanup unecessary quotage of options 1997-05-07 00:27:33 +00:00
lukem
8c57ea0789 clean up use of whitespace
remove unnecessary quotes around options
1997-05-07 00:23:43 +00:00
pk
45cc2d6db4 turbosparc: 256 contexts, page tables cannot be cached. 1997-05-06 21:00:54 +00:00
lukem
4abf5a1a72 be consistent with use of spaces and tabs.
don't need quotes around options with _'s in the name
1997-05-06 00:56:53 +00:00
lukem
5352e2713a be consistent with use of spaces and tabs. 1997-05-06 00:31:49 +00:00
thorpej
3a12db07c6 Update for USELEDS changes (including: garbage-collect LED frobbing
code; it has moved to leds.c)
1997-05-05 21:15:41 +00:00
thorpej
500498e411 Update for USELEDS changes. 1997-05-05 21:14:04 +00:00
thorpej
e677b62290 Garbage-collect LED-related stuff. 1997-05-05 21:12:49 +00:00
thorpej
aec958ddf3 Don't initialize the DMA controller here. 1997-05-05 21:11:59 +00:00
thorpej
95bae625a2 Update for USELEDS changes. 1997-05-05 21:09:13 +00:00
thorpej
9c8fdf3dad Use dio_intr_establish(). 1997-05-05 21:08:26 +00:00
thorpej
9eddfbfca3 Update for USELEDS changes. 1997-05-05 21:07:31 +00:00
thorpej
ff163c6424 Use dio_intr_establish(). 1997-05-05 21:06:41 +00:00
thorpej
feb623a9ea - Use dio_intr_establish().
- Update for USELEDS changes.
1997-05-05 21:05:32 +00:00
thorpej
3a85f14da4 Use dio_intr_establish(). 1997-05-05 21:04:16 +00:00
thorpej
73b24faec6 Do a bit of spring cleaning. 1997-05-05 21:02:39 +00:00
thorpej
82cab4fef4 Prototype dio_intr_establish() and dio_intr_disestablish(). 1997-05-05 21:01:33 +00:00
thorpej
5bada123f8 - Initialize the DMA controller in dioattach().
- Implement dio_intr_establish() and dio_intr_disestablish().
1997-05-05 21:00:32 +00:00
thorpej
0a8e2a9ce8 Use dio_intr_establish(). 1997-05-05 20:58:18 +00:00
thorpej
bd2bc06c75 - Make "USELEDS" a defopt'd option, so we can generate dependencies on
it.  Conditionally compile leds.c on USELEDS.
- Rearrange mainbus and intio declarations slightly.
- Add declaration for the forthcoming "frodo" driver.
1997-05-05 20:57:29 +00:00
thorpej
663cee4555 Pull the LED frobbing code out of machdep.c. Since there is more than
one LED on an hp300 SPU, rename the file to indicate plurality.
1997-05-05 20:54:34 +00:00
thorpej
397e92e33c New-style kgdb_machdep.c, mostly duplicated from the sun3 port, modified
slightly by me.
1997-05-05 20:51:05 +00:00
thorpej
95dd345f81 Garbage-collect old KGDB code that is no longer used. 1997-05-05 20:48:26 +00:00
ragge
e3a104cb1f Oops, I forgot to check this file in after clock changes. 1997-05-04 19:13:33 +00:00
pk
6c717dd82c Bump version number to celebrate the fact that the bootblocks can be used
unmodified across all platforms.
1997-05-04 14:19:22 +00:00
mjacob
b9e2002bb5 Oops- Really should do local files before common. 1997-05-04 01:53:01 +00:00
mjacob
f534e05161 Fix tags target. 1997-05-04 01:49:14 +00:00
cjs
85207f1f0c Oops. ep at eisa is still `untested.' 1997-05-03 21:27:24 +00:00
mycroft
90f17dd8ab Oops; put the __attribute__ in the right place. 1997-05-03 12:49:05 +00:00
mycroft
a60739aacf Make sure struct trapframe is packed tightly. 1997-05-03 10:16:58 +00:00
mycroft
94313a874b Oops; reverse sense of previous test. 1997-05-03 08:46:09 +00:00
mycroft
1dafb51ea6 Eliminate unused variable in '030-only kernels. 1997-05-03 08:41:29 +00:00
mycroft
fc324bb0b9 Eliminate unused variable when !USELEDS. 1997-05-03 07:09:57 +00:00
briggs
5230506ca5 Support for clearing interrupts on a Rasterops Colorboard 364.
Thanks go to Michel Chalufour <michelc@tiac.net> for grovelling around for
me.
1997-05-03 02:29:54 +00:00
jeremy
3f7423a432 Wrap all label references with new macros in m68k/asm.h in preperation
for ELF switchover. (eventually)
1997-05-02 23:07:35 +00:00
ragge
0a9b7dccc7 BPF and multicast support added, patches provided by Jonathan Stone
and Ken Wellsch. Fixes PR#2796.
1997-05-02 17:11:24 +00:00
pk
a05df4e228 * finish off support for the 82077 chip as found on sun4m machines.
* add non-dma mode bit to `specify command', so formatting disks starts
  working (thanks to Jeremy Cooper for finding out about this).
1997-05-02 13:03:44 +00:00
pk
3e9d89dcd0 Switch to copy of file in /sys/dev/ic. 1997-05-02 08:30:42 +00:00
jeremy
e5380025ac Now in dev/ic. 1997-05-02 06:31:16 +00:00
briggs
1b2e317732 Thanks to Tobias Beal <tbeal41@maine.maine.edu>, we can clear interrupts
on at least one Radius Precisioncolor 8 board.
1997-05-02 00:54:28 +00:00
gwr
7a80e420ed Remove unused part of sun3_kcore_hdr. 1997-05-01 22:48:09 +00:00
briggs
aba671db48 Treat drhw 118 and 119 the same for Apple ethernet cards. 1997-05-01 18:17:13 +00:00
thorpej
766d429d62 Correct a comment long since outdated. 1997-05-01 16:24:26 +00:00
gwr
24af362f60 Implement pmap_pa_exists() so that /dev/mem works.
This was the reason ps (kvm_getargs) did not work.
1997-05-01 15:00:11 +00:00
gwr
b9a0ca59bb oops... 1997-05-01 14:58:20 +00:00
gwr
887d5be03e Forgot to import this. (Thanks, der Mouse) 1997-05-01 14:57:17 +00:00
cjs
4072012b2b Ep driver on ISA bus is no longer untested. Also optimistically
removed the `untested' designation from the EISA-bus version, since
there's no reason at all why it won't work.
1997-05-01 07:11:11 +00:00
thorpej
989ed431e1 Oops, the numbers for "t" and "s" got swapped around. No functional
difference, just correct now.
1997-05-01 05:26:48 +00:00
briggs
a64bc3c19c Clear the interrupts properly on an E-Machines Futura II LX and make a wild
guess at clearing them on a Futura II SX/DSP and RasterOps ColorBoard 364.
Thanks to Michel Chalufour <michelc@tiac.net> for loaning me the II LX.
1997-05-01 03:34:07 +00:00
briggs
ef185efb22 Add in a couple more board types. 1997-05-01 03:31:07 +00:00
gwr
5e11440dae Fix printf format vs. arg type warnings (in DEBUG sections). 1997-04-30 23:28:03 +00:00
scottr
19f1b8dd3f Remove dependency on if_aereg.h for vendor constants; these are really
driver-, not architecture-specific.
1997-04-30 19:47:11 +00:00
scottr
b28e1b9459 Fix typo in last change. 1997-04-30 19:32:32 +00:00
scottr
4a36cdfd19 Adjust to use16bit -> dcr_reg change in MI driver. 1997-04-30 18:10:37 +00:00
mycroft
19c4f04eeb Sync with GENERIC, and nuke procfs and kernfs. 1997-04-30 06:06:02 +00:00
augustss
526ef2f618 Change the interface between the high and low level audio drivers
so that all audio encoding parameters are set at once.  This simplifies
the interface and make error checking easier.
1997-04-29 21:01:33 +00:00
scottr
0852aa1f1a Use the new 8390 driver back end. 1997-04-29 05:17:13 +00:00
scottr
63ac9ee6e0 Use the new MI 8390 driver, and garbage collect. 1997-04-29 04:40:22 +00:00
jonathan
d6611ebcef * Add fixes for possibly-uninitialized variables from rev 1.11.
(The operator-precdence changes in 1.11 were pulled up in rev 1.14).

* If the chip asserts a SCSI-bus error (SII_BER) in sii_intr,
  reset the SII_BER bit instead   of ignoring it.
  XXX SII_BER May need checking and resetting elsewhere.
1997-04-29 01:58:38 +00:00
gwr
42f8cf900b Use unsigned when doing copy/xor check. 1997-04-28 23:43:56 +00:00
gwr
cb96a536e4 Add a comment about obio_mapin(). 1997-04-28 23:38:47 +00:00
gwr
1046c915b6 Drivers that use obio_mapin should enforce OBIO attachment
(just to be paranoid).
1997-04-28 23:30:19 +00:00
gwr
304d49b554 include <machine/leds.h> 1997-04-28 23:21:01 +00:00