Commit Graph

23922 Commits

Author SHA1 Message Date
thorpej
d8e4026492 Oops, unused variable warning. 1998-07-20 21:17:30 +00:00
thorpej
74fc0579eb We're not Linux. If we still want driver version strings to be displayed
at boot, then I suppose DEBUG is a reasonable compromise.
1998-07-20 21:16:52 +00:00
thorpej
79f77cc9ce The mystery bit in the TEST register is actually the CLOCK TEST bit. 1998-07-20 20:45:06 +00:00
thorpej
e99bc6379d Don't deref a NULL tty pointer in the interrupt routine. This can happen
if we're the serial console, we have not yet been open'd, and we get an
interrupt for one reason or another.
1998-07-20 17:35:17 +00:00
fvdl
2db169eb1f Avoid possibly overflowing an mbuf. From Dan S. Decasper, via Chuck Cranor. 1998-07-20 16:41:05 +00:00
kleink
e641acf153 In configure(), initialize the HIL driver's software state before enabling
interrupts; if there's an interrupt pending (i.e. because the user pressed
a key or moved his mice while the kernel was being loaded), the interrupt
handler may safely be run.  Fixes PR port-hp300/5397.
1998-07-20 10:47:50 +00:00
christos
f5f944adfd Regen 1998-07-20 07:34:11 +00:00
christos
87dc83ee69 Remove duplicate DEC card 1998-07-20 07:33:54 +00:00
mellon
7a03c42491 Fix typo. 1998-07-20 02:17:17 +00:00
dbj
84676442e2 Commented out some bus_dma code, until I can fix.
(bus_dma.c needs sync with alpha port!)
Continued progress on scsi driver.
A couple of other compiler warning level of tweaks.
1998-07-19 21:41:16 +00:00
thorpej
b4b261bbb0 Remove redundant opt_ddb.h 1998-07-19 20:45:26 +00:00
drochner
fb28f87855 Remove a check which restricted raw SCSI commands to the "minor 3"
("CTLMODE") subdevice. There are legitimate uses for raw commands with
normal tape handles too.
[I'm not sure if this is a final solution. Administrators might want
to set up a more finegrained policy. However, this should not be mixed
with the "set defaults" semantics of the "CTLMODE" subdevice; another
flag should be used instead (eg execute permission or a minor number bit).]
1998-07-19 18:43:20 +00:00
drochner
d408ddc6c7 Make the combination "profiled kernel" and "${KERN_AS} == "library""
work too. (mcount.po was forgotten)
1998-07-19 18:35:16 +00:00
christos
66370d4fe9 Regen 1998-07-19 17:30:02 +00:00
christos
e3bc291504 Add a devlist2h.awk so that we don't sprinkle the same constants over
each device driver file and use it.
1998-07-19 17:28:15 +00:00
tron
334afaa14e Regen from pcidevs. 1998-07-19 12:25:46 +00:00
tron
463e7e6dce Fix product ID for Matrox Mystique, add NEC PowerVR PCX2. 1998-07-19 12:23:56 +00:00
thorpej
53e3ba1192 Make DDB work again. 1998-07-18 23:02:33 +00:00
is
6054d626f9 Switching dev/ic/lpt.c to use spllpt() instead of spltty(). It doesn't use
tty structures, and on some machines (namely the DraCo internal lpt, and some
multi-i/o boards for Amigas and DraCos), tying spltty to the pretty high printer
interupt level would hurt serial performance.

On all affected ports but Amiga, spllpt() has been defined in machine/intr.h
to be spltty(), thus preserving old behaviour. Portmasters are encouraged to
change is, if they feel something else is better (e.g., one of its own were
possible).
1998-07-18 21:27:25 +00:00
mjacob
a455ce7531 Locking is now in the outer framework for isp_init/isp_reset- this allows
us to call isp_reset/isp_init internally with impunity.

Rename isp_phoenix to isp_restart and make it global. Clean it up a tad.

If we get an ASYNC_SYSTEM_ERROR code in isp_intr, call isp_restart and
return- the f/w is toasted at this point (usually), so we have to bring
things back to a known state.

In isp_mboxcmd, when we don't see the HOST_INT bit go clear, try and
find out if the isp is trying to tell us something and try again. This
may avoid a potential deadlock where the previous mailbox command hasn't
been cleared by the ISP.

