Commit Graph

33326 Commits

Author SHA1 Message Date
augustss ffb29861c2 Add a few more diagnostics. 1999-11-16 22:19:03 +00:00
augustss 70ad5362d4 Fix a pointer test that I got wrong in the big code cleanup. 1999-11-16 22:15:50 +00:00
mjacob a7c74fb98f Re-add stub Qlogic F/W files so that life is easier when/if the new
Qlogic F/W copyright is approved.
1999-11-16 18:48:40 +00:00
mjacob 8cf9a14802 Add in a step to actually probe for MCPCIAs. This allows us to run on
4100s that only have two of four possible MCPCIAs.
1999-11-16 18:37:24 +00:00
mjacob 2981278f40 Add in a define for a MCPCIA bridge register that would be suitable for
probing for with badaddr(9).
1999-11-16 18:36:27 +00:00
mjacob ce28c5e558 Make sure a MCPCIA exists before trying to initialize it. Also make
sure a MCPCIA softc exists before trying to do post-config cleanup
on it.
1999-11-16 18:33:11 +00:00
matthias 87bb3a7b2b make this work again with -mrtd. 1999-11-16 18:16:53 +00:00
enami 0a4858667a Include sys/device.h so that this file compiles again; file dev/tc/tcvar.h
now contains the definition of tc_softc.
1999-11-16 12:26:42 +00:00
augustss c5019ec09a Add a quirk for a buggy Qtronix keyboard. 1999-11-16 12:08:38 +00:00
augustss b019d68caa Some minor changes from OpenBSD. 1999-11-16 12:04:28 +00:00
augustss 1d1d6b868d Mark an early Altec Lansing speaker as broken. 1999-11-16 11:39:48 +00:00
tron 073ee3b029 - Add IPv6 options and devices.
- Add commented out softdep option.
1999-11-16 10:22:42 +00:00
augustss 982eb1b4e6 Preallocate DMA buffers. Fixes problem reported by Hubert Feyrer. 1999-11-16 10:21:11 +00:00
dan 46ccd498df Add entries for we[01] (configured as for the i386 GENERIC) to enable
WD/SMC ISA ethernet cards to be used for installation and setup.
1999-11-16 07:37:43 +00:00
nisimura e810ae49c6 Resolve 3max IOASIC disguise; round #2. 1999-11-16 06:00:11 +00:00
jun 1e396f9b0b Support for Adaptec AVA-1502P
kern/8804 patch by NAKAGAWA, Yoshihisa
1999-11-16 05:10:54 +00:00
jun a525b9a12a Commit patch kern/8778
Subject: NEC PCI modem support
1999-11-16 03:15:17 +00:00
lukem a3b9423bb0 fix lp64 lossage 1999-11-16 03:06:06 +00:00
nisimura 7917bfc69d Back out a part of change in the previous commit; old driver uses it. 1999-11-16 02:48:24 +00:00
nisimura 5948b59226 Fix a typo in PX TC device identification case analysis. 1999-11-16 02:39:03 +00:00
nisimura fb43e6e177 Remove now defunct definitions and declaratins. 1999-11-16 02:34:30 +00:00
nisimura 1c6749cc03 Restore a change in 1.23 which I accidentally lost at the previous commit. 1999-11-16 02:16:04 +00:00
enami 7463c844a0 Make this file compile again; terminate the continuation line with backslash. 1999-11-16 02:13:02 +00:00
itohy 02ebc9e4d4 Support conversion from ELF, as well as from a.out. 1999-11-16 00:48:11 +00:00
matt 65e94f7ef4 close the i386 ibcs2 machdep.h; nothing really machine dependent in it yet. 1999-11-16 00:46:25 +00:00
wrstuden 0df8bcdc46 We need pciidereg.h to compile now. 1999-11-15 23:52:07 +00:00
thorpej a49d3ecb33 Add a macro to generate a class code given class, subclass, and interface.
From UCHIYAMA Yasushi's PCI BIOS patches.
1999-11-15 23:41:10 +00:00
simonb 6185320e31 Move px cdev_decl up with other frame-buffer type thingies. 1999-11-15 22:45:28 +00:00
augustss aef39844d9 Add quirk for speakers that pretend to support the audio class, but don't.
Add quirk for mice that geberate spurious button up events (XXX fix not fully
implemented).
1999-11-15 22:04:14 +00:00
drochner bb765a3924 "idx" is modified by pnpbios_getnode(); use the original value 1999-11-15 21:50:50 +00:00
mcr 4429aebc03 added support for BOCA 6port ISA adapter. 3x16552 with an
interrupt status register at yet-another-address.
	ioat0   at isa? port 0x220 irq 5 flags 1# BOCA 'ioat66' 6-port cards
	com*    at ioat? slave ?
1999-11-15 21:13:38 +00:00
tron 0ba519abd7 Fix typo in softdep code. 1999-11-15 20:55:48 +00:00
augustss 56d687b0e6 Add dev and function locators for the USB host controllers at pci. 1999-11-15 20:10:49 +00:00
dante 7d4ad0e29e Add WDTR, SDTR and TAGQ disable options 1999-11-15 20:07:21 +00:00
dante 6081361f0d Add WDTR, SDTR and TAGQ disable options 1999-11-15 20:03:50 +00:00
dante 70bd4a7d53 Let user enable/disable WDTR, SDTR and Tag Queuing from kernel config file 1999-11-15 19:55:53 +00:00
jdolecek f8e7ae2c5b remove some staff not needed anymore after SOFTDEP is merged;
also fixes bug introduced in previous commit - the check for VBAD device node
  added in rev 1.20 was accidentaly run AFTER v_specinfo was touched,
  making the check useless
1999-11-15 19:38:14 +00:00
fvdl 8bec119fcc Add commented out option SOFTDEP to all GENERIC kernels. 1999-11-15 19:10:44 +00:00
fvdl d116707af0 Add
prefix ../gnu/sys
cinclude "conf/files.softdep"
prefix

to all std.* files, so that soft dependencies can be activated using
"options SOFTDEP".
1999-11-15 19:00:25 +00:00
fvdl 0b1963121a Add Kirk McKusick's soft updates code to the trunk. Not enabled by
default, as the copyright on the main file (ffs_softdep.c) is such
that is has been put into gnusrc. options SOFTDEP will pull this
in. This code also contains the trickle syncer.

