Commit Graph

23966 Commits

Author SHA1 Message Date
mjacob bc355c6b3f new framework 1998-07-15 19:59:45 +00:00
mjacob afb0e1b693 no framework 1998-07-15 19:53:57 +00:00
mjacob e8f976016e Some major thrashing to handle building for other than NetBSD.
There is one change of note- build a list of completing commands in
ispintr and then say you're done- this avoids some re-entrancy issues
that had surfaced.
1998-07-15 19:50:16 +00:00
mjacob d96bd50c07 NetBSD OS specific routines and definitions. 1998-07-15 19:44:04 +00:00
thorpej d681d158c7 Remove the raw HYPERchannel kludge. 1998-07-15 17:45:52 +00:00
thorpej 389da54091 Garbage collect `imp' and `hy'. We don't have the rest of the code, and
it's not like anyone is ever going to be using either of them.
1998-07-15 17:39:20 +00:00
drochner 9d504aa676 rename "LK" -> "declk" for consistency 1998-07-15 14:06:34 +00:00
pk 3036bcf8e5 Close a descriptor leak. This proved especially detrimental under heavy
paging.
1998-07-15 12:38:29 +00:00
drochner 8babb8290c fix egcs warnings 1998-07-15 09:35:35 +00:00
thorpej 41986b6ad6 Print out the revision as a letter, i.e. 'A', ... 1998-07-15 03:29:47 +00:00
thorpej 25a86ef490 Be a little more thorough when printing the chip name, and also print
the chip revision.
1998-07-15 00:01:17 +00:00
thorpej 45c63f6b7b Massive cleanup of this driver (format police, autoconfig). More to come. 1998-07-14 23:38:49 +00:00
fair 86574cd4f8 patch to add "vi/ve" per PR#4583 1998-07-14 20:29:11 +00:00
drochner 37040ed809 support keyboards with PC interface and DEC layout (LK461) 1998-07-14 19:33:58 +00:00
drochner bfd46dadad fix codes delivered by "Help" and "Do" keys 1998-07-14 19:32:17 +00:00
mhitch 1143e585fc PS -> SR: PS as alias to SR was removed due to conflict with other usage. 1998-07-14 03:19:17 +00:00
mhitch 32a0c413a5 Oops - check and calculate maxproc with right symbols - maxproc was getting
incorrectly reduced for UVM.
1998-07-14 03:17:05 +00:00
thorpej 750e240c97 Print the "model" property. 1998-07-14 01:39:34 +00:00
tsubai dc16918e07 Add support for G3 Mac. 1998-07-13 19:37:28 +00:00
tsubai 14fd96b811 Get framebuffer address from Openfirmware. 1998-07-13 19:31:53 +00:00
tsubai ed1ec91943 Change VM_MAXUSER_ADDRESS to 0x7ffff000. 1998-07-13 19:28:56 +00:00
tsubai a0fead97de Add support for Motorola MPC106. 1998-07-13 19:27:13 +00:00
tsubai 37c5807bba Clean up a bit. 1998-07-13 19:22:26 +00:00
tsubai 209036f339 Revert to previous version.
Use ROM font.
1998-07-13 19:14:43 +00:00
ross d58ad29b6c Kill the old extern mchkinfo pointer and prototype cpu_mchkinfo().
This file has been collecting prototypes and other things used in the MD
code...that's bad...because this is exported to the MI kernel.
1998-07-13 19:10:14 +00:00
ross 48257ecec1 Define cpu_mchkinfo() to locate the mchkinfo struct. This is used to fix
the recent bug where Multias around the world have been aborting back to
SRM with no message at all as they tried to attach a TGA or VGA console,
because the old mchkinfo pointer wasn't allocated prior to use.

And contrary to widespread rumour, this bug has nothing to do with my
LCA IDE mod...that worked just fine. "Not guilty."
1998-07-13 19:07:33 +00:00
ross 0d7c1dede9 Use the new cpu_mchkinfo(). 1998-07-13 18:49:34 +00:00
tsubai 96a07e3f99 Use "boot-device" if "bootpath" is not set. 1998-07-13 17:38:37 +00:00
tsubai dd998f4113 * Use "boot-device" if "bootpath" is not set.
* Reduce code size.
1998-07-13 17:35:55 +00:00
thorpej 943235ed66 Those tabs sure are excitable!! 1998-07-13 16:50:56 +00:00
thorpej ae9d36ba00 oof, fix a couple of over-zealous tabs. 1998-07-13 16:48:11 +00:00
hpeyerl 76735d1493 Add support for ATA CD changer devices like the NEC CDR-251.
Evidence of managerial coding removed by Victor T. Cleaner (thorpej)
1998-07-13 12:04:29 +00:00
hpeyerl 8c782053ab Add support for ATA CD changer devices like the NEC CDR-251. 1998-07-13 12:01:50 +00:00
augustss 20106c31ca Add some useful HID ioctl()s. 1998-07-13 10:49:41 +00:00
nathanw dd34e06fe7 Add three more cards:
- USRobotics WorldPort 14.4 modem
 - Mototola Personal Messenger 100c CDPD modem
 - Socket Communications PageCard