In isp_init don't try and get device parameters if we already have them-
this typically doesn't work if we're in the middle of an isp_restart.
1998-07-18 21:10:16 +00:00
mjacob
9afa921bc1 roll core version number and add a global visible isp_restart function 1998-07-18 21:06:20 +00:00
mjacob
35c8fecf3a fix headers 1998-07-18 21:05:39 +00:00
mjacob
b85bf24ed5 fix bogus comments 1998-07-18 21:05:04 +00:00
mjacob
576988940f roll revision 1998-07-18 21:04:46 +00:00
mjacob
1aa702b8f8 fix bogus initialization 1998-07-18 21:04:22 +00:00
mjacob
99ff11f6b7 locking now out of main framework for isp_reset/isp_init 1998-07-18 21:02:06 +00:00
ragge
50d1442817 Fix PMAP_NEW and make it the default. 1998-07-18 20:35:14 +00:00
is
52ac5e203e Precompute lots of bitmasks etc. in serparam(). Results in slightly better
(but I suspect, insignificant) performance, and also prepares for 8bit +
parity support.
1998-07-18 20:19:33 +00:00
tsubai
2948f65db4 Use unsigned comparison of tbreg in delay(). 1998-07-18 16:23:44 +00:00
lukem
786b86d71b use AF_LOCAL instead of AF_UNIX 1998-07-18 05:04:35 +00:00
thorpej
3a9ed00799 Document that we are more conservative after doing MTU discovery than the
suggestion in draft-floyd-incr-init-win-03.  Rather than scaling cwnd back
by the ratio of new segment size to old segment size, we perform a slow start
using the Initial Window, computed with the new segment size.
1998-07-17 23:09:58 +00:00
pk
116c3be1e5 In dvma_mapout(), make sure to not overrun the buffer when flushing the cache. 1998-07-17 23:05:35 +00:00
thorpej
0f909866c0 Clarify that we're using the Loss Window when we receive a source quench. 1998-07-17 23:02:38 +00:00
thorpej
fa20f24cd9 Add a comment wrt. a current issue w/ CWM. 1998-07-17 23:00:02 +00:00
thorpej
a3f4316cba Clarify that we are using the Loss Window if a retransmission occurred
during the three-way handshake.
1998-07-17 22:58:56 +00:00
thorpej
830879a809 Comment where the Restart Window is computed, and in the non-CWM case,
make sure it never _increases_ cwnd.
1998-07-17 22:52:01 +00:00
thorpej
1c4ff0a086 Comment where we use the Loss Window. 1998-07-17 22:18:49 +00:00
thorpej
2fc1260cc0 Implement bus_dmamap_load_uio(). 1998-07-17 21:09:59 +00:00
mark
f6e8a93bac Replace hardcoded constant with VM_MIN_KERNEL_ADDRESS. 1998-07-17 19:12:48 +00:00
thorpej
142429fb34 bus_dma carries TNF copyright. 1998-07-17 19:02:46 +00:00
tsubai
c11b71818d Fix typo. 1998-07-17 18:53:19 +00:00
tsubai
08574665d0 Write (fake) Apple Partition Map when install boot block. 1998-07-17 18:48:37 +00:00
tsubai
0a6758d760 "chaos" PCI controller support.
Clean up.
1998-07-17 18:40:31 +00:00
tsubai
5f7fef3c79 Add bus_dma support. 1998-07-17 18:38:10 +00:00
tsubai
fb93315ffc Change pcitag_t format for bandit. 1998-07-17 18:31:56 +00:00
eeh
97081b51be Make this work for a change. 1998-07-17 02:33:13 +00:00
sommerfe
69b1b4758d Fix PR5559: if fast-forwarding, DF set, and packet too large, send ICMP error.. 1998-07-17 00:35:23 +00:00
sommerfe
534520d815 Fix PR5508: ipfil cut-through forwarding causes panic 1998-07-17 00:28:00 +00:00
is
985b3e8d4d Make this compile without USBVERBOSE. 1998-07-16 12:55:19 +00:00
tls
deac3540de Put original hash function back. It wastes a little bit of space, but is much more even -- think of the case of a web service provider, some of whose customers end up getting 'inferior service' because they're on addresses that happen to be out at the end of a hash chain. With webservers with thousands of addresses, this is a real issue. If the wasted space is a big deal, we could pick a prime number that's slightly _less_ than a power of two... 1998-07-16 06:45:09 +00:00
thorpej
4c50a37133 Back out previous, I botched something. 1998-07-16 00:46:50 +00:00
jonathan
d2ddbe58a2 Add empty opt_cputype.h to satisfy changes committed during
defopt'ing of network options.
1998-07-15 23:57:04 +00:00
mjacob
4e51ba7874 New file for building isp host adapter. 1998-07-15 20:22:19 +00:00
mjacob
66ea6cc018 Fix for kern/3835: add an sd sense handler. If we get a check condition/sense
data ASC/ASCQ of 0x04/0x01 (logical unit not ready, initialization in progress),
hang out for 5 seconds and return a RETRY THE OPERATION command. If we
get a check condition/sense data ASC/ASCQ of 0x04/0x02 (logical unit not
ready, initialization command required), send a polled/nosleep START UNIT
command and return a RETRY THE OPERATION command if that succeeds.

Don't send a START UNIT to a disk quirked as SDEV_NO_START. Don't send
a START UNIT to removable media. The reason for the latter is to not
just blindly spin up new (maybe changed) media.

I should note that I've successfully made this work with the ISP host
adapter so far. Other host adapters will need some work to be able
to manage or reasonably fail NOSLEEP/POLL commands while in this
state. Alternatively, the internal SCSI midlayer structure has got
to allow for more controlled error recovery (e.g., restart queues
controlled by the target driver).
1998-07-15 20:21:12 +00:00
mjacob
bf29f419e7 part of fix for kern/3835: use of enumerated returns from target sense handlers 1998-07-15 20:13:30 +00:00
mjacob
dba811205f 1) Part of fix for kern/3835: add in enumerated return values for target
drivers' sense handlers to return. Coincidentally one of them ends up
being ERESTARTSYS.

2) Add a SCSI_URGENT flag to xs structure- this allows host adapters that
do command tagging to do the right thing wrt a tag.
1998-07-15 20:11:34 +00:00
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