Bump version number to 1.4O
1999-11-15 18:49:07 +00:00
joda 5527afff97 (pccbb_pci_callback): no point in reading the bus number register
twice
1999-11-15 16:19:03 +00:00
nisimura cc2e1c302a - Reflect changes in ibus_intr_establish() definition.
- More concise way to initialize TC framebuffer device for console.
1999-11-15 09:54:41 +00:00
nisimura 0310fa6595 Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
1999-11-15 09:50:17 +00:00
haya 3be097c31d Handle insertion and removal events more strictly. 1999-11-15 06:08:02 +00:00
haya 89d0a53e2c Fill 0 into CardBus base address registers before a card is
configured.
1999-11-15 06:01:11 +00:00
nisimura b06e451c53 - No need to include '<machine/autoconf.h>'.
- Nuke tc_badaddr() check from asc_tc because the existency check is already
  done for real TC devices.
- Nuke tc_badaddr() check from asc_ioasic because it is a builtin device
  found in all of IOASIC DECstations.
1999-11-15 05:25:57 +00:00
mhitch 5b9ba012af Set IOASIC interrupt mask when changing device interrupts. (Old
initialization appears to have enabled IOASIC interrupts, and then used
a separate mask in the interrupt routine to decide which ones to process.
New initialization doesn't enable all the required interrupts, and the
device interrupt enable/disable routine wasn't changing the IOASIC mask).
Also fix a printf() format type.
1999-11-15 03:54:53 +00:00
nisimura 8e061f4876 Make sure TC_IPL_xxx synonymous with IPL_xxx. 1999-11-15 03:45:50 +00:00
nisimura 9c3842f41b Relocate 'struct tc_softc' and several function declarations useful
to outsides of 'tc.c' into 'tcvar.h'.
1999-11-15 03:41:49 +00:00
kleink ac88fcbb17 G/c orphaned prototype. 1999-11-15 02:00:08 +00:00
thorpej 4ab7f024dc Fix a couple of pmap_enter() calls I missed. 1999-11-15 00:06:58 +00:00
augustss 3d275209e8 Add dev and function locators to cardbus devices. 1999-11-14 23:21:48 +00:00
thorpej 52806c2c2a Fix typo in previous. 1999-11-14 19:20:27 +00:00
soren b202ac1466 Allow SCSI_DELAY to be shorter than 2 seconds. 1999-11-14 18:06:09 +00:00
soren b0be8ac6ea Match ECP devices as well. 1999-11-14 18:03:38 +00:00
eeh 96ff315a99 Change one more instance of `access_type' to `flags' in pmap_enter(). 1999-11-14 17:25:01 +00:00
drochner d3d6c8d951 add commented out pnpbios entries 1999-11-14 13:31:04 +00:00
takemura d7d5ca87f3 Support the frame buffer in which white pixel value is zero. 1999-11-14 12:33:11 +00:00
thorpej 2cfc62b5ae Update for pmap API change. 1999-11-14 02:39:09 +00:00
thorpej 158b1a55f1 Add an "index" locator to the pnpbios `bus'. This allows us to wire down
device instances if there are more than one of a given type in the PnP
BIOS device table.

Add a pnpbios attachment for `lpt'.
1999-11-14 02:15:50 +00:00
augustss 5f8274b5a6 Get transfer status right on short transfers. From FreeBSD, Nick Hibma. 1999-11-13 23:58:01 +00:00
mhitch ed2a0c2648 Fix an additonal return in pmap_enter() that wasn't returning a value.
Use flags (formerly access_type) to set page reference/modified status.
Don't use the PG_CLEAN flag from the UVM when checking to see if a
writeable page has been marked as modified.
When updating page status to modified from the UTLBmiss handler, set
the referenced bit in addition to the modified bit.
1999-11-13 23:16:39 +00:00
mhitch 27a8dc486b Use console_debugger() to enter DDB on a break, instead of Debugger(). It
can now be controlled with sysctl on the 3100 & 5000/200.
1999-11-13 22:58:11 +00:00
mhitch babe07a8b5 When called from the debugger, the keyboard handler was returning 0 due to
a missed change when kdbMapChar() was changed to return a string.  Return
the correct chacter from the string.
1999-11-13 22:56:56 +00:00
thorpej 728d672378 Backout my libsa changes. 1999-11-13 21:33:12 +00:00
matt d4c19a672a adapt to jason new pmap_enter change 1999-11-13 21:32:25 +00:00
thorpej ee03a4e035 Backout my libsa changes. 1999-11-13 21:29:12 +00:00
thorpej 36ff5d93e8 Backout my libsa changes. 1999-11-13 21:17:56 +00:00
thorpej 1e544cc5eb Backout my libsa changes. 1999-11-13 21:06:46 +00:00
matt 3ca3e51df8 Nuke TCP_COMPAT_42. Use sysctl to enable it if required. 1999-11-13 20:56:14 +00:00
matt 3891060822 Nuke TCP_COMPAT_42. Use sysctl to set it as needed instead. 1999-11-13 20:55:12 +00:00
matthias b45486b2a2 Make this work again by adding XS_CTL_ASYNC to the SCSI requests in
se_ifstart and se_recv.
1999-11-13 18:03:34 +00:00
matthias 2c3b2bd9f9 Make copystr return ENAMETOOLONG if maxlen == 0 (pointed out by Charles). 1999-11-13 18:01:27 +00:00
perry a228a21023 no longer needed 1999-11-13 17:58:41 +00:00
perry 341edec257 make the comment on how to use the cinclude stuff for crypto clearer. 1999-11-13 17:57:28 +00:00
perry 53eda555f4 Integrate the IPv6 bits from GENERIC.v6 1999-11-13 17:54:17 +00:00
scw 0587ca2eaa Make this work with the new scsibus mid-layer, using Ignatios' Amiga
fix as a reference.
1999-11-13 15:33:57 +00:00
minoura 1a29be4d0c Increase ramdisk size. 1999-11-13 14:19:46 +00:00
soren 748b241afb Export softc. 1999-11-13 13:40:28 +00:00
soren 0b0e306a89 Add almost-PCI IDE attachment for the Toshiba Portege 3000 series. 1999-11-13 13:39:17 +00:00
pk a9cdefb6e6 Remove implementation of the `-h' and `-a' options. 1999-11-13 12:09:41 +00:00
simonb 7fdf32e3d0 Defopt MAXUPRC. 1999-11-13 05:02:25 +00:00
thorpej 5251ca4af1 Hello 1.4N! (pmap_enter() API change) 1999-11-13 00:33:04 +00:00
thorpej 1946167939 Update for pmap_enter() API change. No functional difference. 1999-11-13 00:30:26 +00:00
thorpej abff7cb610 Update for pmap_enter() API change. 1999-11-13 00:27:21 +00:00
thorpej 59cbff957d Update for pmap_enter() API change, and return failure if possible. 1999-11-13 00:26:22 +00:00
thorpej 1da427a80a Change the pmap_enter() API slightly; pmap_enter() now returns an error
value (KERN_SUCCESS or KERN_RESOURCE_SHORTAGE) indicating if it succeeded
or failed.  Change the `wired' and `access_type' arguments to a single
`flags' argument, which includes the access type, and flags:

	PMAP_WIRED	the old `wired' boolean
	PMAP_CANFAIL	pmap_enter() is allowed to fail

If PMAP_CANFAIL is not specified, the pmap should behave as it always
has in the face of a drastic resource shortage: fall over dead.

Change the fault handler to deal with failure (which indicates resource
shortage) by unlocking everything, waiting for the pagedaemon to free
more memory, then retrying the fault.
1999-11-13 00:24:38 +00:00
thorpej a25b1ab916 Always pass all arguments to uvm_sleep(). 1999-11-13 00:21:17 +00:00
lukem 0888d71168 recognise the ACER labs M1543 PCI-ISA Bridge in siomatch(). the DS10 now boots!
thanks to thorpej/ross/mrg for helping me out on this.
1999-11-12 22:07:28 +00:00
kleink c52f431558 Bring high-resolution time interfaces closer to SVR4:
* Change gethrtime() to use mono_time.
* gethrvtime() is defined to return the lwp/process's virtual time;
  use p_rtime augmented with the current runtime.

Reviewed by: christos
1999-11-12 20:45:44 +00:00
mjacob 5f4088eb26 Hide function definition within ifdef's is becomes active in. 1999-11-12 19:11:25 +00:00
drochner f165ee13d2 include "pnpbios" definitions 1999-11-12 18:40:07 +00:00
drochner 59e13361f3 make "i386_isa_chipset" globally visible so it can be used from outside
the "isa" bus, attach "pnpbios" pseudo-bus if configured
1999-11-12 18:39:38 +00:00
drochner 8f5c3d689b add GDT segments for pnpbios use 1999-11-12 18:37:29 +00:00
drochner 2298f7abf4 "pnpbios" pseudo-bus. Reads out device IDs and ressource usage from the
BIOS and attaches devices to it.
While it is potentially able to deal with all the motherboard ISA
devices, it is only used in hairy cases for now - laptop stuff in
particular.
1999-11-12 18:36:46 +00:00
joda f9bf746086 (cardbus_attach_card): don't free cc 1999-11-12 18:18:38 +00:00
joda 4278cf451e if the image size is zero, assume it really means one block 1999-11-12 18:17:36 +00:00
thorpej 4bdf6bd731 Call mii_down() as appropriate. 1999-11-12 18:14:17 +00:00
thorpej bca88a28c8 Add mii_down(), which is used by MAC drivers to inform PHYs that the
interface is now down.  PHYs use this to cancel pending asynchronous
operations.
1999-11-12 18:12:59 +00:00
perseant fc5ecbb5a8 Back out my patch of the 8th (to address unreferenced inode problem).
Apparently this needs more thought.
1999-11-12 16:56:48 +00:00
is 71d206232b Return the data length even for non-readonly strings, as advertized. 1999-11-12 16:10:16 +00:00
lukem e8dc21a13a add -DNET_DEBUG to the list of commented-out debug options 1999-11-12 13:13:59 +00:00
lukem 053d3c3702 fix pointer size in debug message 1999-11-12 13:12:09 +00:00
simonb 2b6e59dd39 Don't include <lib/libkern/libkern.h> for prototypes that are also in
<lib/libsa/stand.h>.  The alpha still needs libkern for the division
and remainder support.
1999-11-12 13:11:40 +00:00
simonb 7a03e8cda8 Add memset() prototype. 1999-11-12 12:24:42 +00:00
simonb c24b109ff0 "zutil.h" includes <lib/libsa/stand.h> now. 1999-11-12 12:12:13 +00:00
simonb fffdb85f69 Include <lib/libsa/stand.h> so that this builds with WARNS=1 1999-11-12 12:11:31 +00:00
is 1c37111492 Identification of DOMEX PCI-SCSI board, by Thilo Manske, PR 8772. 1999-11-12 12:03:32 +00:00
nisimura 91fd021893 - Arrange 'platform' struct to have clkread entry, which can interporate
HZ using high resolution timer circuit if available.  Merge os_init
  into the primary hardware initialization in sysinit[].init.
- Nuke an irrelevant attempt to disable RTC under splhigh condition.
- Make sure IOASIC DECstations accumulate device interrupt mask bits into
  certain global variables.
- Have witchcrafts to issue ACK to RTC interrupt.
- Add a missing \n and a minor rearrangement in cpu.c
1999-11-12 09:55:37 +00:00
mark 3d347d6d24 Regenerate from podules. 1999-11-12 07:38:51 +00:00
mark 9d919b7239 Add EtherI and EtherN podule ID's
From Mike Pumford, part of PR/8765.
1999-11-12 07:37:21 +00:00
mark e28a162f54 In _bus_dma_sync() drain the write buffer after the cache clean.
Spotted by Richard Earnshaw.
1999-11-12 07:29:34 +00:00
nisimura 95e2c7af76 Make sure wbflush symbol treated as a C function call. 1999-11-12 06:17:13 +00:00
matt d2434ef890 remove reference to auxiotwo 1999-11-12 06:15:38 +00:00
matt 73ae3282ab turns we need to tweak the auxio1 reg to enable the modem. also fix a call
to sbus_bus_map.  it's closer to working but I wonder if COM_FREQ is the
right value.
1999-11-12 05:20:03 +00:00
matt 8ffb2596c7 make this compile under current 1999-11-12 04:42:19 +00:00
matt 3744fe193f add some stuff needed for pcmcia support 1999-11-12 04:41:46 +00:00
simonb 4abf82d09b Remove references to libkern after Jason's recent work to libsa. 1999-11-12 01:37:42 +00:00
simonb 3f691021a6 Add strncpy().
Add prototypes for bcmp(), bzero() so the libsa compiles with WARNS=1
1999-11-12 01:26:28 +00:00
augustss 0d2fabdf26 A number of stylistic changes to increase readability (many suggested
by Nick Hibma):
	use NULL not 0
	declare all local definitions static
	rename s/usbd_request/usbd_xfer/ s/reqh/xfer/
	rename s/r/err/
	use implicit test for no err
	KNF
1999-11-12 00:34:57 +00:00
augustss c8ad47986a Regen. 1999-11-12 00:26:39 +00:00
augustss 505ab77387 Add a modem from ELSA. 1999-11-12 00:26:13 +00:00
thorpej ab395306cd Small, MI strcat() and strcpy(). 1999-11-11 21:23:27 +00:00
thorpej a7abffa1f2 The hack needed to work around gcc lameness. 1999-11-11 20:36:52 +00:00
thorpej 5dde9d67c2 Don't reference libkern.h in standalone programs. 1999-11-11 20:31:07 +00:00
thorpej 47f5c977ef Don't reference libkern.h. 1999-11-11 20:28:04 +00:00
thorpej e29afb6f98 No longer need to build libkern. 1999-11-11 20:27:42 +00:00
thorpej 471a3aa8e4 Update for the improvements to libsa, and don't reference libkern.h. 1999-11-11 20:23:16 +00:00
thorpej 38200dd3e4 Networking routines needed for libsa to be self-contained. 1999-11-11 20:21:59 +00:00
thorpej c29af30c3c Minimal quad routines needed for libsa to be self-contained. The compiler
emits a reference to this one in the UFS code.
1999-11-11 20:20:35 +00:00
thorpej cad7e97082 Add small, MI strcmp(), strlen(), and strncmp() functions. Modules within
libsa depend on them, to it seems rather silly to have to build an additional
library (e.g. libkern) to get them.
1999-11-11 18:11:25 +00:00
thorpej d642bd03d1 Add register prefixes. 1999-11-11 17:08:37 +00:00
matt 1138f7e762 add COMPAT_14 1999-11-11 15:55:53 +00:00
scw 3981e235b7 Zero is a valid value for ch_tcor and ch_rcor, so be a bit more conservative
when deciding if the baud-rate should be changed. (Spotted by Bruce Martin)
Also fix the mask used when setting the Rx FIFO threshold to zero. I don't
yet understand how the Rx side worked with the code as it was. ;-}
1999-11-11 09:38:43 +00:00
itohy de6b762004 Make X680x0 IOCS library build on ELF toolchain. 1999-11-11 08:16:20 +00:00
itohy 59c36c2cb6 Make Human68k DOS library build on ELF toolchain. 1999-11-11 08:14:43 +00:00
itohy fcc45340da Make it build on ELF toolchain. 1999-11-11 08:12:50 +00:00
thorpej ac3150a13d Add register prefixes. 1999-11-11 01:53:46 +00:00
thorpej 9aeef983e2 Sync w/ libc. 1999-11-11 01:32:10 +00:00
thorpej 2859f66b8f Add register prefixes. 1999-11-11 01:27:59 +00:00
thorpej f16bb11bf0 Add register prefixes. 1999-11-10 23:17:21 +00:00
hubertf 83964cc3e3 add (commented out) APM options 1999-11-10 22:39:45 +00:00
augustss 445d6f8e64 Regen. 1999-11-10 19:47:39 +00:00
augustss f2725f06b8 Add another Quickcam. 1999-11-10 19:46:40 +00:00
thorpej fac9817d52 Define ELF_ST_*() to ELF{32,64}_ST_* as appropriate. They evaluate to
the same thing, but this provides consistency with everything else.
1999-11-10 17:31:56 +00:00
drochner 283100a20d clarify diagnostic message about nonstandard/reserved/OEM defined
event codes
1999-11-10 16:55:25 +00:00
drochner 536f716be9 use console_debugger() on CTL-ALT-ESC to honour the ddb.onconsole sysctl 1999-11-10 16:52:14 +00:00
drochner 3bc4cec200 allow to set multiple keyboard "variants" simultanously.
Follows PR kern/8456 by Michael Eriksson <eramore@era-t.ericsson.se>,
implemented diffently.
1999-11-10 16:49:38 +00:00
matt 391c8e434d regen 1999-11-10 15:56:39 +00:00
matt 805b56adb4 Add Entrega USB Serial->DB9 widget 1999-11-10 15:55:51 +00:00
leo 0c76b12125 Give lp->d_type a value other than 'unknown'. When the model is "ST506",
the d_type field becomes DTYPE_ST506, otherwise it will be set to DTYPE_ESDI.
1999-11-10 14:11:34 +00:00
tsubai 90a8355d04 Support md root for INSTALL. 1999-11-10 13:33:09 +00:00
augustss 8276207b08 Regen. 1999-11-10 12:31:31 +00:00
augustss 8436192416 Add two more devices. 1999-11-10 12:31:01 +00:00
nisimura 24a33d9f37 Remove a small scale 'improvement' for TLB mod exception which is now
found harmful.  Fix panics on MIPS1 only kernels.
1999-11-10 08:06:05 +00:00
mycroft fd8d1c65eb Add USB support. 1999-11-10 05:57:52 +00:00
mycroft 74ca1c37ef Deal with /psuedo-hid in the following atrocious way:
* If only one of ukbd or akbd is configured, use the node for that device.
* If both are configured, use ukbd.
Ultimately, the right way to deal with this is probably so simulate the effect
of /psuedo-hid using wsmux.  But not today.
1999-11-10 05:23:18 +00:00
mycroft f8934aa2f6 Modification to the previous:
We still have to preload the command, when selecting without ATN.  (We could
probably avoid this by being more careful in the interrupt handler...)
1999-11-10 05:02:53 +00:00
mycroft 58fec0d55a When sending a REQUEST SENSE, do *not* attempt to create an I_T_L nexus. This
is technically wrong, and some targets (like my 4x NEC CD-ROM drive) misbehave
when we do.
1999-11-10 04:21:30 +00:00
mycroft 105a2438f9 Fix an obvious bug is some diagnostic code; we must lower our spl again... 1999-11-10 04:19:59 +00:00
mycroft 5b75863870 A residual after select with DMA step 2 is legitimate (in fact, *not* having a
residual would probably be cause for concern), so don't spew about it.
1999-11-10 00:42:37 +00:00
thorpej c718a7c548 Add register prefixes. 1999-11-10 00:13:59 +00:00
thorpej e9e011443c Add register prefixes that I missed before. 1999-11-10 00:02:23 +00:00
thorpej ae13d86f18 Add register prefixes. 1999-11-10 00:01:32 +00:00
kleink b4f0936a8c Per discussion on tech-toolchain, remove MIPS-specific <machine/elf.h> header;
all the information is available from <sys/exec_elf.h>.
1999-11-09 21:50:18 +00:00
kleink a894c76852 Fix comment typo introduced in rev. 1.27. 1999-11-09 21:38:09 +00:00
kleink 1c2019b5a8 Rip protection against multiple inclusion from wrapper headers. 1999-11-09 21:34:03 +00:00
mycroft 8f05f33e49 Move the boot block load address from 3MB to 7MB. The INSTALL kernel is
already too large, and GENERIC won't be far behind.
1999-11-09 18:39:41 +00:00
augustss e9fc8103ca Make detach wait for interrupts to finish.
Bail out in interrupt routine when device is dying.
1999-11-09 16:52:14 +00:00
augustss 3ea93b7669 Make sure to call vdevgone() on all devices when deteching. 1999-11-09 16:50:47 +00:00
joda c7cca9cd39 make this compile with CARDBUS_DEBUG 1999-11-09 15:03:59 +00:00
sommerfeld dea88f1c20 Completely rewrite receive processing to avoid sleep-deprivation-induced
brain damage and infinite loops, and lousy RTTs