Note: Most of this should be replaced with a com-port-detecting
heuristic better than the previous two.
1998-07-13 07:37:05 +00:00
mark 57c3ea15d8 Guard opt_cputypes.h include with _KERNEL && !LKM 1998-07-13 06:12:08 +00:00
dbj 1c34e07b3f worked on adding nextdma support for scsi driver. 1998-07-13 04:01:39 +00:00
mark 0756290d3f Recognise the ALI M1543 in order to support ALI Aladdin V chipset
motherboards.
1998-07-13 03:31:57 +00:00
mark 7778b00444 Recognise the ALI M1541 in order to support motherboards with the
ALI Aladdin V chipset.
1998-07-13 03:30:52 +00:00
mark b34e933db8 Regen. 1998-07-13 03:29:48 +00:00
mark 22d5b20046 Add ID for ALI M1541 Host-PCI bridge. 1998-07-13 03:29:00 +00:00
ross c9e3235f35 1. Don't deref zero on early machine checks.
2. Revert last week's non-KNF {} editing.
1998-07-13 00:14:52 +00:00
augustss 7732413b58 Regen. 1998-07-12 20:44:53 +00:00
augustss 022ab523d2 Add USB. 1998-07-12 20:07:27 +00:00
augustss deb00272b9 Add USB support. Supported so far:
* UHCI and OHCI host controllers on PCI
* Hubs
* HID devices withe special drivers for mouse and keyboard
* Printers
1998-07-12 19:51:55 +00:00
veego fd0635e5c2 Remove a trailing ',' in an enum declaration. 1998-07-12 18:27:06 +00:00
veego 29b6a40f77 Add include to SUBDIR to install the machine includes. 1998-07-12 18:06:54 +00:00
veego 72955c78da New Makefile to install the includes, like all the other ports do. 1998-07-12 18:06:15 +00:00
veego 1b46ebe1d9 Add elf_machdep.h to the INCS list. 1998-07-12 17:53:29 +00:00
thorpej 5450855604 GCC erroneously thinks used_vnode_size (a quad) is uninitialized on m68k. 1998-07-12 17:14:08 +00:00
thorpej 5f59f7e15a Add i386 relocations. 1998-07-12 17:09:43 +00:00
veego 97ab1bd53b Resolve conflicts from the import. 1998-07-12 15:23:59 +00:00
veego e3d44c6e25 Resolve conflicts from the import. 1998-07-12 15:11:50 +00:00
jonathan e2ff73afa7 Compute SFB pixel dimensions at attach time for PMAGB-BB users.
(qvss-compat needs revision, but should be replaced with wscons anyway.)
1998-07-12 06:26:37 +00:00
cgd 8f94f1a709 I went to Fry's and noticed a few more cards that probably will be
supportable with this driver, but currently aren't supported.  Add them.
1998-07-12 02:21:56 +00:00
thorpej 2aaf359b9f Add m68k relocation types. 1998-07-12 01:39:06 +00:00
thorpej 639cc899cf Basic elf_machdep.h for m68k; doesn't include relocations, yet. 1998-07-12 01:17:58 +00:00
dbj 1e54ab4262 Reserved 8k at top of memory for ROM. This fixes warp9c boot problems.
changed ethernet panic to a warning when out of DMA buffers.  This allows
resuming if you sit in ddb too long.
1998-07-11 07:06:16 +00:00
mjacob 0978d23cc4 Clarify that Sense Key 1 is a "RECOVERED ERROR"- not just an error. 1998-07-11 00:52:09 +00:00
nathanw dd03358e27 tyop and speeling. 1998-07-10 23:28:31 +00:00
thorpej b20c7bf68c For SOCK_STREAM, provide the socket credentials to the accepter as soon as
the client connects.
1998-07-10 22:15:47 +00:00
tron 67eb4c3488 Regen from pcidevs. 1998-07-10 20:41:36 +00:00
tron 763b848669 Add Intel's BX chipset, 3Dfx Interactive and their Voodoo board. 1998-07-10 20:40:06 +00:00
mhitch 7b04d96d02 Add UVM support to amiga.
Use a second free memory list for 16-bit Zorro II memory other than the
first memory segment.
1998-07-10 20:26:35 +00:00
mhitch dc9188e3e1 Add UVM support to amiga 1998-07-10 20:23:24 +00:00
mhitch 6e2d9eae80 Support two free memory lists; second list will be 16-bit Zorro II memory. 1998-07-10 20:16:21 +00:00
mhitch 7fee5ec13e Fix a typo in a panic message. 1998-07-10 20:14:59 +00:00
mjacob b5b5f16fba hmm, char sign extension bit me 1998-07-10 19:37:18 +00:00
thorpej e552760fbe Glue in fast forwarding. 1998-07-09 22:30:01 +00:00
perry 9ca2a54c6d Set soundblaster irq to 5 by default. 1998-07-09 20:59:38 +00:00
thorpej 902855d60e Fix int32_t overflow with large serially concatenated components,
from Noriyuki SODA <soda@sra.co.jp>, PR #5729.
1998-07-09 20:56:12 +00:00
drochner d1da31d671 redo the PCI configuration mode detection - should make some less
standard compliant PCI chipsets work (Compaq, Connectix emulated Triton)
fix the bug reported in PR port-i386/5727 (soda@sra.co.jp)
1998-07-09 20:19:52 +00:00
mycroft f37f08c48e This doesn't need opt_compat_netbsd.h any more. 1998-07-09 09:27:33 +00:00
scottr 7b68890c7f Fix a problem with the reworked reboot code on the IIci: don't try to
reference variables after the MMU is disabled.
1998-07-09 06:02:50 +00:00
mycroft 3a64270ca6 Back out the change from TCP/IP vol 2, in revision 1.7, which removed TH_FIN
from the output flags for CLOSING state.  There is no harm in retransmitting
the FIN, and this change has unexpected side effects that break simultaneous
close behaviour.
1998-07-09 05:49:56 +00:00
mycroft 401accfd7a Don't #ifdef the encoding compatibility crud. It's needed for source
compatibility with other systems and much third party software.
1998-07-09 02:45:45 +00:00
mark 7b6cd6a0a6 Guard opt_cputypes.h include with _KERNEL && !LKM. 1998-07-09 02:43:25 +00:00
mycroft 3158aca613 Fix the name of the ulinear_be mode. 1998-07-09 02:26:55 +00:00
mjacob 93ecc95d92 Fix printing of real mem. I'm going to, for right now, leave it to
someone else to figure out the best machine independent fashion of
fixing ptoa to handle > 32 bits.
1998-07-09 00:46:17 +00:00
kleink 6fd55f2089 Move the definition of NZERO from <sys/param.h> to <sys/syslimits.h>, since
XPG3 and later require it to be made visible by inclusion of <limits.h>,
which, in turn, includes <sys/syslimits.h>.  The <sys/param.h> API is not
affected by this change, since <sys/syslimits.h> is included from there, too.
1998-07-08 19:31:33 +00:00
pk f640e832b1 Make sure to release buffers only once. 1998-07-08 18:41:24 +00:00
sommerfe 3858a1179a Only run pppasyncstart (sc->sc_start) from the netisr handler.
This allows pppoutput to be called from splimp (e.g., when ipflow is
in use.) without requiring pppasyncstart to run at splimp.
This is believed to fix PR5624.
1998-07-08 18:05:48 +00:00
drochner acea5c2e79 add dependency to get the version number right 1998-07-08 17:47:42 +00:00
drochner 13b329cdd2 bump version number to reflect the partition ID change
(should have been done long ago)
1998-07-08 17:46:21 +00:00
thorpej bca69afed6 Place the software PG_EXEC PTE bit into the protection array, instead
of OR'ing it in manually.
1998-07-08 17:30:45 +00:00
mjacob 6b092524ea stale beer- place structure in right file 1998-07-08 17:20:42 +00:00
thorpej a8d2213784 Define a macro that returns the mask of PALcode PTE bits that we care
about when determining if a TBI is necessary (i.e. the PALcode bits minus
the FOx bits, since we always track those).
1998-07-08 17:19:46 +00:00
thorpej 0792d7f3db Define a shorthand macro that represents the mask of PTE bits that the
PALcode cares about.
1998-07-08 16:48:49 +00:00
thorpej 3f776dfbe2 Cosmetic change. 1998-07-08 16:46:51 +00:00
mjacob 434b3fe82b tentative better fix for allocating the correct number of mchkinfo structs 1998-07-08 16:28:25 +00:00
thorpej e32f380030 Garbage-collect some of the old ISA DMA code. 1998-07-08 07:56:47 +00:00
thorpej 8bbd7378c5 RCS ID police. 1998-07-08 07:56:13 +00:00
thorpej 48abe1f910 From pmap.new.c (UVM case only):
Put the first 16M of RAM onto the "first16" free list, and everthing
else onto the default free list.
1998-07-08 05:41:59 +00:00
thorpej 9bbe01f100 Note that UVM is mandatory on the Shark (otherwise ISA DMA won't work) 1998-07-08 05:27:17 +00:00
mjacob ff376fbd03 Doh! Jason caught me being really stupid. There isn't necessarily
a linear 0..N mapping out of alpha_cpu_whami - which is what I was
using to index the new cpu machine check array. This is a quick hack
back to just using the first element while I think of a kinder function
that will do the function (per-platform) of whami->VIRTUAL CPU ID, which
if you think about it, is really necessary anyway.
1998-07-08 05:25:40 +00:00
thorpej 1b5fbe0b89 DRQ 4 is used to chain the two 8237s together. Make sure it's always
cascaded and that it will be unmasked when DMA is thawed after being
frozen.  (This also has the effect of making sure that no device ever
erroneously gets DRQ 4.)
1998-07-08 05:23:23 +00:00
thorpej 30291f0f2f Declare the ofisa soundblaster attachment. 1998-07-08 05:14:10 +00:00
thorpej e332a993e2 Initialize the machdep ISA DMA structures once we've done OpenFirmware
ISA DMA initialization.
1998-07-08 05:01:56 +00:00
thorpej 8d10a53ddb Use MI ISA DMA code (XXX this needs some work). 1998-07-08 05:01:17 +00:00
thorpej fcd0183e81 Remove all of the home-grown ISA DMA code, and translate the OpenFirmware
"dma-ranges" property into the pmap's ISA DMA ranges.
1998-07-08 05:00:40 +00:00
thorpej 28cbb7c537 Provide the ISA chipset tag. XXX This should go away in favor of a real
ofisa attachment of the "cs" driver.
1998-07-08 04:59:46 +00:00
thorpej f5535d79ca Provide the ISA chipset tag. 1998-07-08 04:59:02 +00:00
thorpej 8eeb7eaad0 Implement an ISA bus_dma back-end for NetBSD/arm32. Tested only on the
Shark, but should work for other ISA-"enabled" arm32 systems, as well.
1998-07-08 04:58:03 +00:00
thorpej 696858d5f9 Nuke these; we use the MI ISA DMA code now. 1998-07-08 04:57:13 +00:00
thorpej 98b07e4b07 Provide an ISA chipset tag via isa_attach_hook(). G/c home-grown
ISA DMA code, in favor of the MI code.
1998-07-08 04:56:13 +00:00
thorpej b51b6b7c04 Lift-and-tweak from the i386 port (near-complete rewrite), providing
the ISA DMA stuff expected by machine-independent code.
1998-07-08 04:54:47 +00:00
thorpej eeb19dd33c Remember our ISA chipset tag. 1998-07-08 04:53:33 +00:00
thorpej f7e400a7ab Use the machine-independent ISA DMA code.
XXX We use COHERENT for now; need to deal with sync'ing DMA maps being
XXX used by the isadma driver.
1998-07-08 04:53:03 +00:00
thorpej a177e7aedc Rearrange this a little so we can use MI ISA DMA code. XXX Should just
pull in files.isa, but Not Right Now, apparently.

Add the sound blaster driver here (XXX see above), and build the
arm32 bus_dma back-end.
1998-07-08 04:51:12 +00:00
thorpej 8e03657b43 Define two free lists: default, and one to protect ISA DMA-safe memory. 1998-07-08 04:49:21 +00:00
thorpej d7d001fe70 Allow platform-specific code to define DMA-safe memory ranges for ISA.
If pages being loaded into the VM system intersect with any of these
ranges, the intersecting pages will be placed on a lower-priority
free list to protect them.
1998-07-08 04:48:20 +00:00
thorpej d47ea67c1f Define one page free list, and put all pages on it. 1998-07-08 04:43:18 +00:00
thorpej 6fa49323d7 Put VMEbus RAM on a lower priority free list, since it's much slower (because
the MVME-147 doesn't cache access to any VMEbus space).
1998-07-08 04:40:28 +00:00
thorpej 6fb9a8addf Define one page free list, and put all pages on it. 1998-07-08 04:39:34 +00:00
thorpej 1bd007d54b Define 2 free lists: a default, and a "first16", which is where the first
16M of RAM goes (in an effort to protect ISA DMA-safe memory).
1998-07-08 04:38:33 +00:00
thorpej 26287d01ec Put the first 16M of RAM onto the "first16" free list, and everthing
else onto the default free list.
1998-07-08 04:37:43 +00:00
thorpej a5dd574b12 Attempt to pull buffer cache pages out of the "first16" free list, in
an effort to avoid bouncing file system buffers (it's not clear how much
of a win this is, and it'll be pointless w/ a unified buffer cache, but
what the heck).
1998-07-08 04:36:39 +00:00
thorpej 1ea93eea1c Define one page free list, and put all pages on it. 1998-07-08 04:35:23 +00:00
thorpej 7fd701e0fa Add support for multiple memory free lists. There is at least one
default free list, and 0 - N additional free list, in order of descending
priority.

A new page allocation function, uvm_pagealloc_strat(), has been added,
providing three page allocation strategies:

	- normal: high -> low priority free list walk, taking the
	  page off the first free list that has one.

	- only: attempt to allocate a page only from the specified free
	  list, failing if that free list has none available.

	- fallback: if `only' fails, fall back on `normal'.

uvm_pagealloc(...) is provided for normal use (and is a synonym for
uvm_pagealloc_strat(..., UVM_PGA_STRAT_NORMAL, 0); the free list argument
is ignored for the `normal' case).

uvm_page_physload() now specified which free list the pages will be
loaded onto.  This means that some platforms which have multiple physical
memory segments may define additional vm_physsegs if they wish to break
individual physical segments into differing priorities.

Machine-dependent code must define _at least_ the following constants
in <machine/vmparam.h>:

	VM_NFREELIST: the number of free lists the system will have

	VM_FREELIST_DEFAULT: the default freelist (should always be 0,
	but is defined in machdep code so that it's with all of the
	other free list-related constants).

Additional free list names may be defined by machine-dependent code, but
they will only be used by machine-dependent code (e.g. for loading the
vm_physsegs).
1998-07-08 04:28:27 +00:00
thorpej efd84d4a97 Add a "free_list" to UVM's vm_physseg, indicating which free list the
pages in that physseg are on when they're free.
1998-07-08 04:19:59 +00:00
scottr 6e47b1c654 mac68k/obio/if_mc_obio.c needs hide/integrate defines, too. Moved back to
if_mcvar.h.
1998-07-08 04:18:53 +00:00
scottr d5b30c1cb1 Revert last change. 1998-07-08 04:16:05 +00:00
mjacob 638f0aab7c Clarify comment about what nodes are being 'found' and noted for later
use by an error handler:

 * There can be only one TurboLaser, and we'll overload it
 * with a bitmap of found turbo laser nodes. Note that
 * these are just the actual hard TL node IDS that we
 * discover here, not the virtual IDs that get assigned
 * to CPUs. During TLSB specific error handling we
 * only need to know which actual TLSB slots have boards
 * in them (irrespective of how many CPUs they have).
1998-07-08 01:03:41 +00:00
mjacob a5e7f763c2 minor tweak, and example of how to do error insertion 1998-07-08 00:58:09 +00:00
mjacob 73c269fe20 attempt to catch some stuff for ev5 module info 1998-07-08 00:56:39 +00:00
mjacob 9f1070514c First (prelim placeholder) pass at machine check handler for tlsb 1998-07-08 00:49:06 +00:00
mjacob adf058f0f7 There can only be one TurboLaser node, and now we'll overload
into the integer tlsb_found a bit map of found nodes and export
it to the rest of the kernel. This is so that at machine check
time when we're doing some TLSB/KFTXX error handling we don't
have to attempt a badaddr to look at all TLSB nodes (which will
just be too sad to try...).
1998-07-08 00:47:53 +00:00
mjacob de4f340241 add some error handling specific definitions 1998-07-08 00:45:52 +00:00
mjacob 84076832df add some more offset definitions 1998-07-08 00:45:08 +00:00
mjacob 6f87cdce00 Start of the platform specific (RAWHIDE) machine check handler. This
is not really needed for this platform, except that we might want to
handle PCI errors which get reported through here. In any case, this
prints out more info than is usual. Will probably need to detune
this to be based upon DIAGNOSTIC defines.
1998-07-08 00:44:32 +00:00
mjacob 57190a7be7 use new mchkinfo structures for expect/recv storage 1998-07-08 00:42:14 +00:00
mjacob 9035e8b3eb Move the search for number of cpus up earlier because we need to know
how many cpus there are when we (now) valloc per-cpu machine check
structures.
1998-07-08 00:41:32 +00:00
mjacob 275fb86f8d add some error handling definitions 1998-07-08 00:40:18 +00:00
mjacob 35ffe8edb3 Add machine check type definitions. Structure the expected/received
machine check items.
1998-07-08 00:39:02 +00:00
mjacob dfe345a444 common logout structure definitions, or a start thereof 1998-07-08 00:36:18 +00:00
mjacob 9c326571d3 add a common logout printing routine file 1998-07-08 00:34:49 +00:00
mjacob 163f4f10b1 add common logout printing routine file 1998-07-08 00:34:27 +00:00
mark 93179db2b7 Remove several pointless cache/tlb cleans. (From Neil Carson). 1998-07-08 00:18:16 +00:00
mark e1fe0d71c0 Fix IOMD ID checks. 1998-07-08 00:15:59 +00:00
mark 9a4a105abb Remove un-necessary write buffer drains. (From Neil Carson). 1998-07-08 00:13:41 +00:00
mark f79b12670f Simplify cache cleaning in page_move(). (From Neil Carson). 1998-07-08 00:12:33 +00:00
mark 9dccefd1c9 Simplify the included files. 1998-07-08 00:10:44 +00:00
mark ddae1799a5 Make sure the write buffer is drained during syncing. 1998-07-08 00:08:39 +00:00
thorpej 8d986de632 Add support for mmap'ing disk block devices. 1998-07-07 23:22:13 +00:00
thorpej de83dce0de On second thought, call that like the rest of the shared intr functions. 1998-07-07 22:24:38 +00:00
thorpej c7f8d02b23 Always count the number of strays we encounter, but don't send a "stopped
logging" message if we're ignoring strays.
1998-07-07 22:06:29 +00:00
thorpej 1ddd528346 Fix typi. 1998-07-07 22:02:57 +00:00
thorpej e82fc7d3cd The Pyxis core logic in the 164SX and 164LX seems to have problems with
stray interrupts.  Do what Digital UNIX (formerly DEC OSF/1) does; just
ignore strays.
1998-07-07 21:49:47 +00:00
thorpej ca73507d0b The Pyxis core logic in the Miata seems to have problems with stray interrupts.
Do what Digital UNIX (formerly DEC OSF/1) does; just ignore strays.
1998-07-07 21:47:49 +00:00
thorpej be83de18fd Use ALPHA_SHARED_INTR_DISABLE() to test if a shared interrupt should
be disabled after a stray.
1998-07-07 21:44:57 +00:00
thorpej 443d238f70 Define a macro to test if a shared interrupt should be disabled after
a stray has occurred.
1998-07-07 21:37:11 +00:00
thorpej 4220ffab81 Loop until all netisrs are consumed; netisrs processed down the list might
cause additional netisrs to be scheduled.
1998-07-07 18:27:13 +00:00
mark 61cdca4a6d Remove unused file. 1998-07-07 17:59:56 +00:00
mark d20b5cf136 Clean up included files. 1998-07-07 17:51:54 +00:00
is 49ed29ab05 The INTF_RBF bit of INTREQ is mirrored in SERDAT. As we would read this
register anyway when the bit is set, we can safe one of the (slow) custom
chip accesses by using this bit.
Sounds ridiculous, but at a hardware FIFO depth of 1 and ~1 usec per
access (at IPL 5) it might help the highspeed addicts.
1998-07-07 16:46:38 +00:00
drochner 2ba4227a6e from OpenBSD:
date: 1998/06/24 20:05:03;  author: deraadt;  state: Exp;  lines: +4 -4
initialization error; joel@wmi.com

(affects debug printout only)
1998-07-07 14:13:51 +00:00
drochner cbb7aa93f0 from FreeBSD:
wpaul       1998/07/02 08:36:36 PDT

  Modified files:
    sys/i386/boot/biosboot start.S
  Log:
  Add workaround to allow the FreeBSD boot block to work on
  Kapok Computer Co. notebook with AMI 'WinBIOS' which seems to insist
  on having a short jump and nop as the first instructions in the
  boot sector code. The prevailing theory is that the BIOS is doing
  some sort of boot sector virus detection and refusing to run any
  boot block that doesn't start with the same instruction sequence as
  MS-DOG boot sector code. If this is the case, it would be nice if it
  actually printed an error message to this effect instead of just
  saying 'FAILED.'

  This workaround has no effect on the boot sector code other than to
  increase its size by three bytes.
1998-07-07 13:58:59 +00:00
ross dbd55159a2 Teach dec_axppci_33_init() a little about the nsio config registers,
enable the nsio IDE, and leave the config register ISA ports mapped.
1998-07-07 08:49:12 +00:00
thorpej 8f2575ec87 Use fixed-size types. 1998-07-07 04:29:42 +00:00
thorpej 7b2bea06c6 Declare llcintrq here. 1998-07-07 03:26:55 +00:00
thorpej 6f5a4a9d23 extern'ize llcintrq. 1998-07-07 03:26:42 +00:00
thorpej e357da6de3 Don't conditionalize externs on #if ... LLC ... 1998-07-07 03:24:53 +00:00
thorpej 9ab51d2224 Make this compile again. 1998-07-07 03:22:03 +00:00
mark 4a463e49fe defopt CPU_* options in opt_cputypes.h 1998-07-07 03:05:15 +00:00
eeh d94474ccc9 General update:
Added genassym.cf
	Removed lderr which should never have gotten in
	Removed lots of dead code from locore.s
	Added some softint stuff to intr.c
	Added support for halt -p
	esp and le both use bus_dmamap_*() functions now
		instead of kdvma_mapin()
	groundwork for PCI (but we still have no drivers for
		any sun4u PCI devices)
1998-07-07 03:05:02 +00:00
scottr 6d4420e5b2 Fix compile errors: #if DDB -> #ifdef DDB 1998-07-07 03:04:34 +00:00
mark 3d4c1e7372 Cleanup ofw_boot().
Remove un-necessary includes.
1998-07-07 02:45:00 +00:00
thorpej 88139fff5a Never, ever, ever, ever include "assym.h" in C source file. 1998-07-07 02:02:53 +00:00
mark 2abb91b62a Nuke a redundant cache clean in pmap_enter() (from Neil Carson). 1998-07-07 01:18:47 +00:00
mark 2194175b24 KNF. 1998-07-07 00:48:11 +00:00
thorpej 35bb79bc83 Oops, fix typo, pointed out by Urban Boquist <boquist@cs.chalmers.se>. 1998-07-07 00:40:27 +00:00
scottr 6124345626 Account for an offset frame buffer address. This change is somewhat
different than the one supplied by Paul Goyette in PR 5702, but
has the same effect.
1998-07-07 00:33:39 +00:00
dbj 6c2540b9a5 Removed unnecessary bug-workaround headers.
Minor compilation and header tweak.
1998-07-07 00:16:34 +00:00
sommerfe 065cac9798 Delete bogus (void) cast of m_freem (which is already a void function..) 1998-07-07 00:04:59 +00:00
mark 68dd742555 Include opt_armfpe.h 1998-07-06 18:13:26 +00:00
jtk 14119e2944 use #ifdef INET so this compiles again 1998-07-06 13:51:32 +00:00
augustss 8af687b575 Add mixer output selection.
From gson@araneus.fi (Andreas Gustafsson)
1998-07-06 11:12:21 +00:00
augustss ab3827619d Add AudioNselect. 1998-07-06 11:11:34 +00:00
matthias 2395483fe4 * Use tlbflush and not pmap_update to flush the cache.
* For the pc532, there is no need to have different implementations
  of pagemove for UVM and bsd-VM.
1998-07-06 09:42:56 +00:00
mark d41434d3ae Cleanup explict Makefile dependancies. 1998-07-06 02:43:38 +00:00
mark 9161d5ab60 Include opt_pmap_debug.h for PMAP_DEBUG defopt. 1998-07-06 02:40:42 +00:00
mark 3682a37511 Include opt_compat_old_ofw.h for COMPAT_OLD_OFW option. 1998-07-06 02:36:52 +00:00
mark 94df6c50f4 defopt COMPAT_OLD_OFW and PMAP_DEBUG. 1998-07-06 02:35:34 +00:00
mark 9ed6d03641 Always include arm32/disassem.h 1998-07-06 02:33:25 +00:00
mark 572dcd8575 Include opt_armfpe.h 1998-07-06 01:56:40 +00:00
mark f10dbf227d defopt ARMFPE. 1998-07-06 01:54:56 +00:00
mark 5df95c3336 Junk the DISASSEMBLE macro and just call disassemble() directly. 1998-07-06 01:54:36 +00:00
mark 70fba3ee34 postmortem() is no longer used in this file. 1998-07-06 01:52:26 +00:00
mark a96139b744 Include opt_uvm.h and define Lcnt appropriate for UVM or non-UVM configs. 1998-07-06 01:04:17 +00:00
mark 8b4b75b9ea The ARMFPE option is never enabled by default any more. 1998-07-06 00:59:21 +00:00
mark c73c7674d7 defopt IRQSTATS. 1998-07-06 00:53:07 +00:00
mark ac8d41742b Remove MOUSE_IOC_ACK option as this is now standard. 1998-07-06 00:49:20 +00:00
mark d016feb2d7 Define MOUSE_IOC_ACK as standard. 1998-07-06 00:43:28 +00:00
mark 9126d07941 defopt XSERVER. 1998-07-06 00:42:37 +00:00
mark e110bd8a6a defopt IRQSTATS and XSERVER 1998-07-06 00:41:17 +00:00
mark 36af051383 Update functions that missed the previous name space change. 1998-07-05 23:31:16 +00:00
jonathan b37021c1a1 defopt NATM. 1998-07-05 22:48:05 +00:00
jonathan 9bf2ba0928 Garbage-collect ``needs-flag'' from attributes ether, fddi, arc:
NETHER, NFDDI, NARC are  not used anywhere. Remove #include "ether.h",
   which had no effect.
Removes clash with "options NATM" for native-ATM network protocol stack.
1998-07-05 22:29:51 +00:00
jonathan 8b42dd3900 defopt COMPAT_NETBSD_*. 1998-07-05 18:59:40 +00:00
jonathan 3472ba67bb * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID (from unsaved buffers).
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 18:27:18 +00:00
tv 3e0c580f27 Add opt_compat_netbsd.h with COMPAT_{NOMID,09,10,11,12,13}. 1998-07-05 17:47:54 +00:00
tron 870e46e9c4 Include required "opt_ddb.h" header file. 1998-07-05 14:33:56 +00:00
jonathan d275e56dee * defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
1998-07-05 08:49:30 +00:00
dbj 023ee4f133 Started the esp scsi driver.
Fixed bus_space_handle_t in nextdma device.
Fixed scsi interrupt define.
1998-07-05 07:53:44 +00:00
jonathan b8fb6644ae Add NFS_BOOT_RWSIZE option to defopt opt_nfs_boot.h 1998-07-05 07:20:27 +00:00
jonathan 011f2bda08 defopt NS, NSIP. 1998-07-05 06:49:00 +00:00
jonathan 5c0c5dd0b4 defopt ISO TPIP. 1998-07-05 04:37:35 +00:00
jonathan 5b64a1fc00 "PS" alias for "SR" clashes with netccitt/pk.h. ifdef out. 1998-07-05 04:14:56 +00:00
jonathan fe484937cf defopt LLC 1998-07-05 03:14:41 +00:00
jonathan 1a0b4c13e3 defopt HDLC. 1998-07-05 02:25:17 +00:00
jonathan 8db0fcdbf7 defopt CCITT. 1998-07-05 02:12:22 +00:00
jonathan 2670278a47 _inqsue and _remque are used by ccitt and iso networking code:
Add #ifdefs to enable them.  (compiles and links, but untested.)
1998-07-05 02:10:14 +00:00
jonathan f2a2327e0a defopt EON. 1998-07-05 01:06:49 +00:00
jonathan 3751946b97 defopt INET, NETATALK. 1998-07-05 00:51:04 +00:00
jonathan 0ed4d699d0 defopt DDB. 1998-07-04 23:12:39 +00:00
mjacob 15f982f580 port-i386/5706: I had no problem with the previous patch, but someone
else has. Rolling it back while we try and figure it out.
1998-07-04 22:29:46 +00:00
jonathan 466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
pk 3d29b1e56c Shield `#include opt_*.h'. 1998-07-04 08:44:04 +00:00
dbj 0a1e71abf1 Fixed pre-MMU rom console printing.
Fixed probing of the segment list on color NeXT's.
Added some debug messages on console as it reads the hardware config.
1998-07-04 05:36:05 +00:00
mjacob e558885a0e Minor enhancements:
1) Quirk entries for Storage Tek 9490 (Timberline) and D3 (Redwood)
	drives.

	2) Modification to st_loadtape to do a REWIND to BOT if the
	action is a load and the tape doesn't support the LOAD command
	(9490, SD3, and IBM 3590).

	3) Cleaned up the 'undersized user record' error message to
	make a little more sense.