Also, flush tx queues when reassociating with AP and when taking the
interface down.
1999-11-09 14:58:07 +00:00
scw 9cc52f53a8 Drop some #defines which are now in sys/disklabel.h. 1999-11-09 10:03:20 +00:00
haya e54d837b8b Maintenance CardBus/PCI extension ROM mapping routine.
1. Make Extension ROM not to be mapped on I/O space.
2. Do not check the bus-space indicator in ROM register.
1999-11-09 09:20:30 +00:00
nisimura 2924b6835a Fix errors in sfb_copycols() of the forward (left-to-right) case. 1999-11-09 08:25:31 +00:00
oster 3949e74f78 If we have a choice: do not trust the parity disk for read
balancing in a RAID 1 set if we know that the parity might not
be up-to-date.  Thanks to Thor for bringing this to my attention.
1999-11-09 03:07:20 +00:00
marc e1e554ac35 charles was on drugs. There's no such thing as #elifdef. 1999-11-09 02:25:33 +00:00
perseant 26c34e715f If ifile blocks were written before dirops were complete, and then the
system crashed, inodes could be allocated that were not referenced.  (Though
not a serious problem, it evidences itself in phase 4 of fsck_lfs.)  Fix
this by marking if_daddr with UNASSIGNED before the inodes are actually
written; at mount time the ifile is checked for UNASSIGNED entries and
any that are found are linked back into the free list.  (The latter
functionality should move into the roll-forward agent when it materializes.)
1999-11-09 02:21:05 +00:00
pk 560567d851 Include <sys/exec.h> instead of <a.out.h>/ 1999-11-08 23:29:56 +00:00
pk a96dbfa190 Remove inclusion of unused headers. 1999-11-08 23:29:05 +00:00
joda 1b686307cb correct number of BAR:s in cardbus_cis_info 1999-11-08 20:21:24 +00:00
joda fe2d79ec9a Let decode_tuples take function to call for each tuple, and use this
to get some vital information from the CIS (some network cards need
this to get the mac-address). This should be merged with the related
code for PCMCIA cards, but that requires more thought.
1999-11-08 20:19:10 +00:00
joda dbb2685da6 add some bare-bones CIS information to the attach_args struct 1999-11-08 19:59:08 +00:00
joda f6be3b394d regen 1999-11-08 19:57:32 +00:00
joda 19ff47781e copy xircom entries from pcidevs 1999-11-08 19:57:13 +00:00
mhitch f4fa9aae9f When the framebuffer is closed, reset the keyboard. We don't know what the
X server may have done with the keyboard state.  X11R6 was changing the
keyboard modes, which were not compatible with the lk201 keyboard handling
in NetBSD.
1999-11-08 18:41:32 +00:00
sommerfeld 1cfdb728d0 avoid touching freed mbuf after allocation failure. 1999-11-08 15:56:16 +00:00
sommerfeld 66ab262b1c add a bunch of debug printfs under IFF_DEBUG and IFF_LINK2;
turn on IFF_DEBUG to trace the management protocol goo.
turn on IFF_LINK2 as well to see beacons.
1999-11-08 15:45:00 +00:00
sommerfeld 94bb856781 misc cleanups; seems to work a little better in a dense-AP environment now.
1) ignore probe requests rather than printing "unknown mgmt subtype"
	(cosmetic)
 2) don't panic if mget of the 2nd mbuf in a chain fails (patch from MCR)
	(though that whole function badly needs to be rewritten)
 3) be a little more tenacious about hanging on to an access point.
1999-11-08 13:24:00 +00:00
augustss 9cec807b1c Return -1 from wsmux_displayioctl() if no muxes components like the ioctl(). 1999-11-08 10:10:25 +00:00
mycroft 336e3613c3 Kill wsmux. DIE DIE DIE! 1999-11-08 06:17:42 +00:00
eeh 86667308d7 Implement sysctl machdep.booted_kernel. 1999-11-08 05:06:42 +00:00
eeh 5ce41ef1f2 Fix boot device detection code. 1999-11-08 05:05:26 +00:00
mycroft fb17cb2665 Disable wsmux for now. 1999-11-08 04:50:30 +00:00
mycroft 0c1542d9a4 Apply wrstuden's stopgap change to make alpha/macppc X work without wsmux. 1999-11-08 04:48:18 +00:00
mhitch 8008907a4c && doesn't work very well for testing a flag - tcds_params() was always using
the baseboard ID and FAST settings instead of getting them from the TC option
card EEPROM.
1999-11-08 03:00:32 +00:00
mycroft a1ec263481 Builds LKMs on PowerPC (although there are still some issues with loading
them).
1999-11-08 00:16:40 +00:00
thomas 938dcb33e9 Align IO and memory of PCI devices. 1999-11-07 22:23:05 +00:00
mhitch 5239567fb0 Don't use MIPS3_L2CACHE_ABSENT to control compiling the Level 2 cache flush
in pmap_remove_pv().  Also comment why I'm doing the second cache flush
operation.
1999-11-07 19:42:23 +00:00
chs f4dbce1e9a in copy{in,out,}str(), return an error if maxlen == 0. 1999-11-07 17:31:37 +00:00
chs f1c14a8b5d in copystr(), be sure to return an error if maxlen == 0. 1999-11-07 17:01:20 +00:00
pk 1ad621b38f Handle empty `input/output path' when looking for console device; patch
from Brian D. Chase.
1999-11-07 16:36:16 +00:00
uch 2cf4f4b9b6 Clear interrupt status before dispatch handler. 1999-11-07 14:07:50 +00:00
mrg defe7bd119 make this compile without DEC_3000_300 1999-11-07 09:14:34 +00:00
scottr 4ecba735df Garbage collect adb_initted. 1999-11-07 08:22:50 +00:00
scottr 0b8b3c403e In the interrupt handlers, check adb_polling instead of
adb_initted to decide whether to handle 'recovered' interrupts
immediately.
1999-11-07 08:18:24 +00:00
scottr 26208b5e57 Garbage-collect adb_init(). It's been dead for a long time. 1999-11-07 08:08:10 +00:00
scottr c11dd8b6dd We want adb_polling set regardless of whether we're using the MRG driver. 1999-11-07 08:07:20 +00:00
enami 8567277ae0 Print range of all iospaces or all memspaces if their length aren't zero. 1999-11-07 07:44:21 +00:00
mycroft 277394fdd3 Fix WARN_REFERENCES() here for the ELF case. 1999-11-07 07:20:26 +00:00
mycroft cf29975968 Hack to work around _C_LABEL() fallout so WARN_REFERENCES() works again. 1999-11-07 07:12:07 +00:00
cgd b4560adaf2 regen 1999-11-07 07:03:08 +00:00
cgd 7867af6cfb back out rev 1.166:
(1) the list added isnt' complete and i'd call it incorrect.  (There are
    other devices with these names, where were omitted.  I've never seen
    the devices with these IDs, I _have_ seen the other devices that go
    by these names.)
(2) the PR (8754) had not been updated to note that the problem was
    fixed, and i'd preiously asked the submitter for more information and/or
    a corrected list.
1999-11-07 06:59:46 +00:00
scottr 8da942f249 Oops... last rev created an unused variable. While here, clean up
adb_reinit()'s variables a bit, too.
1999-11-07 06:15:09 +00:00
scottr 23411c4c1b Convert one more buffer copy that I missed in rev 1.28. 1999-11-07 05:50:26 +00:00
mycroft 4c0911c827 Make this more current. 1999-11-07 01:09:12 +00:00
mycroft 6816b631ab Nit: Make bootrealseg conforming. 1999-11-07 01:06:37 +00:00
mycroft f991846760 Make this a little more current. 1999-11-07 01:04:59 +00:00
scottr a7628ea793 Always using polling for poweroff (from macppc). 1999-11-07 00:16:39 +00:00
scottr 27adad708f ite_polling -> adb_polling 1999-11-07 00:12:55 +00:00
scottr 57dc0b9f46 We need adb_initted in a couple of places; declare it here. 1999-11-07 00:12:54 +00:00
scottr ad43c94436 ite_polling -> adb_polling 1999-11-07 00:12:53 +00:00
scottr c827b513ac Convert buffer copies to memcpy(). 1999-11-06 23:50:29 +00:00
scottr 12a535f5ef Add more delay in adb_reinit() (from macppc). 1999-11-06 23:44:32 +00:00
mhitch 93598fd12b Cleanup pmap_remove_pv() a bit:
Page mod/ref status is stored in the pv header, and needs to be copied to
    the following entry when removing the head entry, otherwise the status
    will be lost (oops!).
  Move the common MIPS3 cache flush into pmap_remove_pv() and eliminate the
    unnecessary testing of the return value when only compiled for MIPS1.
  If the pv entry had the cache inhibited, and we remove the last cache index
    alias conflict, restore caching on the mappings for that entry.
  Eliminate possible extra cache flushing inherited from the pica pmap:  it
    was doing the flush when the head entry was being removed - not just the last
    entry.  Now the flush is done only when the last mapping has been removed.
    Also make sure the secondary cache gets flushed [MIPS3 cache flushing needs
    to be re-thought/re-done someday].
  Update comment for pmap_remove_pv() to reflect these changes.
1999-11-06 23:18:04 +00:00
scottr 560a7ef713 Change the behavior of spladb() so that it raises the IPL only
high enough to block ADB interrupts.
1999-11-06 23:05:40 +00:00
scottr c738f52fb3 Update an outdated comment. 1999-11-06 22:44:52 +00:00
scottr b46c7fc44d Don't invoke the upper half handler unless we're still
initializing the ADB bus.  This fixes PR 7870.
1999-11-06 22:25:20 +00:00
perseant 3c63d0830f Address ufs_hashlock/ufs_ihashins protocol bug, discovered while doing a
post-mortem of a production machine.  Also, take the active dirop
count off of the fs and make it global (since it is measuring a global
resource) and tie the threshold value LFS_MAXDIROP to desiredvnodes.
1999-11-06 20:33:05 +00:00
eeh 29d84e8033 Handle zero length properly in copyinstr() copyoutstr() and copystr(). 1999-11-06 20:28:37 +00:00
eeh f7a499bedd Explicitly use 32-bit and 64-bit types and add some of the hooks needed for
32-bit coredumps.
1999-11-06 20:26:18 +00:00
eeh bb3b0d186a Expliticly use 64-bit and 32-bit types. And get rid of ftype. Aparently all
the other ports have.
1999-11-06 20:24:51 +00:00
eeh 09dae2e5eb Explicitly use 32-bit and 64-bit types. 1999-11-06 20:23:02 +00:00
eeh 80e38bf1c6 Explicitly use 64-bit types. 1999-11-06 20:18:13 +00:00
eeh 7b60d6a0ed Provide explicit 64-bit and 32-bit types for compatibility with sparc
userland.
1999-11-06 20:13:49 +00:00
eeh f429a45407 Explicitly use 64-bit types. 1999-11-06 20:10:24 +00:00
thorpej 7e538afd49 Add register prefixes. 1999-11-06 17:42:31 +00:00
mhitch 01a4486595 Try to document the use of the XContext register in the TLBMiss and XTLBMiss
exception handlers.
1999-11-06 17:35:55 +00:00
mhitch 32b8c8d62c The previous change to pmap_create() to fix DEBUG compiles was incorrect. The
original debug output was printing the argument to pmap_create(), but
pmap_create() no longer has an argument.  The incorrect change now prints
an un-initialized pointer.  Change to just print out the function name.
1999-11-06 16:56:33 +00:00
sommerfeld 8be740541b Extract MAC address from CIS data in pcmcia front end.
Fix multicast address manipulation.
ipv6 now works through this driver.
1999-11-06 16:43:53 +00:00
mycroft 80173a8cef Enable DHCP by default, rather than BOOTP, as BOOTP is much more likely to
fail (due to option length issues), and DHCP is now prevalent.
1999-11-06 16:23:49 +00:00
rh b2a56ee1b9 regen. 1999-11-06 13:50:02 +00:00
rh 080ff79d14 Add vendor/product entry for Auravision VxP524 PCI Video Processor. 1999-11-06 13:48:29 +00:00
augustss 34e97b4c65 Regen. 1999-11-06 11:18:00 +00:00
augustss 3514a2e115 Add SIIG devices. Closes PR kern/8754 from Andreas Wrede <andreas@planix.com> 1999-11-06 11:17:30 +00:00
soren 6f961bbe31 It's okay for a memory region to be larger than it's alignment. 1999-11-06 06:20:53 +00:00
enami de37487d49 - Export initrtclock().
- Call it from apm_resume().

This fixes timer problem on some laptop after hybernation (PR#4808).
Reviewd by: fvdl@netbsd.org
1999-11-06 01:14:00 +00:00
enami 6b2ae05f21 Possible typo. 1999-11-06 01:01:20 +00:00
enami 9be459a1fb Regen. 1999-11-06 00:59:56 +00:00
enami 9c7bc44f91 Support an earlier version of IO-DATA PCLA/T. 1999-11-06 00:58:32 +00:00
drochner db5d01fc72 back out the "ep"/"ex" guessing part of the previous - the check was
removed from the kernel and the device name is only informational now
1999-11-05 22:57:39 +00:00
drochner 8625e61c24 don't check the device name passed by netboot ROMs against the driver
name - drivers change too often, bus attachment information should be
sufficient to identify the boot device
1999-11-05 22:54:43 +00:00
thorpej 718f6380a7 Add tlp, document TLP_MATCH_* options, and add some missing PHYs. 1999-11-05 21:36:21 +00:00
jdolecek f759642ae2 Fix a problem in previous: we can't blindly assume that we have
wincnt entries available at the offset the file has been found. If the dos
directory entry is not preceded by appropriate number of long name
entries (happens e.g. when the filesystem is corrupted, or when
the filename complies to DOS rules and doesn't use any long name entry),
we would overwrite random directory entries.

There are still some problems, the whole thing has to be revisited and solved
right.
1999-11-05 21:33:21 +00:00
thorpej 803d0b1a4b Add some missing Ethernet cards: rl, ti (not in INSTALL), sip, tlp. 1999-11-05 21:30:21 +00:00
perseant b46550bdcf Better fix for PR# 8577: before setting dirops, check for cross-device
rename and error out.  This avoids possible problems with attempting
rename between two LFSs.
1999-11-05 20:14:56 +00:00
scottr 7aa7583c8e Enable interrupts during delay calibration. We pretty much have
to allow this exception so that accurate tuning of delay() can be
done (i.e. avoiding VIA-related wait states and cache effects as
much as possible).

XXX During this narrow window, it is still conceivable that we could
get interrupts from devices other than the VIA timer.  Normally this
shouldn't be a problem because interrupt handlers should generally
not be registered until we get to autoconfig.  It is, however, a
potential pitfall to be aware of.
1999-11-05 19:14:56 +00:00
scottr 55c161d3da Since nothing depends on interrupts during autoconfig proper
any longer, we can finally avoid enabling interrupts until the
end of cpu_configure().  This resolves a long-standing issue that
has caused us trouble several times in the past.
1999-11-05 19:06:39 +00:00
pk 23c39b410d Fix some diagnostic output with a patch from Jonathan O'Brien. 1999-11-05 19:00:44 +00:00
scottr 41ae6be989 Defer ADB configuration until interrupts are (normally) enabled. 1999-11-05 18:27:11 +00:00
scottr 902801374a An aesthetic change to autoconfig output to complement Colin Wood's
change to macrom.c in June.
1999-11-05 18:08:02 +00:00
jdolecek ead528ba12 msdosfs_lookup(): initialize denode's de_fndcnt properly even for
"found" case. This information is important for msdosfs_rename(),
when the target filename is "long" and the file exists -
it gets unlinked and the entries are re-used, but if de_fndcnt was
left zero, createde() thinks there are no entries to store the
long filename of moved file and long filename is "lost".

Fixes PR #5468 by Dave Huang <khym@bga.com>.

Tested by: jdolecek
Reviewed by: Wolfgang Solfrank
1999-11-05 16:49:15 +00:00
itojun e127ba2f0b fix well-known CPI handling bug. (sync with KAME code) 1999-11-05 14:57:00 +00:00
itojun 37ecccca6b decrease amount of history buffer to use for IPcomp.
the default setting of zlib allocates too much memory and of no use for
network packets (which are like < 2k).

From: Laine Stump <lainestump@rcn.com>
1999-11-05 14:56:26 +00:00
mycroft 895de56d08 Fix recent bug in sys_accept(): we must remove the file descriptor from the
file descriptor table before freeing the file description.
1999-11-05 11:48:57 +00:00
ad 341c38ac01 In rasops_do_cursor(), don't pull the mask from ri_devcmap[], just use ~0.
Needed to make cursor DTRT on NetBSD/hpcmips - from takemura.
1999-11-05 10:16:11 +00:00
fredb 92d294b3dc Add and enable Coda file system and pseudo-device vcoda. Closes PR 8625. 1999-11-05 09:59:25 +00:00
fredb 8e579b4df3 Enable mi Coda driver (PR 8625). 1999-11-05 09:54:07 +00:00
sommerfeld 73bf131124 Add rcsid's 1999-11-05 05:13:36 +00:00
chs 07e5d68b51 several fixes to copy{in,out,}str() from charles and myself:
don't panic if maxlen == 0, just return ENAMETOLONG.
treat maxlen as unsigned like the manpage indicates.
avoid crashing if the userspace address is >= KERNBASE.
make sure *done is 0 when no bytes are copied.
1999-11-05 04:49:26 +00:00
takemura 5546e92c75 Clear interrupt register before check keys. 1999-11-05 04:28:14 +00:00
nisimura 392a4acdd7 - Remove temporary hack to recognize PMAGD since SFB+ rendering function
is found not fully upward compatible to its predecessor.  sfbp.c is now
  under development.
- Reduce copycols() malfunction, but has still lot of troubles.
1999-11-05 03:28:40 +00:00
sato db87b456fa inherit WinCE timezone only when 'options RTC_OFFSET=..' is not specified. 1999-11-05 03:27:54 +00:00
takemura f030408088 TX3922 support (Add cache flush code, and change interrupt vector to hook)
Add Sharp Telios, Victor InterLink entry
1999-11-05 02:43:23 +00:00
jdolecek fe54414362 msdosfs_readdir(): set iovec offset correctly so that some long filename
entries won't be ignored when contents of the directory don't
fit in user buffer all at once.

Fixes kern/4492 by Rick Byers <rickb@iaw.on.ca>.
1999-11-04 23:08:57 +00:00
thorpej 8e930a51fe Const poison uvm_wait(). 1999-11-04 21:51:42 +00:00
bouyer fb8b192c0a Pass xfer->c_bcount instead of sc_xfer->datalen to the device, so that
it gets the rigth len for a request sense (from OpenBSD).
1999-11-04 21:16:53 +00:00
thorpej 0ad32f07d2 Revert this part of rev 1.59:
- Be more conservative when resetting the interface after a transmit error.

It caused the interface to totally wedge on the (somewhat common) transmit
FIFO underrun condition.
1999-11-04 20:27:11 +00:00
sommerfeld 458feeb836 Add awi 1999-11-04 19:43:13 +00:00
thorpej 06a4c7fe53 Allow rd/line, rd/mult, and wr/inval. 1999-11-04 19:15:22 +00:00
thorpej a3759d67fe Don't do rd/line, rd/mult, or wr/inval on the buggy Miata 1's. 1999-11-04 19:11:51 +00:00
thorpej 4a09180976 Don't pass rd/mult capability though a PCI-PCI bridge. The bridge would
have to break it up into mutliple rd/line's anyhow, so why bother letting
the device issue it in the first place.
1999-11-04 19:04:04 +00:00
thorpej 110ac27449 Make sure devices are told they can use rd/line, rd/mult, and wr/inval. 1999-11-04 19:03:00 +00:00
sommerfeld d9bc6e4f98 Conditionalize so this builds on 1.4.x.. 1999-11-04 18:43:42 +00:00
sommerfeld 12b00b0444 Allow this to build on 1.4.x, too 1999-11-04 18:41:14 +00:00
sommerfeld fd0062aeab Attempt to be smart about whether to use I/O space or memory space to
access the card's shared memory: if we can't allocate the 32k we need,
fall back and just use I/O space access.
1999-11-04 17:48:13 +00:00
mhitch 54b3de8b6f Only check for cache index compatiblity on MIPS3 if there is no secondary
cache.  With secondary cache, the CPU will detect cache coherency errors
and the Virtual Coherency Exception handler will flush the appropriate
cache lines to maintain cache coherency.  This allows much better
performance than inhibiting the cache for the entire page.  This is
very noticable when shared library mappings occur with incompatible
mappings, since there's a very likely chance the mappings will remain
for long periods of time.  Systems without secondary cache will still
have the cache inhibited, so there will still be performance issues if
shared libraries don't get mmaped() on correct memory alignments.

This fixes the current problems on DECstations using the R4x00 getting
coredumped programs.
1999-11-04 17:20:57 +00:00
sommerfeld 2ee5984fa6 Driver front-end for BayStack 650 PCMCIA 802.11 card.
Committed using the driver.
1999-11-04 17:12:43 +00:00
sommerfeld 58e709f695 Minimally functional driver for the am79c930 802.11 controller chip).
Working well enough to support dhcp; i'm doing this commit using the
interface.

Supports FH only.  Does not yet do ad-hoc mode; works in
infrastructure mode.  Not yet tested in environments with multiple
access points.
1999-11-04 17:10:53 +00:00
tsarna c0b20561f7 regen 1999-11-04 16:18:41 +00:00
tsarna 9df6f09e30 Add Aureal AU8820 1999-11-04 16:02:20 +00:00
takemura c7bb567f7c Move consinit() from findcons.c to machdep.c and remove file 'findcons.c.
Modify kernel boot options.
1999-11-04 13:11:23 +00:00
augustss fb580e3f6e Regen. 1999-11-04 10:34:40 +00:00
augustss 1289659618 Add SBLive! 1999-11-04 10:34:03 +00:00
joda c8532c3ebe regen 1999-11-04 09:39:17 +00:00
sato 5eba2f8c9b if rtc_offset is 0, rtc_offset inherit WindowsCE timezone. 1999-11-04 09:39:10 +00:00
joda dbfcb792e1 add Xircom X3201-3 Fast Ethernet Controller 1999-11-04 09:38:38 +00:00
jonathan 0588cdfc88 Update user-level PPS-API to match -05 draft.
Change PPS_<xxx> ioctls to PPS_IOC_<xxx>.
1999-11-04 05:33:58 +00:00
mrg bd0928e723 find "SUNW,hme" as well as "hme". this matches the onboard
ultra2 hme.  haven't actually tested this beyond it probing
because my scsibus is hanging.  anyway, it reports:

hme0 at sbus0 slot 14 offset 0x8c00000 vector 21 ipl 6: address 08:00:20:8f:7f:8f
1999-11-04 05:31:38 +00:00
sato 829c8ef0f2 GENERIC_JP include GENERIC. 1999-11-04 04:58:25 +00:00