Various bug fixes:

kern/1275:	Now returns values in dsreg and erreg and sets resid
		(as best as it can for a 16 but integer). See also
		a recent change to mtio.h. We are declining to fix
		the portion of this bug about naming a more specific
		SCSI device. Since there is nothing programmatic
		you can do with that information, it is not useful
		to pass back at this time.

		A side effect of this change is that doing MTIOCGET
		also forces a mode sense (to get the current state
		of WRITE PROTECT).


kern/5647:	Now no longer logs to the console ILI or Filemark or (first)
		EOM (on write) errors (unless SCSIDEBUG is set).

kern/5525:	Substantially increased timeouts for a variety of
		operations, and split them into categories of
		I/O, Space, and Control operations (each have
		likely different inherent times). I/O is for
		reads/writes. Control is for mode sense/select.
		Space is for spacing the tape.

Until EOM handling is changed, though kern/391 is still not fixed. A side
effect of EOM handling is that you now always 'lose' (to the writing
application's view) the last write since EIO is what is returned on
EOM detection during writes. Hopefully the reader applications don't
get too bent out of shape by this.
1998-07-04 01:50:20 +00:00
mjacob 205c293676 Patches from Justin that handle some REV B AIC7880 problems 1998-07-03 23:45:10 +00:00
mhitch 34c823e939 A "GENERIC" kernel configured with a memory disk root. The miniroot can
now be inserted into the kernel for a self-contained installation kernel.
No more questions or problems trying to copy the miniroot to the swap
partition.
1998-07-03 22:27:59 +00:00
mhitch 65346d4042 Add memory disk. 1998-07-03 22:24:45 +00:00
mhitch 14a5ad4ce6 Make 'end' references consistant. Fixes PR#5670. 1998-07-03 22:21:42 +00:00
hubertf a18ed5d074 add missing ";" for non-UVM systems 1998-07-03 21:32:43 +00:00
mjacob 7a199bc2de kern/1275: add some clarification about what fields are updated from the
tape driver. Basically, we'll report what we can for resid, dsreg will
reflect RDONLY and MOUNTED, and erreg will retain the last seen Sense Key.
An MTIOCGET will clear these.
1998-07-03 20:25:20 +00:00
mhitch bb85c60cdc Add "mainbus0" and "cpu*" entries that used to be in std.pmax. GENERIC
should now 'config' without errors.
1998-07-03 20:06:09 +00:00
mhitch 3950d164c0 Add missing include of "opt_nfsserver.h". 1998-07-03 20:03:04 +00:00
mjacob f4918cb223 kern/5514: take the submitter's advice, at least partially. The time it
takes to do IELEM can be proportional to the number of elements, but is
also affected by wierd things like how readable the barcodes on the
media are. There are worst case scenarios I've seen where there are
white labels on the back of tapes with pencilled in labels which is
*just* close enough to being a bar code that an Exabyte 120 would
peer at them myopically and long enough for a *really* long time to
pass in inventorying the jukebox.

I've upped the limit to be proportional to 5 minutes per element. That
is long enough that someone I'm sure will complain about "you wait
to long and should time out" for broken h/w.

As is also noted in the PR, there are a lot of other issues here. It's
really also a question as to whether to update this driver or go
with CAM's driver. This one doesn't have switching between block
descriptors and not, doesn't support volume tag setting, and so on.
Time is limited. This PR should have been closed and fixed right away,
tho.
1998-07-03 19:11:25 +00:00
tsubai 21f84e9128 Add nvram device support. 1998-07-03 11:50:32 +00:00
thorpej 8cfe8959a6 Fix TCPS_HAVERCVDFIN() to actually catch all TCP states in which a FIN
has been received (CLOSE_WAIT, CLOSING, LAST_ACK, and TIME_WAIT).

From David Borman <dab@bsdi.com>.
1998-07-03 05:39:56 +00:00
thorpej 8978015d51 Mark the kernel pmap `active' in pmap_bootstrap(). 1998-07-03 05:22:10 +00:00
tv b457cc5098 For now, do not build just "netbsd" as the root device probe cannot
distinguish wd0, cs0, etc.  Build only netbsd_netboot and netbsd_wdboot.
1998-07-02 23:39:22 +00:00
mjacob efee8aedfa If GENERIC has SCSIVERBOSE on, having it off here makes no sense 1998-07-02 23:36:59 +00:00
thorpej 33f066d24c Implement the shrinking and no-change bits of the Linux mremap(2) system
call, provided by Urban Boquist <boquist@cs.chalmers.se> in PR #5693.

Add a comment about how one might implement the growing bit of mremap(2).
1998-07-02 23:26:58 +00:00
gwr 76cd67b8c7 Allow netif_getether() to use sif->sif_macaddr() on the Sun-3X
but check the PROM rev first, and print some info I want when
a PROM earlier than 3.0 is found.  (Then just try it!)
1998-07-02 21:58:25 +00:00
gwr 4b50f96523 Add strncmp.c 1998-07-02 21:36:00 +00:00
tsubai 197650c433 Reduce flushcache'd area. 1998-07-02 19:26:02 +00:00
tsubai a8ce5c2403 Console support. 1998-07-02 18:58:32 +00:00
tsubai f1b1f5211a Display/Keyboard console support (by calling Openfirmware) 1998-07-02 18:46:28 +00:00
tsubai ee91417fc2 Use BAT to map Openfirmware work area. 1998-07-02 18:21:03 +00:00
wrstuden 29f991cc2f Fixup last revision to zs.c. Keep a lot of the comment cleanup, and
keep the explicit clearing of interupts in zscnprobe.
1998-07-02 17:32:03 +00:00
mycroft b4d0730191 Cosmetic change. 1998-07-02 14:39:51 +00:00
is 0ca02c68a7 Thinko in last fix: we have to actually check each address for a copy on
our ifp, else we might fail for some strange configurations.
1998-07-02 14:00:39 +00:00
is d8b8a41918 The rewrite of if_arp.c to work with the hashed interface address lists
(1.44) missed a test for the right interface, making some machines answer
to some bogus arp requests (like for WHO-HAS 127.0.0.1).

The quick patch in 1.46-1.47 does not work for so-called "unnumbered"
interfaces, that is, (point-to-point) interfaces that share their local
address with another (e.g., the Ethernet) interface.

We add a macro to in_var.h, to step (in the current implementation) through
the hash chain and fine more entries with the same address, and use that
in if_arp.c to find one which belongs to our interface.
1998-07-02 11:39:56 +00:00
jonathan f31b504207 Change not-in-tree drier stubs to use needs-flag, not needs-count,
and use needs-count only where acutally used (qvss, qdss, ts-11)
1998-07-02 07:55:29 +00:00
thorpej 469eb58301 Fix pread64/pwrite64 wrt. argument translation. 1998-07-02 02:20:21 +00:00
thorpej e5f49cece3 Regen: pad off_t args in pread/pwrite/preadv/pwritev. 1998-07-02 01:24:24 +00:00
thorpej d4e618b3a5 Argh, pad the off_t args in pread/pwrite/preadv/pwritev. System call
numbers don't change since the window of brokenness was so small (1 day).
1998-07-02 01:23:33 +00:00
wrstuden 4f500bad2e Another printf("%:"...) bites the dust (->vprintf(...)) 1998-07-02 00:47:30 +00:00